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

Unable to monitor Authentik healthcheck - Failing: unexpected end of file #4736

Open
2 tasks done
csmith1210 opened this issue May 3, 2024 · 7 comments
Open
2 tasks done
Labels
area:monitor Everything related to monitors help

Comments

@csmith1210
Copy link

csmith1210 commented May 3, 2024

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

Hi there, with a recent update, my check for my authentik instance has been failing with an unexpected end of file. However, going into the docker curl -I https://my.domain/-/health/ready/ returns the correct HTTP 204 code.

Not sure if this is a bug or if I need to change the way the monitor is set up.

📝 Error Message(s) or Log

[MONITOR] WARN: Monitor #16 'Authentik Backend': Failing: unexpected end of file | Interval: 60 seconds | Type: http | Down Count: 0 | Resend Interval: 0

root@aada52cf0ce2:/app# curl -I https://my.domain/-/health/live/
HTTP/2 204
date: Fri, 03 May 2024 20:15:45 GMT
content-encoding: gzip
referrer-policy: same-origin
strict-transport-security: max-age=15552000; includeSubDomains; preload
vary: Accept-Encoding
x-content-type-options: nosniff
x-forwarded-proto: https
x-robots-tag: none,noarchive,nosnippet,notranslate,noimageindex
x-xss-protection: 1; mode=block
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"cloudflare_url"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: ***
alt-svc: h3=":443"; ma=86400

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

Windows 11 / macOS

🌐 Browser

Firefox

🖥️ Deployment Environment

  • Runtime: Docker version 26.1.1, build 4cf5afa
  • Database: sqlite
  • Filesystem used to store the database on: btrfs on SSD
  • number of monitors: 21
@csmith1210 csmith1210 added the help label May 3, 2024
@CommanderStorm
Copy link
Collaborator

CommanderStorm commented May 3, 2024

HTTP/2 204 = 204 No Content.

What monitor are you using?

What service are you using or can you build a testcase to reproduce this?
Might be a bug on our end, hard to tell

@csmith1210
Copy link
Author

csmith1210 commented May 4, 2024

I’m using an HTTP(s) monitor with method set to HEAD and accepted status codes set to 200-299.

I can try to spin up a new instance of Authentik to see if it’s something with my current set up.

Is there anyway to have uptime-kuma spit out more info about the request in the logs? I have DEBUG=true set but it doesn’t seem to add much more info if any to the logs.

@CommanderStorm CommanderStorm added the area:monitor Everything related to monitors label May 8, 2024
@codesterd
Copy link

I’m using an HTTP(s) monitor with method set to HEAD and accepted status codes set to 200-299.

I can try to spin up a new instance of Authentik to see if it’s something with my current set up.

Is there anyway to have uptime-kuma spit out more info about the request in the logs? I have DEBUG=true set but it doesn’t seem to add much more info if any to the logs.

I had the exact same issue. Dropped back down to 1.23.11 and I was able to monitor Authentik again without that error. Version 1.23.12 was when it started showing the end of file error with Authentik.

@csmith1210
Copy link
Author

I had the exact same issue. Dropped back down to 1.23.11 and I was able to monitor Authentik again without that error. Version 1.23.12 was when it started showing the end of file error with Authentik.

Nice find! Yes I can confirm it works on 1.23.11 and fails on 1.23.12.

@Rudedog9d
Copy link

+1 to this happening on authentik, and 1.23.11 being a valid workaround. Thanks! 😄

I imagine this will be online for a bit if it's helpful for testing: https://auth.ctf.malteksolutions.com/-/health/ready/

@mcchots
Copy link

mcchots commented May 21, 2024

I was getting this error as well when I had the method set to GET, but got it working on 1.23.13 by changing to HEAD.

@csmith1210
Copy link
Author

I was getting this error as well when I had the method set to GET, but got it working on 1.23.13 by changing to HEAD.

Unfortunately this does not resolve the issue for me, I still get the end of file error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:monitor Everything related to monitors help
Projects
None yet
Development

No branches or pull requests

5 participants