mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #1181] DB Container fails: received fast shutdown request #809
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#809
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @ppittle on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1181
Healthchecks will run for days and then the database container will exit with this log message:
And once the DB goes down, healthchecks web app also goes down.
AFAIK there wasn't any corresponding user or automated action that would cause db to terminate.
Any steps to prevent this from happening?
Full log context
@cuu508 commented on GitHub (Jun 18, 2025):
Healthchecks does not send any administrator commands to Postgres. I think this is an issue with either the database container, or the container engine running it.
A quick search turned up a similar report here – are you by any chance using podman?
@ppittle commented on GitHub (Jun 19, 2025):
@cuu508 - thanks for looking into this with me!
Unfortunately no podman. I have portainer running, but not rootless (afaik) - and I am just using it for monitoring.
I spun everything up with a docker compose file:
(I've removed some environment variables for brevity/privacy)
Any chance there could be an issue with this health check:
@cuu508 commented on GitHub (Jun 20, 2025):
The
while !</dev/tcp/healthchecks-db/5432; do sleep 1; done;loop waits for postgres to start listening on port 5432, and only then starts uwsgi. It only runs on container startup, not continuously.You mentioned the system runs for a few days, so I don't think this plays a role.
You could check the healthchecks containers logs around the time when the database shuts down to see if there's anything out of ordinary there – does the healthchecks container restart as well, are there any HTTP requests with a matching timestamps.
Perhaps there's something on your system that auto-updates containers (like watchtower, or perhaps portainer itself can do this?)?
@cuu508 commented on GitHub (Jul 2, 2025):
No reply, closing.