fix: Kuma has no /start or /fail path — push ?status=up|down instead

A request to /api/push/<token>/start or /fail answers 200 but records no
heartbeat, so a failed run left the push monitor green until its 24h
interval expired. Verified against Uptime Kuma 1.23.17: only the query
string form writes a heartbeat.
This commit is contained in:
trex Bot committed 2026-11-24 15:05:03 -06:00
1 parent dc6a2f4794
commit 313db934e4
2 files changed
+23 -14

No files matched your search

+5 -2
View File
@@ -15,7 +15,8 @@ pre-upgrade snapshots. It is off by default and needs `/var/run/docker.sock`.
## What a run does
1. Takes an exclusive lock (a second run exits immediately).
2. Pings the Uptime Kuma push monitor with `/start`.
2. Pings the Uptime Kuma push monitor with `?status=up` so the monitor stays
green while the run is in progress.
3. Dumps `ccnet_db`, `seafile_db` and `seahub_db` into one consistent
`--databases` dump under `/config/db/<timestamp>/`, reading the credentials
from the Seafile `conf/.env`.
@@ -27,7 +28,9 @@ pre-upgrade snapshots. It is off by default and needs `/var/run/docker.sock`.
7. Deletes dump directories older than `DB_DUMP_KEEP`.
8. Pings Kuma with the result and sends an Apprise notification.
Any failure exits non-zero, pings `/fail` and sends a failure notification.
Any failure exits non-zero, pushes `?status=down` to Kuma and sends a failure
notification. Kuma has no `/start` or `/fail` path — those forms answer 200 but
record nothing, which is why the query string is the only form used here.
## Environment