provision: service health check is one-shot and races co-host warm-up — Files stands FAILED seconds before nginx/fpm come ready (files-healthy red, drive 234251Z) #552
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#552
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?
What breaks
Drive
20260814T234251Z— the FIRST drive past the finish leg since the #547 cache-race fix — red atfiles-healthy: the S5 row standsFiles & documents FAILED — Nextcloud reports it is not ready … status: could not assert anything about this response (empty or below the body-size floor).Evidence it's a warm-up race, not a broken deploy
Droplet journal from the same run (the #536 harvest): nginx active 23:59:49, php-fpm
ready to handle connections00:00:01, brand applied 00:00:05 — the whole Files stack came up seconds after the check gave up (drive died ~23:59).systemctl --failedon the droplet: EMPTY. The product UI itself offersRetry Files & documents(RetryService, DDR 0157), which would have cleared it — the check is right that it saw nothing, and wrong to stop looking after one shot.Cause
The app-side health check (
internal/provision/health.go, nextcloudHealthCheck → GETfiles.<apex>/status.php) runs ONCE at deploy completion. A fresh co-host deploy always has a warm-up tail (php first-request compile, fpm pool start), so the one-shot check false-FAILs the row for real operators too — the e2e leg (expectFilesHealthy, provision.ts:352) just reads the row honestly.Fix directed
Bounded re-probe in the app's service health check, ADR 0161 family / the door-probe shape: poll
status.phpuntil it asserts healthy or a warm-up budget (~3 min) expires; only then stand the row FAILED with Retry. Applies to the shared service-health path (all co-host services, not just files — same sweep #527/#528 mapped). Seam test: a check that fails N times then succeeds within budget must yield a healthy row; one that never succeeds must stand FAILED with the existing honest Detail (#536).NOT the fix: pressing Retry from the e2e leg (masks the product race), or lengthening the leg timeout (the row has already stood FAILED — waiting longer changes nothing).
Context
Frontier tooth of #492 (phase-2 standing drive). Prior files-healthy reds had REAL causes (#527 exempt-path, #529 port collision, #536 silence — all landed); this one is the first where the droplet proves the service healthy seconds later. 171114Z's "layer-3 silence" may have been this same race before the #536 harvest existed to show it.
swarm-claim host=matou-dev-server-01 run=6479
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=elitebook-distributed-server-03 run=6479
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #552 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope