HELP Storj Node not working - Watchtower only showing up in Docker

After restarting my Mac which Storj has been running under docker perfectly for a few years today it stoped. On opening docker dashboard I can see that the only thing running and showing is watchtower. What do I need to do to get Storj up and running again and I hope that I have not lost anything. Any help will be very much appreciated.

Apon further investigation when clicking on watchtower in docker dashboard I see the following.


time="2022-03-03T01:50:53Z" level=info msg="Found new storjlabs/storagenode:latest image (sha256:f1a22a725dd5c8a237543ce9bd182532b437924cb87d8e8a4933a376e1722f82)"

time="2022-03-03T01:50:56Z" level=info msg="Stopping /storagenode (0db5f618c3d26856825b887854dbf0367eca09dba3dc61f9dadf427f8897f63e) with SIGTERM"

time="2022-03-03T01:50:58Z" level=info msg="Creating /storagenode"

time="2022-03-04T05:33:45Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-04T06:02:00Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-06T04:56:28Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-08T22:15:21Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-11T03:48:14Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-18T23:24:06Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-24T19:08:51Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-24T19:16:17Z" level=info msg="Waiting for running update to be finished..."

time="2022-03-27T02:20:13Z" level=info msg="Found new storjlabs/storagenode:latest image (sha256:d6826b3338c4070920b049e58fb4dce7e1d6f8f252106685b059de7501ef02d4)"

time="2022-03-27T02:20:16Z" level=info msg="Stopping /storagenode (489ef722345e68c274a1f3a2b540d6959b3cd485d9bee112f1a4c96a28142342) with SIGTERM"

time="2022-03-27T02:20:20Z" level=info msg="Creating /storagenode"

time="2022-04-07T03:04:52Z" level=info msg="Waiting for running update to be finished..."

time="2022-04-07T22:30:26Z" level=info msg="Waiting for running update to be finished..."

time="2022-04-20T18:33:24Z" level=info msg="Found new storjlabs/storagenode:latest image (sha256:73fa3c53b16ba099852a6058d2149114b4a7492f743a5029c7063933dfa4f53e)"

time="2022-04-20T18:33:27Z" level=info msg="Stopping /storagenode (1033c88b153996adb2c98294b7044b30be9269b6cb0d479ee9aaf7457201c0ce) with SIGTERM"

time="2022-04-20T18:33:45Z" level=info msg="Creating /storagenode"

time="2022-04-20T20:15:40Z" level=info msg="Waiting for running update to be finished..."

time="2022-04-21T07:09:11Z" level=info msg="Waiting for running update to be finished..."

time="2022-04-21T07:27:19Z" level=info msg="Waiting for running update to be finished..."


Cheers
Efraim

Just try to start the storagenode container: Storage Node | Storj Docs
If you do not remember parameters you have specified, you can run the inspector first, and save output to the file

docker inspect storagenode > my_storagenode.json

Then you can open the file my_storagenode.json with a text editor and recover your values for the docker run command.
Make sure that the previous container has been removed before run a new one.

3 Likes

Thanks Alex for your reply and help. I have found the my_storagenode.json file and opened it using text editor on Mac and all I get is a black page nothing is in there. What should I do next?
TIA
Efraim

You need to open it with a plain text editor. The other way is just use this command in the terminal:

cat ./my_storagenode.json

If it’s empty, then you probably doesn’t have storagenode container.
Please post result of the command:

docker ps -a

However, if you have saved your docker run command somewhere - you can use it to run a new container.
If you did not save anything last time when you run it - well, you can construct this command again, using correct parameters: Storage Node | Storj Docs or search in your commands history:

history | grep "docker run"

Please do not run the setup step again. It must be done only once for entire node’s life.

Here is the result

docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
85ef7ed61785 storjlabs/watchtower “/watchtower storage…” 14 months ago Up 2 minutes watchtower

BTW I did keep a copy of docker run I last used with all the information in it.

What do I have to stop or delete before I run the command.

Cheers
Efraim

Seems you do not have a storagenode container at all.
So just run it with all your parameters.

Something similar happened to me a few days ago.

One of the nodes attempted to update to v1.53.1, during the update the old container was deleted but the new one was not placed.

I have currently solved it by starting the node manually (which is currently still v1.52.2), when the rollout happens again i will see if it is a permanent error or it was temporary.

Thanks Alex ran the code all working now. Thanks for all the help.

Cheers

1 Like