Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Error writing events with webhook (Client.Timeout) and WebUI not updating. #2316

Open
RyanLiu6 opened this issue Jul 21, 2020 · 2 comments
Open
Labels

Comments

@RyanLiu6
Copy link

Description

I'm seeing this error all over the logs for the registry container. My configuration is shown below.

time="2020-07-21T07:17:58.750029836Z" level=error msg="retryingsink: error writing events: httpSink{https://some.server.com:12443/v2/webhooks/events}: error posting: Post https://some.server.com:12443/v2/webhooks/events: net/http: request canceled (Client.Timeout exceeded while awaiting headers), retrying" 
time="2020-07-21T07:17:58.750065575Z" level=warning msg="httpSink{https://some.server.com:12443/v2/webhooks/events} encountered too many errors, backing off" 

Steps to reproduce

  1. Run docker-compose up -d
  2. Push some images
  3. View the logs
  • Expected behavior: Expect to not see errors about webhooks and see an update in the WebUI.
  • Actual behavior: Seeing this being spammed every second and WebUI only showing events from when the container was spun up at first.

Deployment information

Deployment method: I'm following the sample compose file configuration, with some modifications, which you can see below.

Configuration:
Portus version: 2.5.0-dev@a1b9f2ebfeb84680a9dcd5629195e4c52815735c

Rake information for both portus and background containers can be found here
Compose files and other configuration can be found here.

I looked at several of the issues (specifically #2275 and #2241) but the suggestions were not able to fix my problem. Running curl on my server (host, not container) results in the following:

curl https://some.server.com/v2/_catalog -> list of images

curl https://some.server.com:12443/v2/_catalog -> list of images

curl https://some.server.com/v2/webhooks/events -> 404 not found.

curl https://some.server.com:12443/v2/webhooks/events -> 404 not found.

So I'm not quite sure what's going with my configuration and any help would be appreciated!

@megamaced
Copy link

this issue for me seemed to go away after I increased the timeout value to 1500ms

notifications:
endpoints:
- name: portus
url: https://portus.domain.co.uk/v2/webhooks/events
timeout: 1500ms
threshold: 5
backoff: 1s

@stale
Copy link

stale bot commented Jan 9, 2022

Thanks for all your contributions!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants