Unable to monitor Authentik healthcheck - Failing: unexpected end of file
csmith1210 opened this issue ยท comments
โ ๏ธ Please verify that this question has NOT been raised before.
- I checked and didn't find similar issue
๐ก๏ธ Security Policy
- I agree to have read this project 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
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
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.
Nice find! Yes I can confirm it works on 1.23.11 and fails on 1.23.12.
+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.malteksolutions.com/-/health/ready/
edit: server moved
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
.
I was getting this error as well when I had the method set to
GET
, but got it working on1.23.13
by changing toHEAD
.
Unfortunately this does not resolve the issue for me, I still get the end of file error.
I just updated to 1.23.13 and have the same problem. Changing the method to HEAD did not solve it.
Chiming in to say I'm also seeing this on 1.23.13, and using HEAD also did not help.
Also seeing this same problem from UptimeKuma docker on a ARM64 host. Explicitly set to monitor HTTP 204.
Interesting that when querying the LAN IP directly the monitor works correctly but when using then FQDN it gives the same 'unexpected end of file' error.
Also saw this issue start with louislam/uptime-kuma:1.23.13 (I jumped 2 versions).