deploy-whakapapa: the #1311 readiness gate never gated (curl 000 + echo 000 = "000000" ≠ 000) — the owner user-add raced the entrypoint alembic migration and wedged Gramps Web on "table oidc_accounts already exists" (211 restarts); and the celery w… #1313
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#1313
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?
Drive
20260908T035208Z(drive 8, #1277, ona0a1e58c): 16/17 green — archive + document-archive cycles proven again —deploy-whakapapared at the 75 min ceiling (stillrunningat 04:47Z; the switch never returned).Evidence (read live off the run-19 guest)
grampsweb-admin.serviceFAILED at 04:21:19:grampsweb-admin: owner owner created but /api/token/ answers 000000 — the bootstrap did not take. Note the six zeros.podman-grampsweb.servicecrash-looping — 211 restarts by 04:47 — every start dying in the image entrypoint'spython3 -m alembic upgrade head:sqlite3.OperationalError: table oidc_accounts already existsona8e57fe0d82e -> 2082445b0769.podman-grampsweb-celeryran the SAME migration chain from empty at 04:21:18 (its journal shows every step) and hit the samealready existson the last one; it isactive (running)now.whakapapa-brand.serviceactivatingforever (its token loop), Caddydial 127.0.0.1:8085 refusedevery 5 min, no failed units listed — the switch (clan-switch-gateway-*) still running.Root cause — two faults, both in
3a2645a2(#1311, mine)probe()wascurl -s -o /dev/null -w '%{http_code}' … || echo 000. On a refused connection curl PRINTS000and exits non-zero, so the fallback appended a second000→"000000", which!= 000→ the gate passed on its first tick, while the containers were still in their entrypoint migration. The user-add'screate_app()then created the users-db tables (incl.oidc_accounts) from the models, and the in-flight alembic run collided with it — with SQLite's non-transactional DDL the table stays andalembic_versionstays behind it, so EVERY restart replays the same failing step. A permanent wedge from a one-second race./docker-entrypoint.sh(which runsalembic upgrade headregardless ofcmd) against the shared/app/users/users.sqlite. Upstream's compose has the same shape and survives by luck; with fault 1 removed it is still a first-boot race between the API and the worker (dependsOnorders the UNIT —Type=notify,--sdnotify=conmon→ active when conmon starts the container, not when gunicorn serves; pinned nixpkgsoci-containers.nix@173d0ad7 lines 388–548).Fix (proposed ruling under ADR 0174 — two-way, veto anytime)
probe()captures curl's output and normalises it to exactly three digits (case "$code" in [0-9][0-9][0-9]) … ;; *) echo 000), no echo-on-failure fallback. Pin: the normaliser renders; the fallback never does.grampsweb-celerygetsdependsOn = [ "grampsweb-redis" "grampsweb" ]and an appendedExecStartPre(lib.mkAfter, after the module's own pre-start) that waits up to 300 s forGET /api/metadata/on the serve port to answer any HTTP code — i.e. the API container's entrypoint has finished the migration and gunicorn serves — and exits 1 loudly otherwise (Restart=on-failureretries). One migrator at first boot, deterministic order.Also noted, not fixed here: run 18 (
20260908T013813Z) hung 75 min on the same leg for a different reason — the drive host's Wi-Fi uplink dropped mid image pull and the container unit hasTimeoutStartSec = 0(the module's own default), so a silently stalled pull holds a deploy open until the harness ceiling.Landed
729d81be(rebased on the #1312 lint fixa0a1e58c): probe normalised to three digits (pin forbids the echo-on-failure fallback);grampsweb-celerydependsOnthe API container + appendedExecStartPrewait-for-serve (300 s, loud); GOTCHAS #188; STATUS lead.go test ./internal/clan/green, rendered module parses (nix-instantiate --parse). Ruled two-way under ADR 0174 by the babysitting agent — veto anytime. Run 19 is still burning its ceiling on the wedged guest (ends ~05:36Z); the next fire on729d81beis the proof.whakapapa-wears-kitred on first contact: the brand PUT answered 200 with the applied keys, but the Gramps Web door serves the DEFAULT title *and* default palette — the frontend's read offrontend.*was never verified (the "deferred clan-lab driv… #1317