diff --git a/wiki/decisions/appliance-provisioning.md b/wiki/decisions/appliance-provisioning.md index 2c11a91..3ea51b3 100644 --- a/wiki/decisions/appliance-provisioning.md +++ b/wiki/decisions/appliance-provisioning.md @@ -2,7 +2,7 @@ type: reference tags: [parking, deployment, appliance, hardening, runbook, offline-first] sources: [] -updated: 2026-09-02 +updated: 2026-10-17 status: settled --- @@ -41,6 +41,14 @@ addresses, tools, hand steps, traps) have their own field runbook: [[site-device (step 2). - **Boot**: UEFI only (no CSM/Legacy — a Legacy install has no Secure Boot / TPM-seal path). - Set a **BIOS admin password**. +- **Power Management → AC Recovery: On** (Dell default is **Off** = after a mains cut the box stays + off, dark LED, until someone presses the button — this is what kept park-2 down for 50 min on + 2026-10-14). **Block Sleep: Enabled** (a booth must never be suspendable from the GNOME menu). + Both are also settable from Linux without a site visit via `dell-wmi-sysman`: + `cd /sys/class/firmware-attributes/dell-wmi-sysman; echo -n '' | sudo tee authentication/Admin/current_password; + echo On | sudo tee attributes/AcPwrRcvry/current_value; echo Enabled | sudo tee attributes/BlockSleep/current_value` + (a write that returns `Permission denied` = wrong/missing admin password; with **no** admin + password set, write the attribute directly and set one via `authentication/Admin/new_password`). ## 2. Boot the Ubuntu 26.04 USB (Secure Boot ON) @@ -490,6 +498,29 @@ on first launch (`127.0.0.1:3000` on the booth itself, or any `:3000` / `` with no tail / `--tail ≥ ~10k` / any `--since` stops at + the crash and hides post-boot lines (json-file reader quirk); `--tail ≤ 5000` works. Use the DB + (`app_logs`, `device_events`, `ledger_events`) for the booth's own history. SQLite WAL + the ledger's + index/prev_hash chain survived two unclean stops intact. +6. Hikvision cameras cold-booted by the same power cut come back with clocks at 1970; the device + monitor re-syncs them within ~2 min (an offset of ~1.79e9 s in `app_logs` = camera power cycle). + ## Quick-reference: the gotchas, in order they bit us 1. Ventoy USB → `0x1A` Security Violation under Secure Boot → flash the ISO directly instead. @@ -499,6 +530,10 @@ decision, updates are an admin action, so plan to be at the box when bringing it 5. Always keep the **password slot** + an off-machine copy of the passphrase (TPM is never the only key). 6. GRUB password MUST be **edit-only** (`--unrestricted` on entries) or it prompts on EVERY boot → breaks unattended reboot. Verify `grep -c unrestricted /boot/grub/grub.cfg` ≥1 before rebooting. +7. Dell **AC Recovery defaults to Off** → a power-cut booth stays off until a human presses the button + (park-2, 2026-10-14). Set it **On** at provisioning (§1). +8. A Dell that is "frozen, black screen, blinking LED" may be a **failed board**: read the blink code + (amber count, white count). 2,7 = graphics/display POST failure → swap the PC, move the SSD (§8). ### Firmware / dbx gotchas (2026-06-30, §4a) diff --git a/wiki/log.md b/wiki/log.md index 8b8645b..c0661d7 100644 --- a/wiki/log.md +++ b/wiki/log.md @@ -3535,3 +3535,13 @@ pulses (caught by the new relay-pulse log on deploy day). `ReadDispatcher` now t from the same reader inside the reader's `debounceMs` as one presentation: first verdict replayed, repeat → unsigned telemetry, nothing signed twice. Every lane and credential kind. Setup field on all reader drivers. [[dingtian-dt008-reader]] updated; `read-dispatch-debounce.test.ts` (7). + +## [2026-10-17] incident | park-2 host failure (2026-10-14 silent stop → 2026-10-17 board dead) and PC swap +2026-10-14 20:49:47 the park-2 OptiPlex 7070 stopped with the OS healthy seconds before (sar fine, journal +and kernel log silent, no suspend, no panic, pstore empty); unclean stop confirmed by Docker and ext4. +It stayed down 52 min because the Dell BIOS **AC Recovery was Off** (a mains cut leaves the box off until +the button is pressed); a boot attempt at 21:35 died 25 s in, the one at 21:41 held. 2026-10-17 it died +again showing Dell LED code **2,7** = display/graphics POST failure → system board. SSD moved into another +7070: slot-0 passphrase, TPM re-enrolled (PCR 7), unattended reboot verified, AC Recovery On, Block Sleep +set via dell-wmi-sysman; no BIOS admin password on the replacement yet. Ledger chain and SQLite intact +after two unclean stops. [[appliance-provisioning]] §1/§8 + gotchas 7–8.