My storj node keep restarting

I am trying to host storj node but when i am trying to spin up container , my node is keep restarting itself.

Environment : mac os mojave 10.14.6
docker version 19.03.5

this is what i am trying to run : docker run -d --restart unless-stopped -p 28967:28967
-p 127.0.0.1:14002:14002
-e WALLET=“WALLET ADDRESS”
-e EMAIL="nbhadradiya.storj@gmail.com"
-e ADDRESS=“nbhadradiyastorj.ddns.net:28967"
-e BANDWIDTH=“3TB"
-e STORAGE=“500GB”
–mount type=bind,source="/Users/monali-mac/Library/Application Support/Storj/Identity",destination=/app/identity
–mount type=bind,source="/Users/monali-mac/Documents/storj",destination=/app/config
–name storagenode storjlabs/storagenode:beta

Should end at ../storj/identity/storagenode

How is your HDD connected ?

it is internal HDD (part of my mac mini) not externally attached

Can you show output of this “docker ps -a”?

docker run -d --restart unless-stopped -p 28967:28967 -p 127.0.0.1:14002:14002 -e WALLET=“ADDRS” -e EMAIL="nbhadradiya.storj@gmail.com" -e ADDRESS=“nbhadradiyastorj.ddns.net:28967"
-e BANDWIDTH=“2TB" -e STORAGE=“100GB” --mount type=bind,source="/Users/monali-mac/Library/Application Support/Storj/Identity/storagenode",destination=/app/identity --mount type=bind,source="/Users/monali-mac/Documents/storj",destination=/app/config --name storagenode storjlabs/storagenode:beta

this is still failing to start

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
987017d0f2e7 storjlabs/storagenode:beta “/entrypoint” 3 seconds ago Restarting (1) Less than a second ago storagenode
ea0843787559 storjlabs/watchtower “/watchtower storage…” 2 days ago Up 16 hours watchtower
Monalis-Mac-mini:~ monali-mac$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
987017d0f2e7 storjlabs/storagenode:beta “/entrypoint” About a minute ago Restarting (1) 10 seconds ago storagenode
ea0843787559 storjlabs/watchtower “/watchtower storage…” 2 days ago Up 16 hours watchtower

Minimum is 500GB which should be actual free space + 10% overhead so you should have 550GB.

Also does your Mac satisfy below requirements ?

macOS Sierra 10.12 and newer macOS releases are supported
Mac hardware must be a 2010 or newer model

Tried with 500 GB and 550 both and still same result, Yes my mac mini is after 2010 model in-fact it is 2014 model. Let me know if i need to check anything else

Monalis-Mac-mini:~ monali-mac$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dac98f4742ad storjlabs/storagenode:beta “/entrypoint” 2 minutes ago Restarting (1) 21 seconds ago storagenode
ea0843787559 storjlabs/watchtower “/watchtower storage…” 2 days ago Up 16 hours watchtower
Monalis-Mac-mini:~ monali-mac$

Show result of docker logs --tail 20 storagenode

Monalis-Mac-mini:~ monali-mac$ docker logs --tail 20 storagenode
–db.conn_max_lifetime duration Maximum Database Connection Lifetime, -1ns means the stdlib default (default -1ns)
–db.max_idle_conns int Maximum Amount of Idle Database connections, -1 means the stdlib default (default 20)
–db.max_open_conns int Maximum Amount of Open Database connections, -1 means the stdlib default (default 25)
–debug.addr string address to listen on for debug endpoints (default “127.0.0.1:0”)
–debug.trace-out string If set, a path to write a process trace SVG to
–defaults string determines which set of configuration defaults to use. can either be ‘dev’ or ‘release’ (default “release”)
–identity-dir string main directory for storagenode identity credentials (default “identity”)
–log.caller if true, log function filename and line number
–log.development if true, set logging to development mode
–log.encoding string configures log encoding. can either be ‘console’ or ‘json’ (default “console”)
–log.level Level the minimum log level to log (default info)
–log.output string can be stdout, stderr, or a filename (default “stderr”)
–log.stack if true, log stack traces
–metrics.addr string address to send telemetry to (default “collectora.storj.io:9000”)
–metrics.app string application name for telemetry identification (default “storagenode”)
–metrics.app-suffix string application suffix (default “-release”)
–metrics.instance-prefix string instance id prefix
–metrics.interval duration how frequently to send up telemetry (default 1m0s)
–monkit.hw.oomlog string path to log for oom notices (default “/var/log/kern.log”)

Hello @nbhadradiya,
Welcome to the forum!

Please stop and remove the container

docker stop -t 300 storagenode 
docker rm storagenode 

Please, remove the config.yaml from the "/Users/monali-mac/Documents/storj"
Show the result of the command:

ls "/Users/monali-mac/Documents/storj"
df -h

Monalis-Mac-mini:storj monali-mac$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk2s1 1.0Ti 173Gi 859Gi 17% 3009144 9223372036851766663 0% /
devfs 192Ki 192Ki 0Bi 100% 664 0 100% /dev
/dev/disk2s4 1.0Ti 2.9Gi 859Gi 1% 4 9223372036854775803 0% /private/var/vm
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
/dev/disk3s1 149Mi 144Mi 4.5Mi 98% 12 4294967267 0% /Volumes/VirtualBox

Thank you.
Please, give me result of this command:

ls "/Users/monali-mac/Documents/storj"

Monalis-Mac-mini:storj monali-mac$ ls “/Users/monali-mac/Documents/storj”

Monalis-Mac-mini:storj monali-mac$

ok, please try to run the storagenode again, but replace all quotes in the command to the straight ones: " and all hyphens to two dashes -- in the command before run.
Please, do not use Notes or other word processors for editing the command, it will replace all straight quotes to curly ones, all double dashes to hyphens, which are not acceptable in the command shell.
Use only plain text editor.

1 Like

Hey thank you so much for helping me out, i am able to access node dashboard now. I really appreciate your time.

2 Likes