mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 09:32:36 -05:00
[GH-ISSUE #2976] Pocketbase health check breaks website #15172
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dennis4720 on GitHub (May 3, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2976
Describe the Bug
After making https://github.com/orgs/fosrl/discussions/2975 , I wanted to enable health check for all my websites. I found that enabling this for a Pocketbase instance, which gives 404 on / , breaks the application. It will then return unhealthy and the environment returns no available server.
Environment
To Reproduce
Enable health check on pocketbase applicaiton.
Expected Behavior
Not to break the website because / returns 404. That's the app's intended behavior.
@AstralDestiny commented on GitHub (May 3, 2026):
Break how? Like kills the backend application or pangolin breaks how does it break?
If / returns 404 then put the healthcheck path to a part of the backend that doesn't return a 404 but a 200.
@Dennis4720 commented on GitHub (May 3, 2026):
Once health monitor is enabled on the resource, and / returns 404, the whole application returns :
No matter the path. But indeed adjusting the path to /_ (Pocketbase's admin URL) fixes the problem, the health status is green and the environment works. Is this intended?
@AstralDestiny commented on GitHub (May 3, 2026):
Yeah if the healthcheck fails then it's not provided to traefik at all just like how it would be if it was given a config from the docker socket or a kv provider. No available server is from traefik saying "All loadbalancer ip's behind me are unhealthy / not online." Though there should be a /api/health on pocketbase
https://doc.traefik.io/traefik/reference/routing-configuration/http/load-balancing/service/#health-check if you want to read more on why traefik does this.
https://pocketbase.io/docs/api-health/#health-check should point your healthcheck there honestly.
@AstralDestiny commented on GitHub (May 3, 2026):
Anyways always will say if you're getting unhealthy try to visit the service you just did a healthcheck for, If you get redirected you'll likely hit a unhealthy or if you get unrelated garbage then go inspect if it has a healthcheck endpoint or whatnot though if can't find feel free to ask.
@Dennis4720 commented on GitHub (May 3, 2026):
Ohh duhh - that makes sense! Thanks so much for clarifying. That helps.
Cheers!