deploy-archive: the omeka reconciler's fail-open retry loops don't know "Failed to elevate privileges" — #1274 fixed the wedged install and moved the pre-completion transient's words, so the mint broke out after one try and killed the switch at exit 4 #1358
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1358
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?
The failure
Drive
20260909T201808Z(commit3f261165, sig5401f695e3a1) redded atdeploy-archive, 5/6 legs green —masked_exit, the remote switch dead at exit 4, withomeka-reconcile.servicethe only genuinely-failed unit:That message is self-refuting.
logs/guest-omeka-reconcile.loghas the unitStartingat 20:42:10 andFailedat 20:42:15 — 4.884s wall clock, 356ms CPU, exactly threepodman execs, not onesleep 3. It claims a 300s ceiling it never approached.The evidence
logs/guest-omeka-container.logtimes the install window to the second:The mint fired at 20:42:15 — one second early — into an installer that had created the admin user row but not yet its role.
omeka-s-clicalls that stateFailed to elevate privileges., notUser not found.Both of
renderOmekaReconcile's retry loops are fail-OPEN by design (internal/clan/archive.go): eachsleep 3s on a listed keep-waiting string andbreaks on anything else.internal/clan/archive.go:580— the module:enable readiness poll's arm:*"not installed"*|*"doesn't exist or not readable"*|*"Failed to initialize"*|*"no container with name or ID"*|*"no such container"*internal/clan/archive.go:628— the mint's own #1277 drive-8 gate (internal/clan/archive.go:600-608documents it):*"User not found"*|*"no container with name or ID"*|*"no such container"*elevate privilegeswas in neither list. The poll's*)arm promoted it to ready and broke out; the mint's*)arm broke out after one attempt;set -etook the unit, and with it the switch and the drive.The proof it was a transient, not a failure: the drive's clean-retry switch ran the same unit at 20:43:20 to
Finished(logs/guest-omeka-reconcile.log), andlogs/guest-archive-keystore.logreadsMINTED size=66 lines=2.The second journal line in the red —
Failed to start Apply the community brand kit (name only)— is downstream, and behaved correctly:archive-brandstarted 20:42:15, waited its own 63s for the key, refused to fake an apply (the minted admin API key never landed in … — leaving the site title unbranded rather than claiming a phantom apply), then on the retry switch PATCHedo:title: "E2E Drive"andFinishedat 20:43:24. One root cause, two symptoms.The suspected layer
The rendered NixOS reconciler in
internal/clan/archive.go— specifically the classification of the CLI's transient vocabulary, not the ceilings, not the mint, not the store handshake.The deeper shape: GOTCHAS #176 / #1274 fixed the private path's genuinely wedged install (
.internalfailing Omeka's admin-email validator, no admin user ever created). Under that wedgeFailed to elevate privilegesmeant permanently broken, so treating it as fatal was right. Making the install complete turned the same string into the name of a ~4-second startup window — and the classifier was never re-derived. Recorded as GOTCHAS #215.The fix
elevate privilegesjoinsUser not foundand podman's rc-125no container(GOTCHAS #177) in both keep-waiting arms. Nothing else moves — no ceiling, no verb, no ordering, no store shape.Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)
Two-way door. The whole behavioural change is two
casearms each gaining one extra*"elevate privileges"*glob — a strict superset of keep-waiting strings. Reverting isgit revert 52fd25b7, with no state to unwind: the reconciler is idempotent by its store-presence early exit, so a revert changes only how the next switch classifies one CLI string. No schema, no secrets, no migration, no infra state.Proven by a test I wrote here.
TestRenderArchive_ElevatePrivilegesIsInstallNotReady(internal/clan/archive_test.go) asserts the pattern appears in the readiness poll's arm (between the renderedmodule:enable "$module"and the mint) and again in the mint's arm after it. It FAILS on HEAD — the pattern is in neither — and passes after. It also re-pins that the loud 300s ceiling message is still rendered, so the fix cannot have been made by softening the failure.A mechanical repair, not a design decision. The reconciler already meant to ride out install-not-ready — that intent is written out at
internal/clan/archive.go:559-569and:600-608, and it already retries two other strings for exactly this reason. It simply did not know the third string the CLI uses. This is a missing readiness classification — the race category rule 3 names explicitly — and it changes nothing about what a community sees or what the deploy does: same key, same store shape (identity line 1, credential line 2), samePATCH o:titledownstream, same admin identity, same ports, same messages at every trust moment.It cannot hide a real failure. On the genuinely wedged path (#1274's shape) the string never clears, so the loop now spins to its existing 100×3s ceiling and fires the same loud
exit 1naming the CLI's last words — ADR 0100 holds. The change converts a false red into a bounded wait; it can never convert a true red into a green. No assertion, expectation, test or leg was touched (0 removed lines in any test file); all 6 removed lines in the diff are comment-render lines plus the twocasearms re-rendered with the added pattern. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.drive
20260909T201808Zred atdeploy-archive(sig 5401f695e3a1) — self-fixed on the fast lane, commitbdef7f92a5ca7268385d0b36135a358b851c486c; checks: targeted (red-first):go test ./internal/clan/ -run TestRenderArchive_ElevatePrivilegesIsInstallNotReady→ FAIL before the fix (the pattern is in neither the readiness poll's nor the mint's keep-waiting arm);go test ./internal/clan/ -run TestRenderArchive→ ok 0.008s after, all pre-existing TestRenderArchive_* tests (including_MintRidesItsOwnReadinessGate,_ReadinessPollTreatsMissingContainerAsNotReady,_PrivatePathAdminEmailIsValidatorSafe) unchanged and passing. package:go test ./internal/clan/→ ok 18.580s;go vet ./internal/clan/→ clean;gofmt -lon both changed .go files → clean. whole tree:go build ./...→ clean;go test ./...→ every package ok, zero failures. commit shape: 3 files, 86 insertions / 6 deletions, of which 53/6 are non-test (internal/clan/archive.go 15/6, docs/GOTCHAS.md 38/0 — archive_test.go is +33/-0 and a test file); one commit 52fd25b7, not pushed, working tree clean. rails self-check: all 6 removed lines are in archive.go — four comment-renderb.WriteString("# …")lines and the twocasearm lines, each re-added with one extra glob; ZERO removed lines in any test file; none of the 6 match expect(/assert/require./t.Fatal/t.Error/toBe/toEqual/func Test/it(/test(/describe(/.skip; zero added .skip/.only/t.Skip; 3 files and 53 non-test changed lines, under the cap; no.sandcastle/rehearsal-*or.forgejo/workflows/path touched.. evidence:/home/swarm/swarm/Matou/idss/test-results/private-path/20260909T201808Zon matou-workstation.close-report for #1358 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope