Hi All,
I updated Docker today and after restarting my Mac and Docker restarting Storj no longer is working and there is no container at all. Seems like something happened and its all gone. What do I do? I am a newbie and got Storj up and running in Docker around 4 months ago and this is my first time something has gone wrong just after I started earning.
Any help would be very much appreciated.
Did you store somewhere your docker run command?
If not, I would suggest to do so and create a bash script to run storagenode with CLI text editor, for example - nano.
The template of the command you can take there: Storage Node - Node Operator
For watchtower there: Software Updates - Node Operator
You need substitute your values for each <whatsever> placeholder including < and >.
If you do not know, what you specified instead of placeholders 4 months ago, you can try to find them by history | grep docker command in your terminal.
If search give no result, you can form them from scratch.
Perhaps you didn’t move your identity, so you can try to get a full path to it:
echo ~/.local/share/storj/identity/storagenode
To see what’s path to your disk:
df -H
I hope that you know what was your wallet address and you still have keys from it.
Please, do not run a setup step with SETUP=true! It could destroy your node!
I ran the command docker ps - a in terminal and got this result. I can’t understand what has happened.
‘’’
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
713b27aba741 docker “docker-entrypoint.s…” 2 days ago Restarting (1) 3 seconds ago trusting_shockley
‘’’
That looks like your node is actually using an auto generated name of trusting_shockley and looks like it is likely stuck in a reboot loop (so never actually finishes booting).
Are you able to post a longer output of your logs?:
docker logs trusty_shockley
If I had to guess based on the default name, it is missing the path to your storage and identity files.
For the ticks, try using back ticks instead of single quotes (on a standard US keyboard this would be the key below escape, not sure on other layouts).
When running the command docker logs trusting_shockley in Mac Terminal I get the following hundreds of lines.
error during connect: Post http://docker:2375/v1.24/containers/storagenode/start: dial tcp: lookup docker on 192.168.65.5:53: no such host
Error: failed to start containers: storagenode
error during connect: Post http://docker:2375/v1.24/containers/storagenode/start: dial tcp: lookup docker on 192.168.65.5:53: no such host
Error: failed to start containers: storagenode```
I see that path to the storage is /Volumes/StorjStorage, now let’s figure out where is identity.
Execute commands:
ls -l ~/Library/Application\ Support/Storj/identity/storagenode
echo ~/Library/Application\ Support/Storj/identity/storagenode
Please also show result of the command:
ls -l /Volumes/StorjStorage
Please, run the storagenode: Storage Node - Node Operator, replace all <whatever> placeholders (< and > included) to your actual values.
Do not use any wordprocessors include Notes, they will replace straight quotes " to curly ones, double dashes -- to hyphen and so on, use only text plain editor or nano in the terminal.
I would recommend to put the whole command to the bash script, i.e. start-node.sh for example, and save it to /Volumes/StorjStorage.
This way you would not need to remember what was where.
thank you for all your help. Here is what was shown in terminal up to running the storage node script. Can you help me with that as I don’t want to stuff it up and not sure what parameters to use.
total 48
-rw-r--r-- 1 efraimsilver staff 562 28 Jan 04:12 ca.1611767547.cert
-rw-r--r-- 1 efraimsilver staff 1088 28 Jan 04:12 ca.cert
-rw------- 1 efraimsilver staff 241 28 Jan 04:06 ca.key
-rw-r--r-- 1 efraimsilver staff 1100 28 Jan 04:12 identity.1611767547.cert
-rw-r--r-- 1 efraimsilver staff 1626 28 Jan 04:12 identity.cert
-rw------- 1 efraimsilver staff 241 28 Jan 04:06 identity.key
efraimsilver@BTFSNode2 ~ % echo ~/Library/Application\ Support/Storj/identity/storagenode
/Users/efraimsilver/Library/Application Support/Storj/identity/storagenode
efraimsilver@BTFSNode2 ~ % ls -l /Volumes/StorjStorage
total 80
-rw------- 1 efraimsilver staff 8447 28 Jan 10:22 config.yaml
drwx------ 5 efraimsilver staff 160 30 Jan 02:44 orders
-rw------- 1 efraimsilver staff 32768 4 Jun 20:39 revocations.db
drwx------ 49 efraimsilver staff 1568 10 Jun 20:13 storage
-rw------- 1 efraimsilver staff 1377 10 Jun 19:11 trust-cache.json
efraimsilver@BTFSNode2 ~ %