/app/config/config.yaml1872616030: permission denied

Hi,
I am setting up a node on a ubuntu server with an attached storage disk. When do a docker run from the setup. I receive the following error at the bottom of the output. /app/config/config.yaml1872616030: permission denied.

In addition,
The node shows running but I can’t find the app/config files (should be in /mnt/disk/ from what I read), and the web dashboard is not working.

What permission need to be set for the folder that destination=/app/config goes into?
Any help would be great for this problem.

Config Files.

docker run --rm -e SETUP="true" \
    --user $(id -u):$(id -g) \
    --mount type=bind,source="/home/brian/.local/share/storj/identity/storagenode/",destination=/app/identity \
    --mount type=bind,source="/mnt/disk",destination=/app/config \
    --name storagenode storjlabs/storagenode:latest
sudo docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967/tcp \
-p 28967:28967/udp \
-p 14002:14002 \
-e WALLET="0xff9C7Ced558E63230dbEEEd68e*************" \
-e EMAIL="brian@softech.network" \
-e ADDRESS="storj.softech.network:28967" \
-e STORAGE="13TB" \
--user $(id -u):$(id -g) \
--mount type=bind,source="/home/brian/.local/share/storj/identity/storagenode/",destination=/app/identity \
--mount type=bind,source="/mnt/disk",destination=/app/config \
--name storagenode storjlabs/storagenode:latest

You need to apply full permissions for your user and group to the /mnt/disk
Please show result of the command:

ls -l /mnt/disk
ls -l /mnt/disk/storage

You also need to add your user to the docker group to do not use sudo to run docker:

sudo usermod -aG docker $(id -un)

After that you need to logout and login.
Then you can run docker without sudo.
To check:

docker ps

Awesome! It worked. Thanks for all the help. Below is what I did.

sudo chmod 777 -R /mnt/

Then I ran my commands from the Storage Node Setup Page page and it worked instantly.
:grinning:

Results from

ls -l /mnt/disk
ls -l /mnt/disk/storage
brian@macbook:~$ ls -l /mnt/disk
ls -l /mnt/disk/storage
total 64
-rw------- 1 brian brian   9337 Jul 21 21:52 config.yaml
drwxrwxrwx 2 root  docker 16384 Jul 20 16:53 lost+found
drwx------ 4 brian brian   4096 Jul 21 21:53 orders
-rw------- 1 brian brian  32768 Jul 21 21:53 revocations.db
drwx------ 6 brian brian   4096 Jul 21 21:58 storage
-rw------- 1 brian brian   1374 Jul 21 21:53 trust-cache.json
total 3132
-rw-r--r-- 1 brian brian  24576 Jul 21 21:53 bandwidth.db
-rw-r--r-- 1 brian brian  32768 Jul 21 22:01 bandwidth.db-shm
-rw-r--r-- 1 brian brian 589192 Jul 21 22:01 bandwidth.db-wal
drwx------ 7 brian brian   4096 Jul 21 21:59 blobs
drwx------ 2 brian brian   4096 Jul 21 21:52 garbage
-rw-r--r-- 1 brian brian   4096 Jul 21 21:53 heldamount.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:55 heldamount.db-shm
-rw-r--r-- 1 brian brian 160712 Jul 21 21:53 heldamount.db-wal
-rw-r--r-- 1 brian brian   4096 Jul 21 21:53 info.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 info.db-shm
-rw-r--r-- 1 brian brian 799312 Jul 21 21:53 info.db-wal
-rw-r--r-- 1 brian brian   4096 Jul 21 21:53 notifications.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:55 notifications.db-shm
-rw-r--r-- 1 brian brian  57712 Jul 21 21:53 notifications.db-wal
-rw-r--r-- 1 brian brian  16384 Jul 21 21:53 orders.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 orders.db-shm
-rw-r--r-- 1 brian brian  53592 Jul 21 21:53 orders.db-wal
-rw-r--r-- 1 brian brian  20480 Jul 21 21:53 piece_expiration.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:59 piece_expiration.db-shm
-rw-r--r-- 1 brian brian  86552 Jul 21 21:59 piece_expiration.db-wal
-rw-r--r-- 1 brian brian  16384 Jul 21 21:53 pieceinfo.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 pieceinfo.db-shm
-rw-r--r-- 1 brian brian  32992 Jul 21 21:53 pieceinfo.db-wal
-rw-r--r-- 1 brian brian  12288 Jul 21 21:53 piece_spaced_used.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 piece_spaced_used.db-shm
-rw-r--r-- 1 brian brian  78312 Jul 21 21:53 piece_spaced_used.db-wal
-rw-r--r-- 1 brian brian   4096 Jul 21 21:53 pricing.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 pricing.db-shm
-rw-r--r-- 1 brian brian 107152 Jul 21 21:53 pricing.db-wal
-rw-r--r-- 1 brian brian  12288 Jul 21 21:53 reputation.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:58 reputation.db-shm
-rw-r--r-- 1 brian brian 271952 Jul 21 21:58 reputation.db-wal
-rw-r--r-- 1 brian brian  20480 Jul 21 21:53 satellites.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 satellites.db-shm
-rw-r--r-- 1 brian brian 107152 Jul 21 21:53 satellites.db-wal
-rw-r--r-- 1 brian brian   4096 Jul 21 21:53 secret.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 secret.db-shm
-rw-r--r-- 1 brian brian  57712 Jul 21 21:53 secret.db-wal
-rw-r--r-- 1 brian brian     32 Jul 21 21:52 storage-dir-verification
-rw-r--r-- 1 brian brian  12288 Jul 21 21:53 storage_usage.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:55 storage_usage.db-shm
-rw-r--r-- 1 brian brian  32992 Jul 21 21:53 storage_usage.db-wal
drwx------ 2 brian brian   4096 Jul 21 22:01 temp
drwx------ 4 brian brian   4096 Jul 21 21:58 trash
-rw-r--r-- 1 brian brian  16384 Jul 21 21:53 used_serial.db
-rw-r--r-- 1 brian brian  32768 Jul 21 21:53 used_serial.db-shm
-rw-r--r-- 1 brian brian  70072 Jul 21 21:53 used_serial.db-wal
brian@macbook:~$ 
1 Like