0c55336fba
gates / gates (push) Successful in 33s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
1.3 KiB
1.3 KiB
The crash guard — read it, re-arm it
Design:
architecture/11-os-updates.md§5.9 (decision 88). When: the hub mailedhost_crash_guard_tripped, or the System page shows TRIPPED for a box.
A tripped guard means: the box stopped uncleanly twice within an hour (a crash, a power cut or a hard reset), so it set
kernel.panic = 0 — the next crash leaves it off until someone switches it on. It re-arms by itself after 24 h of
normal running.
- Read why (as root on the box's host):
felhom-crash-guard status—unclean_boots,tripped_at,tripped_reason. Then the end of each crashed boot:journalctl --list-bootsandjournalctl -b -1 -n 50(a crashed boot ends with no shutdown lines).journalctl -k -b -1 | grep -iE "panic|oops|BUG:"for a kernel message. - Fix the cause first if you found one (a bad kernel → boot the previous one; a power problem → the PSU, the cable).
- Re-arm (operator's choice):
felhom-crash-guard rearm→kernel.panic = 10now; the history stays; a fresh 60-minute window starts. The hub announceshost_crash_guard_rearmedwith the next report that carries the facts (up to ~15 min, R-853). - Check:
sysctl kernel.panic= 10; the System page shows "armed".
The numbers live in /etc/felhom/crash-guard.conf (LIMIT, WINDOW_MINUTES, PANIC_SECONDS, REARM_HOURS).