REPORT: R-1007 — the repair after an unclean boot, proven live on demo-hp
gates / gates (push) Successful in 4s

Claude-Session: https://claude.ai/code/session_012qRErfCoiTkvDK9N5XHbzb
This commit is contained in:
admin committed 2026-10-14 17:52:29 +02:00
1 parent 6a1bb046fa
commit 74c8e84232
1 file changed
+8 -47
+8 -47
View File
@@ -1,48 +1,9 @@
# REPORT — 2026-10-12 (night): the Usenet pair published, nine defects fixed on the way
# REPORT — Immich `after_unclean_boot` (R-1007, 2026-10-14)
The operator asked for SABnzbd and NZBGet (R-988) and answered the one question that mattered — "do I
need a Usenet account for testing?" — by letting the work go ahead without one. Both templates and
both records go out in ONE commit.
- **Templates:** `templates/sabnzbd/` (`lscr.io/linuxserver/sabnzbd:version-5.1.3`, 96M / 1024M,
`usenet.<domain>`) and `templates/nzbget/` (`nzbgetcom/nzbget:v26.3` — the project's own image —
64M / 512M, `nzbget.<domain>`). SABnzbd is the second third-party-published image in this catalog
after Transmission; the project publishes none of its own, and both compose headers say so.
- **Records:** `onboarding/sabnzbd.md`, `onboarding/nzbget.md` — every id `done` with evidence that
exists or `n/a` with a reason; no `open`. `check-onboarding.py` green.
- **What is not measured, stated in both records and on both app pages:** a household must bring a
PAID Usenet provider, and this session had none, so the download chain (connect, authenticate, par2
repair, unpack, the file on the drive) and memory under that load are untested. What is measured is
everything else, including each app's queue accepting a job through its own API and keeping it
across the product's guarded Update.
- **First admin: class 1 for both.** SABnzbd needed the most care of any app here — it ships with **no
login at all** and offers no variable for one, so the entrypoint seeds its own config with the
generated login, a generated API key, `inet_exposure = 5` and `local_ranges = 127.0.0.1`. NZBGet's
image applies `NZBGET_USER`/`NZBGET_PASS` on every start, and this template also writes them into
the config file, because the shipped file carries the documented default in plain text.
- **Nine defects found by measuring, all fixed before publication** (each with its measurement in the
audit README). The four worth remembering: `inet_exposure` protects nobody without `local_ranges`,
because the proxy's address counts as local; NZBGet keeps its queue under `MainDir`, which ships as
the household's drive — the one folder the backup classification calls expendable; a `backup` or
`data_paths` entry must name a path the compose actually binds, or the controller rejects the block
and the data has no class at all; and an `after_install` readback must match the app's own JSON
spacing, or the install holds for ever (which is the gate working as designed).
- **Two measurement artefacts, both recorded as such.** NZBGet looked broken because my own probe ran
its CLI as root inside the container and recreated the app's directories as root. And the box
fixture read the API key out of `app.yaml`, where deploy secrets are stored **encrypted** — the app
rightly answered "API Key Incorrect". `walk.app_env`'s docstring now says so.
- **Ladders written by `upgrade-test.py --write-ladder`**, never by hand, both venues `proven`:
version-5.1.2 → version-5.1.3 (peak 6.3 %) and v26.2 → v26.3 (peak 0.9 %). C3, the harness's
negative control, came back `failed` first, as the rule requires.
- **Fixtures:** `upgrade_fixtures.py` (bench) and `upgrade_fixtures_box.py` (box) gained a class per
app. Both Usenet fixtures seed a queue with a hand-built NZB whose articles do not exist, which is
the honest shape when there is no provider: the queue is the store, and the readback carries a
negative control.
- **Gates:** `catalog_gates.py --fast` (whole catalog) all OK; `catalog_gates.py sabnzbd nzbget` the
same but for the two documented periodic ones (`image-resolvable` needs network, `volume-persistence`
refuses a host that is not a scratch host). Both were exercised on the bench: the ladder writer
resolved and recorded both digests, and each app's storage layout was measured there by hand.
- **The drill route could not be used and that is filed, not papered over.** `admin/app-catalog-drill`
is private and no box has catalog credentials, so the two templates were staged in guest 9202's own
catalog cache — where the sync puts a catalog change anyway — with the sync interval raised for the
duration. The register row asks the operator for the real fix.
Commit `6a1bb04`. Immich's template carries the repair after an unclean boot: the empty thumbnails/previews under
`thumbs/`, Immich's own `AssetGenerateThumbnails` job for those asset ids only (its own queue library, no key), and its
own missing-files check read with a read-only session. Proven on `immich-server:v3.2.4` only. README: the
`### After an unclean boot` contract. No `min_controller` (an older controller ignores the block). Every catalog gate
green on DooPlex except `volume-persistence`, which refuses to run on a production host by design (no compose changed).
Live: controller 0.311.0 on demo-hp 9201 repaired 41 of 41 broken photos after a real power cut (felhom.eu
`documentation/audits/immich-repair-2026-10-14/`).