Yes, I also originally thought the single -d was sufficient but was later told that the first one was actually a docker flag and not part of the watchtower invocation.
Wouldn’t watchtower still be logging without using the -d flag?
It was previously, and because of the log items i removed the container and went to see for a fix.
And that 2nd -d is also not present in the official documentation…
Yes, but that only includes log messages when an update is found, not when it checks for updates. The default logging is pretty minimal, so I prefer to use that flag to have a little bit more.
For what it’s worth, I am using watchtower on a rock64 without issues. I am using the exact command from the storj documentation, without experimental and without -platform aarch64. I would hazard a guess that we are using different OS though. I am using the ayufan Debian Stretch image, which is admittedly bit outdated at this point.
$ uname -srm
Linux 4.4.202-1237-rockchip-ayufan-gfd4492386213 aarch64
$ docker --version
Docker version 19.03.8, build afacb8b
Linux 4.4.126-rockchip-ayufan-239 aarch64
Docker version 19.03.8, build afacb8b
This node should be decommissioned… as it isn’t supported anymore.
That’s why i am setting up a second node on x86-64 hardware… maybe the rock64 will return someday
I have been meaning to switch my rock64 over to the latest Armbian Buster release since it is regularly updated (currently kernel v5.4.43) and now officially supports the rock64 (I don’t believe it did when I first got the board).
FINALLY!!! I noticed today on my dashboard that it said my node had an UPTIME of 30h58m. Knowing that this didn’t look correct I logged in and checked watchtower and it looks like it finally is finding and updating my node:
2020-08-20T14:21:52.768505332Z time=“2020-08-20T14:21:52Z” level=debug msg=“No authentication credentials found for storjlabs/storagenode:latest”
2020-08-20T14:22:00.685977010Z time=“2020-08-20T14:22:00Z” level=info msg=“Found new storjlabs/storagenode:latest image (sha256:ebdf5bd79234128d2d3fb4183a17ef2a03a77d948eea11c00e47a652188fe030)”
2020-08-20T14:22:00.686126223Z time=“2020-08-20T14:22:00Z” level=debug msg=“Pulling storjlabs/watchtower:latest for /watchtower”
2020-08-20T14:22:00.686158266Z time=“2020-08-20T14:22:00Z” level=debug msg=“No credentials for storjlabs in /config.json”
Watchtower runs on my main server without problems since the beginning. To troubleshoot an unrelated problem I moved 3 nodes to another PC. Watchtower doesn’t work there. First I had the wrong names of the containers in my watchtower (d’oh). After correcting it, stopping and removing the watchtower container, It still doesn’t update.
docker logs watchtower gives me
time="2020-10-08T22:06:49Z" level=info msg="Waiting for running update to be finished..."
and these nodes are still on 1.12.3. My docker run command is
with --cleanup
I have the storjlabs/watchtower working, but not updating …
in the official documentation is: docker run -d --restart=always --name watchtower -v /var/run/docker.sock:/var/run/docker.sock storjlabs/watchtower storagenode watchtower --stop-timeout 300s --interval 21600
I post the updated configuration, I use the original watchtower from containrrr/watchtower because storjlabs/watchtower is not updated more than half of the year. I prefer to use the original with fixed bugs.
Just reporting back that watchtower updated all 3 nodes on that PC last night after removing the --cleanup option. It works with --cleanup on the other server though. Strange…
I guess it wasn’t the --cleanup which causes the problem. Now watchtower is stuck again
~# docker logs watchtower
time="2020-10-11T13:50:44Z" level=info msg="Waiting for running update to be finished..."
No more log entries since 2 days ago. I found this issue on Github, which sounds similar to my problem
I had to restart this PC several times in the last few days due to another problem and I didn’t stop watchtower before. I’ll investigate further in this direction…