I am setting up my second Storj node.
But i got the issues that , every hours , the node will be terminated, related : storagenode-updater.
Did anyone has the same issues?
Log screen capture is attached.
Please allow it to update. I hope you have --restart unless-stopped option in your docker run command.
What logs shows after the node is terminated inside the container?
My manual solution, write a script to check the docker is exit or not. If it is exited, run the restart command.
#!/bin/bash
while true
do
docker ps -a | grep storagenode | grep Exited
if [ $? -eq 0 ]; then
echo "Terminated!!!"
docker restart -t 300 storagenode
else
echo "Storj is still running!"
fi
sleep 30
done
BTW, I have to say that your problem is quite unique. For some reason your docker container is cleanly shut down, which suggests some additional tooling operating on the computer you run your node on. Unless you manage to provide some more clues, it will be difficult to offer you any advise.
Do you have a watchtower running? If so - make sure that there is only one instance.
If not - please search for OOM kill messages in the system logs, because if container fail - the docker daemon should restart it.
When the container will stop again - please check that it is stopped and not deleted:
docker ps -a
If the container is deleted, then something external deleted it (not the storagenode container itself).
I had similar trouble in early days on my Synology-NAS. Back then the synology-internal Firewall was the problem. Although the TCP-Ports (and from a later Storj Version on also the UDP-Ports) were open the node started running perfectly. But somewhen it stopped working. The Docker Container itself did not shut down, but the Storj Node was all of a sudden currupt.
The solution was to open the firewall port 172.17.0.0/255.255.0.0. Obviously Docker needs this…
Probably this won’t fit your current problem… So good luck anyways.