Open ptr727 opened 1 year ago
Yea, I think this would probably explain my issue too...
We are seeing this same behaviour with other stacks – For example GlueTUN VPN container. In my case named 'vpngluetun' with the label below on each of the attached containers. qBittorrent / Prowlarr/ Firefox in that order in the stack.
labels:
com.centurylinklabs.watchtower.depends-on: "vpngluetun"
Last night's update ran in the following order
time="2023-05-08T02:00:48+01:00" level=info msg="Found new linuxserver/qbittorrent:latest image (b44efb4fb344)"
time="2023-05-08T02:00:53+01:00" level=info msg="Found new qmcgaw/gluetun:latest image (a8730831620f)"
time="2023-05-08T02:03:34+01:00" level=info msg="Stopping /vpngluetun (b206bb9bbbf2) with SIGTERM"
time="2023-05-08T02:03:38+01:00" level=info msg="Stopping /vpn-qbittorrent (628794b307bb) with SIGTERM"
time="2023-05-08T02:03:50+01:00" level=info msg="Stopping /vpn-prowlarr (5cdec1375c29) with SIGTERM"
time="2023-05-08T02:04:01+01:00" level=info msg="Stopping /firefox (590992413c43) with SIGTERM"
time="2023-05-08T02:04:08+01:00" level=info msg="Creating /firefox"
time="2023-05-08T02:04:08+01:00" level=error msg="Error response from daemon: No such container: b206bb9bbbf2be1703f854b37a558fc5c7e7380c90c15604688b3724814a5fa6"
time="2023-05-08T02:04:08+01:00" level=info msg="Creating /vpn-prowlarr"
time="2023-05-08T02:04:09+01:00" level=error msg="Error response from daemon: No such container: b206bb9bbbf2be1703f854b37a558fc5c7e7380c90c15604688b3724814a5fa6"
time="2023-05-08T02:04:09+01:00" level=info msg="Creating /vpn-qbittorrent"
time="2023-05-08T02:04:09+01:00" level=error msg="Error response from daemon: No such container: b206bb9bbbf2be1703f854b37a558fc5c7e7380c90c15604688b3724814a5fa6"
time="2023-05-08T02:04:09+01:00" level=info msg="Creating /vpngluetun"
@DrFrankensteinUK Try adding a /
before the container name
labels:
com.centurylinklabs.watchtower.depends-on: "/vpngluetun"
or try using containrrr/watchtower:latest-dev
.
Thanks - I spotted this suggested fix in another issue thread. I am due an update tonight so will see how it goes - Any ideas when the next stable release will be out including the fix?
@DrFrankensteinUK Try adding a
/
before the container namelabels: com.centurylinklabs.watchtower.depends-on: "/vpngluetun"
or try using
containrrr/watchtower:latest-dev
.
OK - The update took place and in the correct order but has highlighted a difference issue where the existing containers seem to be looking for the old container ID and do not attach.. After some searching of various threads I don't think there is a sane way to allow Watchtower to update the VPN stack without issue - going to do manual updates..
going to do manual updates..
I guess as a workaround we could use pre-update and post-update to stop/start the containers...
going to do manual updates..
I guess as a workaround we could use pre-update and post-update to stop/start the containers...
For the couple of times I tested the attached container had just completely stalled with no signs of life – empty logs so not sure if this would work. - For the minimal amount of time it takes to just update the container vs time troubleshooting going to run with the latter (learning from spending hours on this kind of thing before) :)
Describe the bug
I am using labels to define
depends-on
relationships between containers, i.e. Home Assistant depends on MariaDB.Last night MariaDB updated, and was eager to see the dependency logic in action, else normally HA stop working.
I noticed couple things that do not seem right:
com.centurylinklabs.watchtower.depends-on: zigbee2mqtt,mariadb
label, Home Assistant should have been stopped first, then MariaDB.Steps to reproduce
depends-on
labelsExpected behavior
If A depends on B, then A needs to be stopped before B is stopped, and B needs to be started before A is started.
Screenshots
No response
Environment
Debian / Proxmox 7 Docker version 23.0.1, build a5ee5b1
Your logs
Home Assistant Labels:
Watchtower logs:
Email notification: