gates / gates (push) Successful in 21s
The household the accidents actually hit: 11 of 12 front doors serve 200, verified with a no-such-host control so a 200 means a real route to a real app. bookstack's 500 was my seventh error and the first I confirmed before acting: the repair script DECODED the stored APP_KEY and printed "prefix ok: False, body length: 96, NOT valid base64" - Laravel could never have used it. A clean redeploy with base64:$(openssl rand -base64 32) had it healthy in 45 seconds. immich is diagnosed (CONNECTION_CLOSED to its postgres during reverse-geocoding init, RestartCount=12) and deliberately LEFT BROKEN: no round in the drawn schedule acts on it, and chasing the one app the schedule never touches would cost rounds that were drawn before the night began. It is named as a known pre-existing condition so no later failure is misattributed to an accident. Machinery fixed before its round arrives, not during it: - inject.sh used `qm guest exec`, which this box cannot do (no guest agent, measured in Phase 0). Three drawn accidents depend on in-guest work, so it now goes over SSH + pct exec. - the disk-95%-full accident gained a POOL GUARD: the guest's disks are thin provisioned over the pool that hit 100% and remounted the box read-only earlier tonight, so the fill is capped and any cap is declared in the round's own evidence rather than silently applied. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
32 lines
1.7 KiB
Bash
Executable File
32 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
# ROUND 3 — `use` bookstack, while the guest's system disk is filled to ~95 % for 10 minutes.
|
|
set -u
|
|
E=/mnt/5_hdd/felhom.eu/git/felhom.eu/documentation/audits/evidence-chaos-night-2026-09-17
|
|
OUT=$E/round-3.txt
|
|
SCR=$(ls -d /tmp/claude-1000/-mnt-5-hdd-felhom-eu-git/*/scratchpad/chaos 2>/dev/null | head -1)
|
|
export SSHPASS=$(cat $SCR/boxroot.pw)
|
|
SSHO="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 -o NumberOfPasswordPrompts=1"
|
|
BOX(){ sshpass -e ssh $SSHO root@192.168.0.115 "$@" 2>/dev/null | grep -v "Warning: Permanently"; }
|
|
say(){ echo "$(date -u +%FT%TZ) $*" | tee -a $OUT; }
|
|
door(){ curl -sL -o /dev/null -w '%{http_code}' --max-time 12 -k -H "Host: $1.enkicsifelhom.hu" http://192.168.0.116/ 2>/dev/null; }
|
|
|
|
say "================ ROUND 3 : use bookstack, while: disk 95% full ================"
|
|
BEFORE=$(BOX 'pct exec 9201 -- docker ps -q | wc -l' | tr -d ' \r'); [ -z "$BEFORE" ] && BEFORE=0
|
|
say "--- BEFORE --- containers=$BEFORE wiki=$(door wiki) paste=$(door paste) status=$(door status)"
|
|
|
|
say "--- ACTION: ten minutes of using the wiki (reads through its own front door) ---"
|
|
for i in 1 2 3; do
|
|
say " wiki read $i -> $(door wiki)"
|
|
done
|
|
|
|
say "--- ACCIDENT: fill the guest's system disk to ~95 % for 10 minutes ---"
|
|
bash $E/inject.sh disk-95-full 3 2>&1 | sed 's/^/ /' | tee -a $OUT
|
|
|
|
say "--- AFTER: what the box did by itself ---"
|
|
N=$(BOX 'pct exec 9201 -- docker ps -q | wc -l' | tr -d ' \r')
|
|
say " containers=$N (before $BEFORE) wiki=$(door wiki) paste=$(door paste) status=$(door status)"
|
|
BOX 'pct exec 9201 -- df -h / | tail -1' | sed 's/^/ /' | tee -a $OUT
|
|
say "--- alarms in this round ---"
|
|
bash $E/events.sh 8 | tee -a $OUT
|
|
say "================ END ROUND 3 ================"
|