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

HEAD 500 (Internal Server Error) check Online @ index-DHk fo9r.was:148 #803

Open
alkostation opened this issue Aug 25, 2024 · 2 comments
Open

Comments

@alkostation
Copy link

alkostation commented Aug 25, 2024

I'm using HOMER in a docker swarm environment. The ingress requests are handled by traefik reverse proxy and passed to the HOMER service via the forward-auth middleware. When i set on the "connectivityCheck: true" in the config file. I get a message "You're offline, friend." in few seconds. The browser network tab shows: Failed to load resource: the server responded with a status of 500 ()
homer HEAD 500 (Internal Server Error) check Online @ index-DHk fo9r.was:148 created @ index-DHk fo9r.js:148 Et @ index-DHkbfo9r.js:14 Xe @ index-DHkbfo9r.js:14 eo @ index-DHkbfo9r.js:14 Uf @ index-DHkbfo9r.js:14 xl @ index-DHkbfo9r.js:14 wu @ index-DHkbfo9r.js:14 _u @ index-DHkbfo9r.js:14 mn @ index-DHkbfo9r.js:14 Wt @ index-DHkbfo9r.js:14 m @ index-DHkbfo9r.js:14 R @ index-DHkbfo9r.js:14 $ @ index-DHkbfo9r.js:14 F @ index-DHkbfo9r.js:14 m @ index-DHkbfo9r.js:14 R @ index-DHkbfo9r.js:14 $ @ index-DHkbfo9r.js:14 F @ index-DHkbfo9r.js:14 m @ index-DHkbfo9r.js:14 R @ index-DHkbfo9r.js:14 $ @ index-DHkbfo9r.js:14 F @ index-DHkbfo9r.js:14 m @ index-DHkbfo9r.js:14 A @ index-DHkbfo9r.js:14 run @ index-DHkbfo9r.js:10 h.update @ index-DHkbfo9r.js:14 Et @ index-DHkbfo9r.js:14 ml @ index-DHkbfo9r.js:14 Promise.then dl @ index-DHkbfo9r.js:14 Us @ index-DHkbfo9r.js:14 (anonymous) @ index-DHkbfo9r.js:14 sr @ index-DHkbfo9r.js:10 gt @ index-DHkbfo9r.js:10 set @ index-DHkbfo9r.js:10 set @ index-DHkbfo9r.js:14 buildDashboard @ index-DHkbfo9r.js:174 await in buildDashboard created @ index-DHkbfo9r.js:174 Et @ index-DHkbfo9r.js:14 Xe @ index-DHkbfo9r.js:14 eo @ index-DHkbfo9r.js:14 Uf @ index-DHkbfo9r.js:14 xl @ index-DHkbfo9r.js:14 wu @ index-DHkbfo9r.js:14 _u @ index-DHkbfo9r.js:14 mn @ index-DHkbfo9r.js:14 Wt @ index-DHkbfo9r.js:14 m @ index-DHkbfo9r.js:14 gn @ index-DHkbfo9r.js:14 mount @ index-DHkbfo9r.js:14 Zu.t.mount @ index-DHkbfo9r.js:18 (anonymous) @ index-DHkbfo9r.js:174

Traefik log shows:
2024-08-25T09:07:39Z DBG github.com/traefik/traefik/v3/pkg/middlewares/auth/forward.go:164 > Error reading body http://forwardauth:4181. Cause: context deadline exceeded (Client.Timeout or context cancellation while reading body) middlewareName=traefik-forward-auth@docker middlewareType=ForwardAuth

@bastienwirtz
Copy link
Owner

Hello,

I'm not familiar with your setup, not sure what is happening, but the connectivity checker just perform a simple HEAD request, with no body to the index.html to make sure it's reachable. Something wrong is happening when handling this request on Traefik, the log seems to indicate it expect to have a body: Timeout or context cancellation while reading body ?
Could your auth proxy require some specific config to handle a head request?

@alkostation
Copy link
Author

Hello!
My auth proxy is traefik forward auth. As per this discussion : feature: forward body the traefik team decided to not handle the body. Unfortunately there i see two possible ways: 1. to use traefik plugin. 2. To ask you to consider changes of how the connectivity checker works.
How do you think is the better solution?
Regards!

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

No branches or pull requests

3 participants
@bastienwirtz @alkostation and others