deploy-archive: the erseco image's first-boot install never completes — the #1254 readiness gate correctly waits out 300 s twice and fails loud, so the red is the install itself, not the race #1255

Closed
opened 2026-09-06 05:26:47 +00:00 by matou-build-agent · 3 comments

The failure

Drive 20260906T044617Z (commit 4b88d9d6, the #1254 readiness gate), 6/7 green, red at deploy-archive after 1 119 287 ms:

masked_exit on gateway: … the remote switch died at exit 4 — Failed to start Enable the Local Contexts notices module + mint and store the admin API key (archive port, ADR 0062) at 05:13:40 and again at 05:19:41.

The #1254 gate is not the defect — it did its job. logs/guest-omeka-reconcile.log, with the podman event noise stripped, is one line of reconciler output:

omeka-reconcile: Omeka S first-boot install did not complete within 300s — last: Omeka S is not installed.

That is internal/clan/archive.go:503-506 firing the loud ceiling exactly as TestRenderArchive_ReconcilerReadinessGate (internal/clan/archive_test.go:302) pins it, and GOTCHAS #175 prescribes.

The evidence that the race is over and the install is the fault

  • logs/guest-omeka-reconcile.log: 97 container exec / 98 container exec_died events spanning 05:13:50 → 05:19:37 — the full 100-try poll of internal/clan/archive.go:492-502. Every one failed with an install-not-ready string; ready was never set.
  • One container id across the whole poll — fc244322a7b2 on every event. podman-omeka.service never restarted during the wait, so the image's entrypoint never re-attempted its install.
  • Two switches, ~12 minutes. The unit failed at 05:13:40 (first switch) and 05:19:41 (clean-retry); logs/guest-unit.log records Consumed 12.984s CPU time over 5min 58.061s wall clock for the last invocation. On the second switch the container had already been up ≥ 6 minutes before the poll started, and the CLI's answer was still Omeka S is not installed.
  • The answer never moved. GOTCHAS #175 records run 11 (20260906T035418Z) seeing the answer progress database.ini doesn't exist → Omeka S is not installed. within 4 s. Twelve minutes later, run 12 gets the same second answer. An install in flight changes its answer; this one is parked.
  • logs/guest-failed-units.log: only omeka-reconcile.service failed. podman-omeka.service and podman-omeka-db.service are both fine — the container process is up and omeka-s-cli execs cleanly. The app is running; Omeka is simply not installed in it.
  • logs/guest-archive-keystore.log: NOT-MINTED — consistent, the mint is downstream of the gate.

Do NOT raise the 300 s ceiling. That is the cheap wrong fix and this run's evidence rules it out: ~12 minutes across two switches, one never-restarted container, 98 identical answers.

Suspected layer

The erseco image's first-boot install, one layer below the #175 fault — the same class, applied to the container rather than the reconciler.

Leading hypothesis: internal/clan/archive.go:322 gives the Omeka container dependsOn = [ "omeka-db" ]. Like after/requires in #175, that is start-ordering, not readiness: podman-omeka-db.service reaching active proves the MariaDB process started, not that it accepts connections. On a cold boot MariaDB initialises its datadir on the freshly-tmpfiles-created /var/lib/archive/db (internal/clan/archive.go:353-357), which takes tens of seconds. If the erseco entrypoint runs its install once and does not retry, it ran against a DB refusing connections, failed, and the container has served an uninstalled Omeka ever since — matching the never-restarted container id and the frozen CLI answer. That the image got as far as writing database.ini (run 11) is consistent: database.ini is written from env before the installer runs.

Alternatives not yet excluded:

  • OMEKA_MODULES = "LocalContexts" (internal/clan/archive.go:315) — the image fetches the module on start; a failed or hanging fetch over the guest's SLIRP network could stop the entrypoint before the installer.
  • DB_HOST = "omeka-db" (internal/clan/archive.go:308) not resolving on the archive podman network (aardvark-dns), so every install attempt fails at connect.

The evidence gap that blocks the call

All three hypotheses are settled by one artifact that is not harvested: the Omeka container's own log. guestCollectors (app/tests/e2e/fixtures/evidence.ts:327-400) captures the reconciler journal (:384) and the keystore (:393) — added by #1243 — but nothing runs podman logs omeka or podman logs omeka-db. Every future red here is undiagnosable at the same cost.

Secondary gap: logs/clan-config-snapshot.log points at the host's state/clan-config (mtime 05:00, HEAD 468cb63, founding-ceremony commits only). It contains no machines/gateway/archive.nix and no vars/per-machine/gateway/archive-secrets, yet both containers came up with the generator's env file read — so the deploy ran from the guest's config repo, which nothing harvests. Worth confirming rather than assuming, but the snapshot as collected says nothing about the failing deploy.

Suggested work

  1. Harness (small, no product surface): add guest-omeka-app / guest-omeka-db collectors (podman logs --tail 200 omeka / omeka-db) to guestCollectors beside app/tests/e2e/fixtures/evidence.ts:384, and freeze the names in app/tests/e2e/fixtures/evidence.test.ts:233. Land this first — it is what names the cause.
  2. The install: gate the Omeka container's start on MariaDB readiness, not dependsOn — the healthWait precedent GOTCHAS #175 already names (internal/clan/idssidp.go:207-215, internal/clan/keri.go:339) — and/or make the first-boot install re-attempt. Keep the #1254 gate and its 300 s ceiling as-is; it is the check that surfaced this honestly.
  3. Extend GOTCHAS #175 (or add a sibling) once the container log names which of the three it is.

Why this was refused rather than healed

Refusal rule 3 (product-behaviour surface). The fix lands in renderOmekaContainers / renderArchiveStore (internal/clan/archive.go:295-358) — the NixOS module the switch applies. Changing how the archive port's containers start is what a deploy does, not harness or fixture plumbing; #1247 and #1254 both went through a ruling (ADR 0174) for the same reason.

Compounding: without podman logs omeka the cause is three live hypotheses, so any edit would be a guess dressed as a heal — and the two cheap guesses available in-lane (raise the ceiling; soften the gate) are precisely the ones this run's evidence forbids.

Advances #1235.

drive 20260906T044617Z red at deploy-archive: deploy failed (clean-retry): provision: deploy gateway: clan: deploy failed on 1 node(s): gateway: clan: masked_exit on gateway: clan reported success but the log shows a real failure: the remote swit
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260906T044617Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `20260906T044617Z` (commit `4b88d9d6`, the #1254 readiness gate), 6/7 green, red at `deploy-archive` after 1 119 287 ms: > `masked_exit on gateway: … the remote switch died at exit 4` — `Failed to start Enable the Local Contexts notices module + mint and store the admin API key (archive port, ADR 0062)` at `05:13:40` and again at `05:19:41`. **The #1254 gate is not the defect — it did its job.** `logs/guest-omeka-reconcile.log`, with the podman event noise stripped, is one line of reconciler output: > `omeka-reconcile: Omeka S first-boot install did not complete within 300s — last: Omeka S is not installed.` That is `internal/clan/archive.go:503-506` firing the loud ceiling exactly as `TestRenderArchive_ReconcilerReadinessGate` (`internal/clan/archive_test.go:302`) pins it, and GOTCHAS #175 prescribes. ## The evidence that the race is over and the install is the fault - `logs/guest-omeka-reconcile.log`: **97 `container exec` / 98 `container exec_died`** events spanning `05:13:50` → `05:19:37` — the full 100-try poll of `internal/clan/archive.go:492-502`. Every one failed with an install-not-ready string; `ready` was never set. - **One container id across the whole poll** — `fc244322a7b2` on every event. `podman-omeka.service` never restarted during the wait, so the image's entrypoint never re-attempted its install. - **Two switches, ~12 minutes.** The unit failed at `05:13:40` (first switch) and `05:19:41` (clean-retry); `logs/guest-unit.log` records `Consumed 12.984s CPU time over 5min 58.061s wall clock` for the last invocation. On the second switch the container had already been up ≥ 6 minutes *before* the poll started, and the CLI's answer was still `Omeka S is not installed.` - **The answer never moved.** GOTCHAS #175 records run 11 (`20260906T035418Z`) seeing the answer progress `database.ini doesn't exist` → `Omeka S is not installed.` within 4 s. Twelve minutes later, run 12 gets the *same* second answer. An install in flight changes its answer; this one is parked. - `logs/guest-failed-units.log`: **only `omeka-reconcile.service` failed.** `podman-omeka.service` and `podman-omeka-db.service` are both fine — the container process is up and `omeka-s-cli` execs cleanly. The app is running; Omeka is simply not installed in it. - `logs/guest-archive-keystore.log`: `NOT-MINTED` — consistent, the mint is downstream of the gate. **Do NOT raise the 300 s ceiling.** That is the cheap wrong fix and this run's evidence rules it out: ~12 minutes across two switches, one never-restarted container, 98 identical answers. ## Suspected layer The erseco image's first-boot install, one layer *below* the #175 fault — the same class, applied to the container rather than the reconciler. **Leading hypothesis:** `internal/clan/archive.go:322` gives the Omeka container `dependsOn = [ "omeka-db" ]`. Like `after`/`requires` in #175, that is **start-ordering, not readiness**: `podman-omeka-db.service` reaching `active` proves the MariaDB *process* started, not that it accepts connections. On a cold boot MariaDB initialises its datadir on the freshly-`tmpfiles`-created `/var/lib/archive/db` (`internal/clan/archive.go:353-357`), which takes tens of seconds. If the erseco entrypoint runs its install **once** and does not retry, it ran against a DB refusing connections, failed, and the container has served an uninstalled Omeka ever since — matching the never-restarted container id and the frozen CLI answer. That the image got as far as writing `database.ini` (run 11) is consistent: `database.ini` is written from env *before* the installer runs. **Alternatives not yet excluded:** - `OMEKA_MODULES = "LocalContexts"` (`internal/clan/archive.go:315`) — the image fetches the module on start; a failed or hanging fetch over the guest's SLIRP network could stop the entrypoint before the installer. - `DB_HOST = "omeka-db"` (`internal/clan/archive.go:308`) not resolving on the `archive` podman network (aardvark-dns), so every install attempt fails at connect. ## The evidence gap that blocks the call All three hypotheses are settled by one artifact that **is not harvested**: the Omeka container's own log. `guestCollectors` (`app/tests/e2e/fixtures/evidence.ts:327-400`) captures the reconciler journal (`:384`) and the keystore (`:393`) — added by #1243 — but nothing runs `podman logs omeka` or `podman logs omeka-db`. Every future red here is undiagnosable at the same cost. Secondary gap: `logs/clan-config-snapshot.log` points at the **host's** `state/clan-config` (mtime `05:00`, `HEAD 468cb63`, founding-ceremony commits only). It contains no `machines/gateway/archive.nix` and no `vars/per-machine/gateway/archive-secrets`, yet both containers came up with the generator's env file read — so the deploy ran from the **guest's** config repo, which nothing harvests. Worth confirming rather than assuming, but the snapshot as collected says nothing about the failing deploy. ## Suggested work 1. **Harness (small, no product surface):** add `guest-omeka-app` / `guest-omeka-db` collectors (`podman logs --tail 200 omeka` / `omeka-db`) to `guestCollectors` beside `app/tests/e2e/fixtures/evidence.ts:384`, and freeze the names in `app/tests/e2e/fixtures/evidence.test.ts:233`. Land this first — it is what names the cause. 2. **The install:** gate the Omeka container's start on MariaDB *readiness*, not `dependsOn` — the `healthWait` precedent GOTCHAS #175 already names (`internal/clan/idssidp.go:207-215`, `internal/clan/keri.go:339`) — and/or make the first-boot install re-attempt. Keep the #1254 gate and its 300 s ceiling as-is; it is the check that surfaced this honestly. 3. Extend GOTCHAS #175 (or add a sibling) once the container log names which of the three it is. ## Why this was refused rather than healed **Refusal rule 3 (product-behaviour surface).** The fix lands in `renderOmekaContainers` / `renderArchiveStore` (`internal/clan/archive.go:295-358`) — the NixOS module the switch applies. Changing how the archive port's containers start is what a deploy *does*, not harness or fixture plumbing; #1247 and #1254 both went through a ruling (ADR 0174) for the same reason. Compounding: without `podman logs omeka` the cause is three live hypotheses, so any edit would be a guess dressed as a heal — and the two cheap guesses available in-lane (raise the ceiling; soften the gate) are precisely the ones this run's evidence forbids. Advances #1235. drive `20260906T044617Z` red at `deploy-archive`: `deploy failed (clean-retry): provision: deploy gateway: clan: deploy failed on 1 node(s): gateway: clan: masked_exit on gateway: clan reported success but the log shows a real failure: the remote swit` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T044617Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 5401f695e3a1 -->
Owner

Ruling — REPRODUCED LOCALLY, root cause found, two-way door (ADR 0174), ready-for-agent

I ran the port's two containers on the laptop with docker, byte-identical images (erseco/alpine-omeka-s@sha256:fb2522…, mariadb:11.4) and byte-identical env to renderOmekaContainers (DB_HOST/DB_NAME/DB_USER/DB_PORT, OMEKA_ADMIN_EMAIL, OMEKA_SITE_TITLE, OMEKA_TIMEZONE, OMEKA_MODULES=LocalContexts, the env file with DB_PASSWORD/MARIADB_*/OMEKA_ADMIN_PASSWORD). Deterministic, three runs.

Root cause: the image's install is skipped silently because we never set OMEKA_ADMIN_NAME

The pinned digest's entrypoint (/docker-entrypoint-init.d/02-configure-omeka.sh, quoted from inside the container):

install_omeka() {
    [ -z "${OMEKA_ADMIN_EMAIL:-}" ] && return
    [ -z "${OMEKA_ADMIN_NAME:-}" ] && return      # <-- no default, silent return
    [ -z "${OMEKA_ADMIN_PASSWORD:-}" ] && return
    [ -z "${OMEKA_SITE_TITLE:-}" ] && return
    echo "Installing Omeka S via CLI..."
    local cmd="php install_cli.php --email=\"$OMEKA_ADMIN_EMAIL\" --name=\"$OMEKA_ADMIN_NAME\" --password=\"$OMEKA_ADMIN_PASSWORD\" --title=\"$OMEKA_SITE_TITLE\""
    ...
    eval "$cmd"
}

The upstream README says OMEKA_ADMIN_NAME "defaults to Site Administrator". The pinned bits do not. With our env the container's own stdout is:

Configuring /var/www/html/volume/config/database.ini from environment variables...
No themes to install. Skipping.
Processing LocalContexts...
Module 'LocalContexts' successfully downloaded.
Omeka S is not installed.
ERROR: Failed to install modules: LocalContexts
=== Omeka S Entrypoint completed ===
Starting runit...

No "Installing Omeka S via CLI…" line at all; nginx + fpm then start and serve an uninstalled Omeka forever. That is exactly the drive's picture: one container id, podman-omeka.service active, database.ini present, core:status = not_installed for 12 minutes, the #1254 gate correctly timing out. The healer's DB-readiness hypothesis is ruled out — the entrypoint nc-waits on omeka-db:3306 with no ceiling BEFORE writing database.ini, and run 11 saw database.ini appear.

With OMEKA_ADMIN_NAME set (fresh DB): Installing Omeka S via CLI... Installation completed. → Module 'LocalContexts' successfully installed. → core:status = installed, module:list shows LocalContexts active.

Surprise 2 (#1213's deferred mint stdout shape) — ALSO confirmed, and it is the NEXT red as written

omeka-s-cli user:create-api-key <email> <label> (v0.14.0) prints a text table, not identity/credential lines:

+----------------------------------+----------------------------------+---------------------+---------+-----------+-----------+
| Key Id                           | Key Credential                   | Key Label           | User Id | User Email| User Name |
+----------------------------------+----------------------------------+---------------------+---------+-----------+-----------+
| rkHLIDH2QxWgbkdr8yTs9DYNdvViEJCQ | <32-char credential>             | idss-archive-health | 1       | …         | …         |
+----------------------------------+…
API key 'idss-archive-health' successfully created for user '…'.   (rc 0)

renderOmekaReconcile's parse (sed -n 's/.*[Ii]dentity[^0-9A-Za-z]*\([0-9A-Za-z]\{8,\}\).*/\1/p' and the [Cc]redential twin) matches NOTHING in that output — the word "identity" never appears, and the "Key Credential" header is followed by "Key", not a token — so after the install fix the reconciler would fail loud with could not parse the minted API key. Proven shape that DOES work: --json:

{ "key_id": "…32 chars…", "key_credential": "…32 chars…", "key_label": "idss-archive-health", "user_id": 1, "user_email": "…", "user_name": "…" }

(key_id is what Omeka's API calls key_identity in its query params; key_credential is the secret.) Also proven: a second mint with the SAME label → API key with label '…' already exists rc 255 — the store-presence early exit is what keeps the reconciler idempotent, so keep it first (it is) and note the hazard: a lost store with a live key would need the label to move (mint with a timestamped label is the cheap escape; ruling = keep the fixed label, document the hazard in GOTCHAS, do not engineer around it now). module:enable on an already-enabled module → Module 'LocalContexts' is already enabled. rc 0 — the #1254 classifier's ready path is correct.

Fix (one ticket — same script, and the parse red is a CERTAIN next red I have the bytes for; this saves a full 65-min cycle)

  1. internal/clan/archive.go renderOmekaContainers: add OMEKA_ADMIN_NAME to the omeka container's environment (a constant, e.g. "Community archive admin" — no new config surface; comment that the pinned digest has NO default and returns silently without it). Pin it in the render test next to OMEKA_ADMIN_EMAIL (a render that drops it must red — this is a cannot-fail-class input: ask what the container does ON THE FAILURE PATH when a var is missing — it does nothing, silently).
  2. renderOmekaReconcile: mint with --json and parse key_id / key_credential from it (jq is fine — ${pkgs.jq}/bin/jq -r .key_id; or a sed pinned to the two JSON keys). Keep the loud could not parse exit. Store stays identity\ncredential (key_id then key_credential) so archivehealth.go reads unchanged — verify ArchiveAdmin.Key consumption expects identity=key_id as the key_identity query param. Update the verb allowlist test only if it asserts the exact argv (the verb user:create-api-key is unchanged; --json is a flag).
  3. Evidence gap (harness, app/tests/e2e/fixtures/evidence.ts): nothing captures the container's OWN stdout, which is where this defect announced itself in plain text (ERROR: Failed to install modules) while both the healer and I were blind. Add guest-omeka-container = journalctl -u podman-omeka -u podman-omeka-db --no-pager -n 300 (NixOS oci-containers log to the journal under the unit) next to guest-omeka-reconcile. Cheap, same file, same shape as its siblings.
  4. GOTCHAS: (a) the erseco pinned digest silently skips install when ANY of the four admin vars is empty — README defaults are not the digest's defaults; (b) user:create-api-key prints a table, use --json; (c) same-label re-mint is rc 255 — the store IS the idempotency key.

Hazard to note, not to build: Omeka's installer validates the admin email's TLD against a known list (.test/.local are rejected: 'example.test' is not a valid hostname for the email address), and on that failure the entrypoint EXITS (the unit would restart-loop). Our default admin@archive.<apex> under idss.nz passes; a non-public apex would not. The new collector (3) makes that failure visible if it ever happens.

Expected after landing: run 13 deploy-archive green (install completes in the image's first boot, ~30 s after the DB is ready; the #1254 gate rides that out), guest-archive-keystore.log = MINTED (two 32-char lines), then archive-healthy runs the real keep→serve→refuse loop for the first time.

## Ruling — REPRODUCED LOCALLY, root cause found, two-way door (ADR 0174), `ready-for-agent` I ran the port's two containers on the laptop with docker, byte-identical images (`erseco/alpine-omeka-s@sha256:fb2522…`, `mariadb:11.4`) and byte-identical env to `renderOmekaContainers` (DB_HOST/DB_NAME/DB_USER/DB_PORT, OMEKA_ADMIN_EMAIL, OMEKA_SITE_TITLE, OMEKA_TIMEZONE, OMEKA_MODULES=LocalContexts, the env file with DB_PASSWORD/MARIADB_*/OMEKA_ADMIN_PASSWORD). Deterministic, three runs. ### Root cause: the image's install is skipped silently because we never set `OMEKA_ADMIN_NAME` The pinned digest's entrypoint (`/docker-entrypoint-init.d/02-configure-omeka.sh`, quoted from inside the container): ```sh install_omeka() { [ -z "${OMEKA_ADMIN_EMAIL:-}" ] && return [ -z "${OMEKA_ADMIN_NAME:-}" ] && return # <-- no default, silent return [ -z "${OMEKA_ADMIN_PASSWORD:-}" ] && return [ -z "${OMEKA_SITE_TITLE:-}" ] && return echo "Installing Omeka S via CLI..." local cmd="php install_cli.php --email=\"$OMEKA_ADMIN_EMAIL\" --name=\"$OMEKA_ADMIN_NAME\" --password=\"$OMEKA_ADMIN_PASSWORD\" --title=\"$OMEKA_SITE_TITLE\"" ... eval "$cmd" } ``` The upstream README says `OMEKA_ADMIN_NAME` "defaults to Site Administrator". **The pinned bits do not.** With our env the container's own stdout is: ``` Configuring /var/www/html/volume/config/database.ini from environment variables... No themes to install. Skipping. Processing LocalContexts... Module 'LocalContexts' successfully downloaded. Omeka S is not installed. ERROR: Failed to install modules: LocalContexts === Omeka S Entrypoint completed === Starting runit... ``` No "Installing Omeka S via CLI…" line at all; nginx + fpm then start and serve an uninstalled Omeka forever. That is exactly the drive's picture: one container id, `podman-omeka.service` active, `database.ini` present, `core:status` = `not_installed` for 12 minutes, the #1254 gate correctly timing out. The healer's DB-readiness hypothesis is ruled out — the entrypoint `nc`-waits on `omeka-db:3306` with no ceiling BEFORE writing `database.ini`, and run 11 saw `database.ini` appear. With `OMEKA_ADMIN_NAME` set (fresh DB): `Installing Omeka S via CLI... Installation completed.` → `Module 'LocalContexts' successfully installed.` → `core:status` = `installed`, `module:list` shows LocalContexts `active`. ### Surprise 2 (#1213's deferred mint stdout shape) — ALSO confirmed, and it is the NEXT red as written `omeka-s-cli user:create-api-key <email> <label>` (v0.14.0) prints a **text table**, not identity/credential lines: ``` +----------------------------------+----------------------------------+---------------------+---------+-----------+-----------+ | Key Id | Key Credential | Key Label | User Id | User Email| User Name | +----------------------------------+----------------------------------+---------------------+---------+-----------+-----------+ | rkHLIDH2QxWgbkdr8yTs9DYNdvViEJCQ | <32-char credential> | idss-archive-health | 1 | … | … | +----------------------------------+… API key 'idss-archive-health' successfully created for user '…'. (rc 0) ``` `renderOmekaReconcile`'s parse (`sed -n 's/.*[Ii]dentity[^0-9A-Za-z]*\([0-9A-Za-z]\{8,\}\).*/\1/p'` and the `[Cc]redential` twin) matches NOTHING in that output — the word "identity" never appears, and the "Key Credential" header is followed by "Key", not a token — so after the install fix the reconciler would fail loud with `could not parse the minted API key`. Proven shape that DOES work: `--json`: ```json { "key_id": "…32 chars…", "key_credential": "…32 chars…", "key_label": "idss-archive-health", "user_id": 1, "user_email": "…", "user_name": "…" } ``` (`key_id` is what Omeka's API calls `key_identity` in its query params; `key_credential` is the secret.) Also proven: a second mint with the SAME label → `API key with label '…' already exists` **rc 255** — the store-presence early exit is what keeps the reconciler idempotent, so keep it first (it is) and note the hazard: a lost store with a live key would need the label to move (mint with a timestamped label is the cheap escape; ruling = keep the fixed label, document the hazard in GOTCHAS, do not engineer around it now). `module:enable` on an already-enabled module → `Module 'LocalContexts' is already enabled.` **rc 0** — the #1254 classifier's ready path is correct. ### Fix (one ticket — same script, and the parse red is a CERTAIN next red I have the bytes for; this saves a full 65-min cycle) 1. `internal/clan/archive.go` `renderOmekaContainers`: add `OMEKA_ADMIN_NAME` to the omeka container's `environment` (a constant, e.g. `"Community archive admin"` — no new config surface; comment that the pinned digest has NO default and returns silently without it). Pin it in the render test next to `OMEKA_ADMIN_EMAIL` (a render that drops it must red — this is a cannot-fail-class input: ask what the container does ON THE FAILURE PATH when a var is missing — it does nothing, silently). 2. `renderOmekaReconcile`: mint with `--json` and parse `key_id` / `key_credential` from it (jq is fine — `${pkgs.jq}/bin/jq -r .key_id`; or a sed pinned to the two JSON keys). Keep the loud `could not parse` exit. Store stays `identity\ncredential` (key_id then key_credential) so `archivehealth.go` reads unchanged — verify `ArchiveAdmin.Key` consumption expects identity=key_id as the `key_identity` query param. Update the verb allowlist test only if it asserts the exact argv (the verb `user:create-api-key` is unchanged; `--json` is a flag). 3. **Evidence gap (harness, `app/tests/e2e/fixtures/evidence.ts`)**: nothing captures the container's OWN stdout, which is where this defect announced itself in plain text (`ERROR: Failed to install modules`) while both the healer and I were blind. Add `guest-omeka-container` = `journalctl -u podman-omeka -u podman-omeka-db --no-pager -n 300` (NixOS oci-containers log to the journal under the unit) next to `guest-omeka-reconcile`. Cheap, same file, same shape as its siblings. 4. GOTCHAS: (a) the erseco pinned digest silently skips install when ANY of the four admin vars is empty — README defaults are not the digest's defaults; (b) `user:create-api-key` prints a table, use `--json`; (c) same-label re-mint is rc 255 — the store IS the idempotency key. Hazard to note, not to build: Omeka's installer validates the admin email's TLD against a known list (`.test`/`.local` are rejected: `'example.test' is not a valid hostname for the email address`), and on that failure the entrypoint EXITS (the unit would restart-loop). Our default `admin@archive.<apex>` under `idss.nz` passes; a non-public apex would not. The new collector (3) makes that failure visible if it ever happens. Expected after landing: run 13 deploy-archive green (install completes in the image's first boot, ~30 s after the DB is ready; the #1254 gate rides that out), `guest-archive-keystore.log` = MINTED (two 32-char lines), then `archive-healthy` runs the real keep→serve→refuse loop for the first time.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=18780
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=18780 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1255 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1255,
  "status": "success",
  "commits": [
    "42980057"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/evidence.test.ts",
    "app/tests/e2e/fixtures/evidence.ts",
    "docs/GOTCHAS.md",
    "internal/clan/archive.go",
    "internal/clan/archive_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/evidence.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec eslint tests/e2e/fixtures/evidence.ts tests/e2e/fixtures/evidence.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "OMEKA_ADMIN_NAME set so the erseco first-boot install completes (not silently skipped)": "internal/clan/archive.go renderOmekaContainers emits OMEKA_ADMIN_NAME = \"Community archive admin\" (const omekaAdminName); pinned red-first by TestRenderArchive_OmekaAdminNameIsSet",
    "reconciler mints with --json and parses key_id/key_credential (table default is unparseable)": "internal/clan/archive.go renderOmekaReconcile: user:create-api-key ... --json + ${pkgs.jq} .key_id/.key_credential; pinned red-first by TestRenderArchive_ReconcilerMintsWithJSON",
    "container-log evidence collector added so the install cause is harvestable": "app/tests/e2e/fixtures/evidence.ts guest-omeka-container (journalctl -u podman-omeka -u podman-omeka-db); frozen in evidence.test.ts contract",
    "GOTCHAS documents the silent-skip + table-vs-json hazards": "docs/GOTCHAS.md #176",
    "the #1254 readiness gate and its 300s ceiling kept as-is": "internal/clan/archive.go renderOmekaReconcile unchanged gate; TestRenderArchive_ReconcilerReadinessGate still green"
  },
  "summary": "Set OMEKA_ADMIN_NAME (the pinned erseco digest silently skips install without it), mint the API key with --json (the default is an unparseable table), and add a guest-omeka-container evidence collector, so deploy-archive's install completes and its key is parseable.",
  "blockers": []
}
**close-report** for #1255 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1255, "status": "success", "commits": [ "42980057" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/evidence.test.ts", "app/tests/e2e/fixtures/evidence.ts", "docs/GOTCHAS.md", "internal/clan/archive.go", "internal/clan/archive_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/clan/", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/evidence.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm exec eslint tests/e2e/fixtures/evidence.ts tests/e2e/fixtures/evidence.test.ts", "exit_code": 0 } ], "criteria": { "OMEKA_ADMIN_NAME set so the erseco first-boot install completes (not silently skipped)": "internal/clan/archive.go renderOmekaContainers emits OMEKA_ADMIN_NAME = \"Community archive admin\" (const omekaAdminName); pinned red-first by TestRenderArchive_OmekaAdminNameIsSet", "reconciler mints with --json and parses key_id/key_credential (table default is unparseable)": "internal/clan/archive.go renderOmekaReconcile: user:create-api-key ... --json + ${pkgs.jq} .key_id/.key_credential; pinned red-first by TestRenderArchive_ReconcilerMintsWithJSON", "container-log evidence collector added so the install cause is harvestable": "app/tests/e2e/fixtures/evidence.ts guest-omeka-container (journalctl -u podman-omeka -u podman-omeka-db); frozen in evidence.test.ts contract", "GOTCHAS documents the silent-skip + table-vs-json hazards": "docs/GOTCHAS.md #176", "the #1254 readiness gate and its 300s ceiling kept as-is": "internal/clan/archive.go renderOmekaReconcile unchanged gate; TestRenderArchive_ReconcilerReadinessGate still green" }, "summary": "Set OMEKA_ADMIN_NAME (the pinned erseco digest silently skips install without it), mint the API key with --json (the default is an unparseable table), and add a guest-omeka-container evidence collector, so deploy-archive's install completes and its key is parseable.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1255
No description provided.