My storage node wont start it keeps rebooting

My docker run script is below:

sudo docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967 \
-p 127.0.0.1:14002:14002 \
-e WALLET="xxx" \
-e EMAIL=“jcrew@tuta.io" \
-e ADDRESS=“xxx.mydns.me:28967" \
-e STORAGE=“13TB" \
--mount type=bind,source="/home/jjj/.local/share/storj/identity/storagenode",destination=/app/identity \
--mount type=bind,source=“/mnt/md0/",destination=/app/config \
--name storagenode storjlabs/storagenode:latest

it just keeps restarting looks like the entrypoint command but i cant seem to see any logs or trace the error to see whats wrong? help greatly appreciated

Hi jjj, welcome.

When you run docker logs storagenode is there any output?

Sidenote, to do pre-formatted blocks of text in this forum (Discourse is the backend), you can place 3 backticks ``` above and below the text you want to blockquote.

no useful output really i see an error just above the usage output but i think its a red herring
‘’
Error: unknown shorthand flag: ‘e’ in -e
Usage:
storagenode run [flags]
…etc
‘’’
The tail has just the global flags i dont think that is of any use.

I cant seem to find a way to output any relevant logging to see step by step what docker is doing. I thought there would be it seems very black box

Sounds like the run command is failing. Can you re-paste your run command between backticks as described? Sometimes the forum can strip useful clues about why your command isn’t working. Also, if you are using a text editor to create the run command, be sure to use notepad++, not MS word or something else that might change quotes, dashes, etc.

1 Like

here you go

‘’’
sudo docker run -d --restart unless-stopped --stop-timeout 300 \

-p 28967:28967 \

-p 127.0.0.1:14002:14002 \

-e WALLET=“removed” \

-e EMAIL=“jcrew@tuta.io" \

-e ADDRESS=“removed.me:28967" \

-e STORAGE=“13TB" \

–mount type=bind,source="/home/jjj/.local/share/storj/identity/storagenode",destination=/app/identity \

–mount type=bind,source=“/mnt/md0/",destination=/app/config \

–name storagenode storjlabs/storagenode:latest
‘’’

Looks like those aren’t backticks. It’s the key to the left of the #1 key on most keyboards.

sorry i dont know what a back tick is :slight_smile:
here are some forward slashes and a few talking marks and a few back slashes just in case thats what you mean

/// ‘’’ “”" \
sudo docker run -d --restart unless-stopped --stop-timeout 300 \

-p 28967:28967 \

-p 127.0.0.1:14002:14002 \

-e WALLET=“removed” \

-e EMAIL=“jcrew@tuta.io" \

-e ADDRESS=“removed.removed.me:28967" \

-e STORAGE=“13TB" \

–mount type=bind,source="/home/jjj/.local/share/storj/identity/storagenode",destination=/app/identity \

–mount type=bind,source=“/mnt/md0/",destination=/app/config \

–name storagenode storjlabs/storagenode:latest

/// ‘’’ “”" \\

Edit the post but put ``` above and below (you can copy from my post). It will show in preview if it’s working. But I think I can already see some curly quotes in your commands which will need to be fixed.

1 Like

are you sure your ports are open and forwarded to the correct ip?
it will usually just reboot if it cannot get a connection…

ok i copied them

sudo docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967 \
-p 127.0.0.1:14002:14002 \
-e WALLET="removed" \
-e EMAIL=“jcrew@tuta.io" \
-e ADDRESS=“removed.removed.me:28967" \
-e STORAGE=“13TB" \
--mount type=bind,source="/home/jjj/.local/share/storj/identity/storagenode",destination=/app/identity \
--mount type=bind,source=“/mnt/md0/",destination=/app/config \
--name storagenode storjlabs/storagenode:latest

Yes, definitely curly quotes where there shouldn’t be. You can see an example before your email address. I suggest copying the command from the docs into a linux friendly text editor (highly recommend notepad++), and redo your run command.

1 Like

file system output just for info

df
Filesystem       1K-blocks    Used   Available Use% Mounted on
udev               1986032       0     1986032   0% /dev
tmpfs               402916    1512      401404   1% /run
/dev/sda5        479151816 8994884   445747588   2% /
tmpfs              2014572       0     2014572   0% /dev/shm
tmpfs                 5120       4        5116   1% /run/lock
tmpfs              2014572       0     2014572   0% /sys/fs/cgroup
/dev/loop1           56704   56704           0 100% /snap/core18/1885
/dev/loop0           56320   56320           0 100% /snap/core18/1880
/dev/loop4           63616   63616           0 100% /snap/gtk-common-themes/1506
/dev/loop3          223232  223232           0 100% /snap/gnome-3-34-1804/60
/dev/loop2          261760  261760           0 100% /snap/gnome-3-34-1804/36
/dev/loop5           51072   51072           0 100% /snap/snap-store/467
/dev/loop6           51968   51968           0 100% /snap/snap-store/481
/dev/loop8           31744   31744           0 100% /snap/snapd/9607
/dev/md0       14220994816   32572 13504192096   1% /mnt/md0
/dev/sda1           523248       4      523244   1% /boot/efi
/dev/loop9           31744   31744           0 100% /snap/snapd/9721
tmpfs               402912       8      402904   1% /run/user/1000

ok i will remove the quotes and give it a go, give me a sec

There should be quotes there, they are required, but your command has the wrong type. Compare the ones before and after your email. The first ones are the curly type.

1 Like

really, but i copied directly from the documentation. if i remove the quotes from all the service starts. let me check the output

ID 12Ua4Mh2eh5WzdpMJnup8oDVtE89BVRajA68KTixZFr9ANzSttw
Status ONLINE
Uptime 1m44s

               Available        Used     Egress     Ingress
 Bandwidth           N/A     5.27 MB      512 B     5.27 MB (since Oct 1)
      Disk      13.00 TB     5.28 MB

Internal 127.0.0.1:7778

1 Like

looks like it is working. for completeness i will add my run command

What did you use to edit your command? The docs do not use curly quotes. They cause the command to fail. There are others, so you should really fix it. Chances are your email might not be properly recogized by the software if it wasn’t formatted properly. You could miss out on notification emails.

1 Like

Sorry i had to wait 23hrs to post this because i just signed up (how rude :)). I removed all the quotes from the documentation, added my items and ran this …it seems to be working now thanks. note the quotes are also removed on all the storage and config locations. i have about 4 GB loaded into the 13TB container in the last 24 hrs.

sudo docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967 \
-p 127.0.0.1:14002:14002 \
-e WALLET=removed \
-e EMAIL=jcrew@tuta.io \
-e ADDRESS=removed.removed.me:28967 \
-e STORAGE=13TB \
--mount type=bind,source=/home/jjj/.local/share/storj/identity/storagenode,destination=/app/identity \
--mount type=bind,source=/mnt/md0/,destination=/app/config \
--name storagenode storjlabs/storagenode:latest

I just used a basic txt editor and copied and pasted from the documentation