watchtower icon indicating copy to clipboard operation
watchtower copied to clipboard

On error print recreate command

Open federicoalvarez-github opened this issue 1 year ago • 4 comments
trafficstars

Describe the bug

Happened a couple of days ago. Watchtower failed to recreate 7 containers, but they were deleted.

I went through the logs but no way to find the recreate command that failed.

Please add that to the logs so they can be run manually.

(My bad for not having those commands backed up... Still having that can come in handy when things go south....)

Steps to reproduce

At any point in time, go to the logs, try to find information regarding containers recreation.

Expected behavior

See information about the container that is being updated, so it can be run manually just in case.

Screenshots

No response

Environment

Docker on raspberry pi

Your logs

time="2024-01-17T02:46:30-03:00" level=info msg="Session done" Failed=0 Scanned=15 Updated=9 notify=no
time="2024-01-22T04:01:56-03:00" level=info msg="Waiting for running update to be finished..."
time="2024-01-22T04:03:14-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-22T04:03:14-03:00" level=info msg="Using notifications: smtp"
time="2024-01-22T04:03:14-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-22T04:03:14-03:00" level=info msg="Scheduling first run: 2024-01-24 02:00:00 -0300 -03"
time="2024-01-22T04:03:14-03:00" level=info msg="Note that the first check will be performed in 45 hours, 56 minutes, 45 seconds"
time="2024-01-22T04:04:06-03:00" level=info msg="Waiting for running update to be finished..."
time="2024-01-22T04:07:06-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-22T04:07:06-03:00" level=info msg="Using notifications: smtp"
time="2024-01-22T04:07:06-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-22T04:07:06-03:00" level=info msg="Scheduling first run: 2024-01-24 02:00:00 -0300 -03"
time="2024-01-22T04:07:06-03:00" level=info msg="Note that the first check will be performed in 45 hours, 52 minutes, 53 seconds"
time="2024-01-22T04:07:16-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-24T02:01:20-03:00" level=info msg="Found new lscr.io/linuxserver/jellyfin:latest image (c7702995dc2f)"
time="2024-01-24T02:09:02-03:00" level=info msg="Found new lscr.io/linuxserver/duplicati:latest image (b233c6f3c331)"
time="2024-01-24T02:11:28-03:00" level=info msg="Found new lscr.io/linuxserver/mariadb:latest image (2e75e4c7c056)"
time="2024-01-24T02:26:21-03:00" level=info msg="Found new homeassistant/home-assistant:latest image (9c19b1fddc11)"
time="2024-01-24T02:31:41-03:00" level=info msg="Found new lscr.io/linuxserver/firefox:latest image (2e66fbb2c8e5)"
time="2024-01-24T02:33:26-03:00" level=info msg="Found new linuxserver/qbittorrent:latest image (d6b6f159c737)"
time="2024-01-24T02:37:57-03:00" level=info msg="Found new lscr.io/linuxserver/emulatorjs:latest image (4721707d81e2)"
time="2024-01-24T02:39:38-03:00" level=info msg="Found new lscr.io/linuxserver/heimdall:latest image (6c80345a694d)"
time="2024-01-24T02:40:04-03:00" level=info msg="Found new lscr.io/linuxserver/librespeed:latest image (3c7967503537)"
time="2024-01-24T02:40:11-03:00" level=info msg="Stopping /librespeed (4ff779d0241c) with SIGTERM"
time="2024-01-24T02:41:32-03:00" level=info msg="Stopping /heimdall (fc7e2ff1e4ed) with SIGTERM"
time="2024-01-24T02:41:43-03:00" level=info msg="Stopping /emulatorjs (ccd6f420d37c) with SIGTERM"
time="2024-01-24T02:41:50-03:00" level=info msg="Stopping /qbittorrent (1f54085640c9) with SIGTERM"
time="2024-01-24T02:41:57-03:00" level=info msg="Stopping /firefox (19b1f0f9a7cb) with SIGTERM"
time="2024-01-24T02:42:03-03:00" level=info msg="Stopping /homeassistant (64693650f3b9) with SIGTERM"
time="2024-01-24T02:42:15-03:00" level=info msg="Stopping /mariadb (8bc9461ab0c9) with SIGTERM"
time="2024-01-24T02:42:29-03:00" level=info msg="Stopping /duplicati (ba2647702b13) with SIGTERM"
time="2024-01-24T02:42:40-03:00" level=info msg="Stopping /jellyfin (3dc3a42541cd) with SIGTERM"
time="2024-01-24T02:42:53-03:00" level=info msg="Creating /jellyfin"
time="2024-01-24T02:42:53-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:42:53-03:00" level=info msg="Creating /duplicati"
time="2024-01-24T02:42:53-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:42:53-03:00" level=info msg="Creating /mariadb"
time="2024-01-24T02:42:53-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:42:53-03:00" level=info msg="Creating /homeassistant"
time="2024-01-24T02:42:57-03:00" level=error msg="Error response from daemon: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:42:57-03:00" level=info msg="Creating /firefox"
time="2024-01-24T02:43:10-03:00" level=info msg="Creating /qbittorrent"
time="2024-01-24T02:43:10-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:43:10-03:00" level=info msg="Creating /emulatorjs"
time="2024-01-24T02:43:10-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:43:10-03:00" level=info msg="Creating /heimdall"
time="2024-01-24T02:43:10-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:43:10-03:00" level=info msg="Creating /librespeed"
time="2024-01-24T02:43:10-03:00" level=error msg="Error response from daemon: invalid config for network bridge: invalid endpoint settings:\nnetwork-scoped alias is supported only for containers in user defined networks"
time="2024-01-24T02:43:10-03:00" level=info msg="Removing image bdf04da73907"
time="2024-01-24T02:43:18-03:00" level=info msg="Session done" Failed=8 Scanned=15 Updated=1 notify=no
time="2024-01-29T04:00:48-03:00" level=info msg="Waiting for running update to be finished..."
time="2024-01-29T04:01:13-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-29T04:01:13-03:00" level=info msg="Using notifications: smtp"
time="2024-01-29T04:01:13-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-29T04:01:13-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-29T04:01:13-03:00" level=info msg="Note that the first check will be performed in 45 hours, 58 minutes, 46 seconds"
time="2024-01-29T04:01:42-03:00" level=info msg="Waiting for running update to be finished..."
time="2024-01-29T04:03:24-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-29T04:03:24-03:00" level=info msg="Using notifications: smtp"
time="2024-01-29T04:03:24-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-29T04:03:24-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-29T04:03:24-03:00" level=info msg="Note that the first check will be performed in 45 hours, 56 minutes, 35 seconds"
time="2024-01-29T04:03:34-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-29T10:18:29-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-29T10:18:29-03:00" level=info msg="Using notifications: smtp"
time="2024-01-29T10:18:29-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-29T10:18:29-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-29T10:18:29-03:00" level=info msg="Note that the first check will be performed in 39 hours, 41 minutes, 30 seconds"
time="2024-01-29T10:18:39-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-29T18:18:46-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-29T18:18:46-03:00" level=info msg="Using notifications: smtp"
time="2024-01-29T18:18:46-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-29T18:18:46-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-29T18:18:46-03:00" level=info msg="Note that the first check will be performed in 31 hours, 41 minutes, 13 seconds"
time="2024-01-29T18:18:56-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-30T10:18:33-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-30T10:18:33-03:00" level=info msg="Using notifications: smtp"
time="2024-01-30T10:18:33-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-30T10:18:33-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-30T10:18:33-03:00" level=info msg="Note that the first check will be performed in 15 hours, 41 minutes, 26 seconds"
time="2024-01-30T10:18:43-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-30T12:18:48-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-30T12:18:48-03:00" level=info msg="Using notifications: smtp"
time="2024-01-30T12:18:48-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-30T12:18:48-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-30T12:18:48-03:00" level=info msg="Note that the first check will be performed in 13 hours, 41 minutes, 11 seconds"
time="2024-01-30T12:18:58-03:00" level=error msg="Failed to send shoutrrr notification" error="failed to send using smtp: timed out" index=0 notify=no service=smtp
time="2024-01-30T23:29:45-03:00" level=info msg="Waiting for running update to be finished..."
time="2024-01-30T23:30:07-03:00" level=info msg="Watchtower 1.7.1"
time="2024-01-30T23:30:07-03:00" level=info msg="Using notifications: smtp"
time="2024-01-30T23:30:07-03:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-01-30T23:30:07-03:00" level=info msg="Scheduling first run: 2024-01-31 02:00:00 -0300 -03"
time="2024-01-30T23:30:07-03:00" level=info msg="Note that the first check will be performed in 2 hours, 29 minutes, 52 seconds"
time="2024-01-31T02:05:26-03:00" level=info msg="Found new lscr.io/linuxserver/firefox:latest image (fb64c7f4e9ec)"
time="2024-01-31T02:05:34-03:00" level=info msg="Stopping /firefox (54d0c62842ed) with SIGTERM"
time="2024-01-31T02:05:40-03:00" level=info msg="Creating /firefox"
time="2024-01-31T02:05:42-03:00" level=info msg="Removing image 2e66fbb2c8e5"
time="2024-01-31T02:05:45-03:00" level=info msg="Session done" Failed=0 Scanned=8 Updated=1 notify=no
time="2024-02-01T00:08:08-03:00" level=info msg="Waiting for running update to be finished..."

Additional context

Report email:

Found new lscr.io/linuxserver/jellyfin:latest image (c7702995dc2f) Found new lscr.io/linuxserver/duplicati:latest image (b233c6f3c331) Found new lscr.io/linuxserver/mariadb:latest image (2e75e4c7c056) Found new homeassistant/home-assistant:latest image (9c19b1fddc11) Found new lscr.io/linuxserver/firefox:latest image (2e66fbb2c8e5) Found new linuxserver/qbittorrent:latest image (d6b6f159c737) Found new lscr.io/linuxserver/emulatorjs:latest image (4721707d81e2) Found new lscr.io/linuxserver/heimdall:latest image (6c80345a694d) Found new lscr.io/linuxserver/librespeed:latest image (3c7967503537) Stopping /librespeed (4ff779d0241c) with SIGTERM Stopping /heimdall (fc7e2ff1e4ed) with SIGTERM Stopping /emulatorjs (ccd6f420d37c) with SIGTERM Stopping /qbittorrent (1f54085640c9) with SIGTERM Stopping /firefox (19b1f0f9a7cb) with SIGTERM Stopping /homeassistant (64693650f3b9) with SIGTERM Stopping /mariadb (8bc9461ab0c9) with SIGTERM Stopping /duplicati (ba2647702b13) with SIGTERM Stopping /jellyfin (3dc3a42541cd) with SIGTERM Creating /jellyfin Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /duplicati Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /mariadb Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /homeassistant Error response from daemon: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /firefox Creating /qbittorrent Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /emulatorjs Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /heimdall Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Creating /librespeed Error response from daemon: invalid config for network bridge: invalid endpoint settings: network-scoped alias is supported only for containers in user defined networks Removing image bdf04da73907

federicoalvarez-github avatar Feb 01 '24 03:02 federicoalvarez-github

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Feb 01 '24 03:02 github-actions[bot]

Me too. Any hint?

Watchtower updates on fb0d93f52acb: Found new koenkk/zigbee2mqtt:latest image (9f5eba99be84)
Stopping /zigbee2mqtt (0f712d95971e) with SIGTERM
Creating /zigbee2mqtt
Error response from daemon: invalid config for network bridge: invalid endpoint settings:
network-scoped alias is supported only for containers in user defined networks

error message repeats with other containers...

forTT78 avatar Feb 02 '24 17:02 forTT78

looks like there is an bugfix comming via docker.

forTT78 avatar Feb 03 '24 05:02 forTT78

looks like there is an bugfix comming via docker.

Thanks forTT78 for the update and keeping track! I think it would still be useful to have the recreate command logged somewhere, specially when an error occurs. Thanks again!

federicoalvarez-github avatar Feb 03 '24 12:02 federicoalvarez-github