Storj node keeps restarting when firing storj up

When I was setting up my first Storj decentralized storage on my vm running ubuntu 18.04 and when i ran the docker run command i get a docker that keeps restarting endlessly over and over.

My config:
#!/bin/sh
docker run -d --restart unless-stopped -p 28967:28967
-e 14002:14002
-e WALLET=“0x4F15b6A39351ABa6A1FCeF2c62ecC7922c06C8Cd”
-e EMAIL="mymail@gmail.com"
-e ADDRESS=“mydomain:28967”
-e BANDWIDTH=“10TB”
-e STORAGE=“1TB”
–mount type=bind,source="/home/sm0rezdev/.local/share/storj/identity/storagenode",destination=/app/identity
–mount type=bind,source="/mnt/storj",destination=/app/config
–name storagenode storjlabs/storagenode:beta

Hello @Sm0rezDev,
Welcome to the forum!

Please, show the logs:

docker logs --tail 20 storagenode
2020-01-01T14:10:22.105Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml749710151: permission denied", "errorVerbose": "open /app/config/config.yaml749710151: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:10:48.646Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml651631859: permission denied", "errorVerbose": "open /app/config/config.yaml651631859: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:11:40.557Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml049882734: permission denied", "errorVerbose": "open /app/config/config.yaml049882734: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:12:41.717Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml857843895: permission denied", "errorVerbose": "open /app/config/config.yaml857843895: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:13:42.505Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml958320367: permission denied", "errorVerbose": "open /app/config/config.yaml958320367: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:14:43.303Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml193920335: permission denied", "errorVerbose": "open /app/config/config.yaml193920335: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:15:44.078Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml062139138: permission denied", "errorVerbose": "open /app/config/config.yaml062139138: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:16:44.853Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml567409284: permission denied", "errorVerbose": "open /app/config/config.yaml567409284: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:17:45.592Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml428997289: permission denied", "errorVerbose": "open /app/config/config.yaml428997289: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:18:46.386Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml545193031: permission denied", "errorVerbose": "open /app/config/config.yaml545193031: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:19:47.137Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml100907068: permission denied", "errorVerbose": "open /app/config/config.yaml100907068: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:20:48.031Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml213223120: permission denied", "errorVerbose": "open /app/config/config.yaml213223120: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:21:48.783Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml880217277: permission denied", "errorVerbose": "open /app/config/config.yaml880217277: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:22:49.585Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml568310597: permission denied", "errorVerbose": "open /app/config/config.yaml568310597: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:23:50.316Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml021266412: permission denied", "errorVerbose": "open /app/config/config.yaml021266412: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:24:51.027Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml842072912: permission denied", "errorVerbose": "open /app/config/config.yaml842072912: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:25:51.764Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml534173198: permission denied", "errorVerbose": "open /app/config/config.yaml534173198: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:26:52.526Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml762832331: permission denied", "errorVerbose": "open /app/config/config.yaml762832331: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:27:53.270Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml982653598: permission denied", "errorVerbose": "open /app/config/config.yaml982653598: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}
2020-01-01T14:28:54.663Z        FATAL   Unrecoverable error     {"error": "open /app/config/config.yaml968471924: permission denied", "errorVerbose": "open /app/config/config.yaml968471924: permission denied\n\tstorj.io/storj/private/fpath.AtomicWriteFile:21\n\tstorj.io/storj/pkg/process.SaveConfig:202\n\tmain.cmdSetup:231\n\tstorj.io/storj/pkg/process.cleanup.func1.2:278\n\tstorj.io/storj/pkg/process.cleanup.func1:296\n\tgithub.com/spf13/cobra.(*Command).execute:826\n\tgithub.com/spf13/cobra.(*Command).ExecuteC:914\n\tgithub.com/spf13/cobra.(*Command).Execute:864\n\tstorj.io/storj/pkg/process.Exec:74\n\tmain.main:315\n\truntime.main:203"}

You should give your user full rights to the data folder
Please, give me result of these commands:

df -h
ls -l /mnt/
ls -l /mnt/storj

df -h:
Filesystem Size Used Avail Use% Mounted on
udev 965M 0 965M 0% /dev
tmpfs 200M 1.2M 198M 1% /run
/dev/vda2 16G 4.7G 9.8G 32% /
tmpfs 996M 0 996M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 996M 0 996M 0% /sys/fs/cgroup
/dev/vda1 511M 6.1M 505M 2% /boot/efi
/dev/loop0 89M 89M 0 100% /snap/core/7270
tmpfs 200M 0 200M 0% /run/user/1000
/dev/loop1 90M 90M 0 100% /snap/core/8268
/dev/vdb 984G 77M 934G 1% /mnt/storj

ls -l /mnt/
total 4
drwxr-xr-x 3 sm0rezdev sm0rezdev 4096 Jan 1 09:26 storj

ls -l /mnt/storj
total 16
drwx------ 2 sm0rezdev sm0rezdev 16384 Jan 1 09:26 lost+found

Honestly… this is a mess. This should be a multi line command, but you removed all the \ at the end of the lines so now it’s running it as all separate commands that will all fail except the first one which will run a container with way too few parameters. You have a -e for port mapping that should be a -p. I see lots of curly quotes, which may mean you copied it to a word processor that pretties it up and breaks the code. (Could also be the forum doing this though)

At this point I suggest you start over with the command as listed on the documentation pages and only fill in what you need to change. Don’t change anything else in the command. Remember to first stop and remove your previous container.

I did have the \ but when i pasted it here it disappeared.

Apologies, didn’t realize that. In the future you can make code blocks by adding a line with just three back ticks ``` before and after your code. The forum won’t mess up your code when you do that. Do fix that -e to -p though. Other than that, back to making sure the user that runs docker has full access rights to the storage.

1 Like

@BrightSilence means

this particular should be changed from -e to -p to become -p 14002:14002 rest all -e are good.

Refer documentation for this.

2 Likes

I ran the command from the terminal directly and got this error:

docker: Error response from daemon: pull access denied for mount, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.

Please, make sure that you didn’t use any wordprocessors to form the command - they can replace quotes and dashes to the special symbols, which are not valid for the terminal. Use the plain text editor instead, copy the command from the documentation and replace all <whatever> to your actual paths.

At the moment it looks like you missed some parameters or dashes or have an excess space symbols between dashes, etc.