mangoo
August 18, 2021, 10:29pm
1
So I did the following on Ubuntu 18.04 LTS:
apt update && apt dist-upgrade && apt clean && apt autoremove
After which I’ve restarted the node server, and… there is no storj nor watchtower container anymore:
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
#
How do I recover from that?
The data is still there on disk.
Just personal habit, but I typically stop my storagenode container(s) before running the update/upgrade commands mainly because I usually restart the machine after the update/upgrade. Then I just restart the node after the reboot. Since it looks like your containers are gone, you would just need to re-run your docker start commands.
For the storagenode, it would look like this:
docker run -d --restart unless-stopped --stop-timeout 300 \
-p 28967:28967/tcp \
-p 28967:28967/udp \
-p 127.0.0.1:14002:14002 \
-e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
-e EMAIL="user@example.com" \
-e ADDRESS="domain.ddns.net:28967" \
-e STORAGE="2TB" \
--mount type=bind,source="<identity-dir>",destination=/app/identity \
--mount type=bind,source="<storage-dir>",destination=/app/config \
--name storagenode storjlabs/storagenode:latest
and watchtower would look like this:
docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s
FYI, both of these are directly from the storj node documentation:
hope this helps.
3 Likes