containrrr / watchtower

A process for automating Docker container base image updates.
https://containrrr.dev/watchtower/
Apache License 2.0
18.28k stars 830 forks source link

Watchtower now just removing containers and putting random stuff in it's place #1812

Open Spillebulle opened 10 months ago

Spillebulle commented 10 months ago

Describe the bug

I have used watchtower for years now without issue but suddenly it started doing weird things. My plex container was suddenly gone one morning and this new container was in it's place (see image)

I am on the DEV branch and have it set to run at 3 AM every morning.

Also note that the image used to create this odd weird container was containrrr/watchtower:latest-dev

Steps to reproduce

Set up watchtower on the dev branch

Set it to run at 3 am at night

Watch the mayhem the next morning

Expected behavior

It should recreate the plex container with the latest image

Screenshots

image

Environment

Your logs

I don't want to run it again as it would screw up my containers

Additional context

No response

github-actions[bot] commented 10 months ago

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! 🙏

piksel commented 10 months ago

You should be able to retrieve the logs from the previous run. Just running docker logs watchtower or similar should show them. We don't have much to go on otherwise...

piksel commented 10 months ago

What time zone is 3 AM in? It could be because of a prior bug that I fixed yesterday that caused watchtower to crash, leaving a temporary container (the random one).

Spillebulle commented 10 months ago

This is CEST +2

time="2023-10-24T03:00:36+02:00" level=info msg="Watchtower v1.6.0-12-g3d1ed23"
time="2023-10-24T03:00:36+02:00" level=info msg="Using no notifications"
time="2023-10-24T03:00:36+02:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2023-10-24T03:00:36+02:00" level=info msg="Scheduling first run: 2023-10-25 03:00:00 +0200 CEST"
time="2023-10-24T03:00:36+02:00" level=info msg="Note that the first check will be performed in 23 hours, 59 minutes, 23 seconds"
time="2023-10-24T10:24:13+02:00" level=info msg="Waiting for running update to be finished..."
time="2023-10-24T16:15:38+02:00" level=info msg="Watchtower v1.6.0-12-g3d1ed23"
time="2023-10-24T16:15:38+02:00" level=info msg="Using no notifications"
time="2023-10-24T16:15:38+02:00" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2023-10-24T16:15:38+02:00" level=info msg="Scheduling first run: 2023-10-25 03:00:00 +0200 CEST"
time="2023-10-24T16:15:38+02:00" level=info msg="Note that the first check will be performed in 10 hours, 44 minutes, 21 seconds"
ilike2burnthing commented 10 months ago

The containers being removed is the same issue as https://github.com/containrrr/watchtower/issues/1809 (and has been resolved), and the randomly named containers should be the old Watchtower container (check its logs) which couldn't be removed, as also reported in that issue.

ilike2burnthing commented 10 months ago

Issue is now resolved - https://github.com/containrrr/watchtower/issues/1835