Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Watchtower HTTP API skipped." #2052

Open
williamtrelawny opened this issue Nov 21, 2024 · 1 comment
Open

"Watchtower HTTP API skipped." #2052

williamtrelawny opened this issue Nov 21, 2024 · 1 comment

Comments

@williamtrelawny
Copy link

Describe the bug

Watchtower HTTP API is not accessible. Running docker run with --debug reveals this message: level=debug msg="Watchtower HTTP API skipped." curl returns curl: (56) Recv failure: Connection reset by peer error. My user is part of the docker group, so binding to the Docker socket shouldn't be a problem. I also ran the below with sudo just to be sure, still did not work.

Here's my setup:

docker run --detach --name watchtower -p 0.0.0.0:8080:8080 --volume /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped -e WATCHTOWER_MONITOR_ONLY -e WATCHTOWER_HTTP_API_UPDATE containrrr/watchtower --debug

My curl command & output:

user@host:~$ curl -v localhost:8080/v1/update
*   Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /v1/update HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.88.1
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer

Steps to reproduce

  1. Issue docker run command provided above
  2. Observe watchtower container log reporting "Watchtower HTTP API skipped."
  3. curl attempt above fails

Expected behavior

Should be able to curl the Watchtower HTTP API endpoint per docs

Screenshots

No response

Environment

  • OS: Debian 12.7
  • Architecture: amd64
  • Linux Kernel: 6.1.0-26
  • Docker Version: 27.3.1

Your logs

time="2024-11-21T16:00:02Z" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized."
time="2024-11-21T16:00:03Z" level=debug msg="Making sure everything is sane before starting"
time="2024-11-21T16:00:03Z" level=debug msg="Retrieving running containers"
time="2024-11-21T16:00:03Z" level=debug msg="There are no additional watchtower containers"
time="2024-11-21T16:00:03Z" level=debug msg="Watchtower HTTP API skipped."
time="2024-11-21T16:00:03Z" level=info msg="Watchtower 1.7.1"
time="2024-11-21T16:00:03Z" level=info msg="Using no notifications"
time="2024-11-21T16:00:03Z" level=info msg="Checking all containers (except explicitly disabled with label)"
time="2024-11-21T16:00:03Z" level=info msg="Scheduling first run: 2024-11-22 16:00:03 +0000 UTC"
time="2024-11-21T16:00:03Z" level=info msg="Note that the first check will be performed in 23 hours, 59 minutes, 59 seconds"


### Additional context

_No response_
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant