R-361 docs: the [FACT], the negative that cancelled Part 2, R-383/R-384, golden 0.221.1
gates / gates (push) Successful in 17s
gates / gates (push) Successful in 17s
07-backup-architecture.md gains a dated [FACT] on R-361 - a comment asserting an invariant the code did not have, for four months - and a [DESIGN] on the db_dumps decision INCLUDING the trap it created: a stable list lets the already-current early return fire, so per-capture housekeeping must sit above it. 00-capability-map.md records the NEGATIVE from Part 3 so it is not re-derived: a held app does NOT raise the dead-app alarm. It aggregates to unhealthy, which IsDownState excludes. Measured on the shipped build with the scans demonstrably running over it. No suppression was built and no row opened. R-383: the double-failure message names an undo copy that is not there - R-361's own class, one surface over, observed on both 0.220.2 and 0.221.1. R-384: an app whose database has died reads unhealthy and raises no alarm. R-361 closed and compressed. OPEN-ITEMS 325236 -> 327266 bytes. Golden 0.221.1 baked, published and round-trip verified. The golden-currency gate blocked this push and that block is not circular, so it was satisfied rather than bypassed - no --no-verify anywhere in this session.
This commit is contained in:
1 parent
a8caa0fdde
commit
1eb64bec51
28 files changed
+872
-68
No files matched your search
@@ -0,0 +1,103 @@
|
||||
# DRILL — R-361, and the two loose ends v0.220.2 left (2026-08-22 → 23)
|
||||
|
||||
**Subject:** `demo-hp` (Tier 0), guest 9201. Controller **v0.220.2 → v0.221.0 → v0.221.1**.
|
||||
**Method:** endpoint-level, the exact endpoints the UI's forms post to. No browser on DooPlex.
|
||||
**Subjects FOUND, not rebuilt:** `docmost` (Postgres 16) and `bookstack` (MariaDB 12.3), plus
|
||||
`privatebin`, `kimai`, `calibre-web`, `opengist`, `paperless-ngx`, `romm`.
|
||||
|
||||
## R-361 — the whole thing, in one comparison
|
||||
|
||||
The canonical dump's sha256, before and after a restore:
|
||||
|
||||
| app | before | after |
|
||||
|---|---|---|
|
||||
| `docmost` | `5d35678349bbbdb318ac22656d4f96436b5751ef5b3b1659d48305a526df1aed` | **identical** |
|
||||
| `bookstack` | `7837aa5de2955dcf3125534f015f43df42debe13c765793d3b75173abcc55e7b` | **identical** |
|
||||
|
||||
**Before the fix, on the same box:** neither app had a canonical dump at all — only `pre-restore-*`
|
||||
copies. Every safety dump had overwritten the app's real backup and then moved it away.
|
||||
|
||||
**The dangerous lookalike, named:** a test asserting "the pre-restore file exists" passes just as well
|
||||
when the app's own backup was destroyed. Only the canonical dump's **bytes** convict.
|
||||
|
||||
## Part 3 — the measurement that cancelled Part 2
|
||||
|
||||
The runbook's reading was that a HELD app raises a dead-app banner and a customer e-mail. **It does
|
||||
not.** Measured on the shipped v0.220.2, hold created 21:11:19Z, scans every 30 s running over it:
|
||||
`docmost` aggregated to **`unhealthy`**, `IsDownState` is `{stopped, exited, degraded}`, and the
|
||||
heartbeat read **`0 currently down`** at scans 600 and 620. **Part 2 was dropped in full** — 2.1, 2.2
|
||||
and 2.3 — because 2.2 and 2.3 existed only to make 2.1 safe and complete.
|
||||
|
||||
**Why the reading was wrong:** its first half was right (a held app is not `StateStopped`); its second
|
||||
half assumed the remaining state would be a fault. `aggregateState` checks `unhealthy > 0` **before**
|
||||
the mixed-case degraded branch, and `unhealthy` is deliberately not a down state.
|
||||
|
||||
**The positive control, and two live attempts that failed.** `docker stop privatebin` → `stopped`,
|
||||
whitelisted by design. `docker stop bookstack-db` → `degraded` for a moment, then `unhealthy`. Neither
|
||||
put a stack in a lasting down state, and an absent alarm from a detector never shown working proves
|
||||
nothing. The control that works is at the layer the detector lives in: `classifyRunStates` is pure,
|
||||
and it raises the banner for `degraded`/`exited` while staying silent for the states measured live.
|
||||
|
||||
## Part 4 — the double-failure path, on what actually ships
|
||||
|
||||
**The trigger, chosen deliberately:** the undo copy is **lost between being written and being needed**
|
||||
— a drive that goes away, a filesystem that goes read-only, an external cleanup. It is realistic, it
|
||||
is one of the only two ways a rollback can fail, and the product must not assume the file it wrote
|
||||
twenty seconds ago is still there.
|
||||
|
||||
Verified on 0.221.1: replay failed → rollback failed → **app held**; the customer's start button
|
||||
refused with a reason and a route; a **full controller restart** left it stopped (`Recover()` and the
|
||||
boot sweep both honoured the hold); the operator route listed it, cleared it, and after the restart
|
||||
the command names, the app started.
|
||||
|
||||
**The customer message, verbatim, 369 bytes:**
|
||||
|
||||
> A teljes visszaállítás sikertelen: a(z) docmost adatbázisának visszaállítása sikertelen, és a korábbi
|
||||
> állapot visszatöltése sem sikerült. Az alkalmazást biztonsági okból LEÁLLÍTVA hagytuk, hogy az adatai
|
||||
> ne sérüljenek tovább. Vedd fel velünk a kapcsolatot — a korábbi állapot mentése megvan:
|
||||
> pre-restore-20260822T222028Z-docmost-postgres.sql
|
||||
|
||||
Hex in `16-part4-message.txt`. **No engine output** — R-381 holds. **But the last clause is false**,
|
||||
and that is now **R-383**: it says the previous state's backup exists while naming the very file whose
|
||||
absence caused the failure.
|
||||
|
||||
**An accident worth keeping:** the first trigger attempt removed the `.tmp` instead of the final file
|
||||
— a side-effect of R-361's own fix, which now writes `<final>.tmp`. The safety dump failed and the
|
||||
**fail-closed refusal fired with the app untouched**: *"a visszaállítás nem indult el"*. Not the case
|
||||
being tested, but a free confirmation that no-undo-means-no-restore still holds.
|
||||
|
||||
## Findings
|
||||
|
||||
| id | what |
|
||||
|---|---|
|
||||
| **R-361** | CLOSED — shipped v0.221.0/.1, proven by the sha256 comparison above |
|
||||
| **R-383** | NEW — the double-failure message names an undo copy that is not there |
|
||||
| **R-384** | NEW — an app whose database has died reads `unhealthy` and raises no dead-app alarm |
|
||||
| *held-app alarm* | **no row opened** — it does not fire; the negative is in the capability map |
|
||||
|
||||
## Two defects found in this session's own work
|
||||
|
||||
1. **A red-proof passed, twice over.** The behavioural tests inject the dump seam, so a mutation
|
||||
*inside* `DumpOneTo` was invisible to them; and Part 1.3 initially had no test at all. Guards were
|
||||
added at the layer each defect lives in, and both mutations then convicted.
|
||||
2. **One change made another unreachable.** Excluding the undo copies from `db_dumps` made that list
|
||||
stable, which let `CaptureRecoveryUnit`'s already-current early return fire — and the prune sat
|
||||
after it. **Four copies on disk against a cap of three, counted on the box minutes later.** Fixed in
|
||||
v0.221.1; the cap now holds at 3 on both apps, verified live.
|
||||
|
||||
**And the lost-update window recorded in v0.220.2 was observed, not just reasoned:** clearing a hold
|
||||
and restarting in one breath lost the clear. Doing it with a verification between the steps held.
|
||||
|
||||
## Teardown — three layers
|
||||
|
||||
1. **Nothing was provisioned.** Every app was already on the box; all 20 containers healthy at the end.
|
||||
`docmost` still holds its 4 pages and 1 user; both canonical dumps present.
|
||||
2. **No storage added.** The undo copies are capped at 3 per app and the cap was verified live.
|
||||
3. **No hub-side record created.** No customer, no appliance.
|
||||
|
||||
**No app is left held** — the hold created for Part 4 was cleared and the app restarted.
|
||||
|
||||
## Deliberately left open
|
||||
|
||||
R-102 (the Tier-2 unit mirror read by nothing) and R-359 (no readability check on the off-site store).
|
||||
Untouched here.
|
||||
@@ -0,0 +1,27 @@
|
||||
Baselines re-verified at session start, 2026-08-22 (Phase 1, before any change).
|
||||
|
||||
repo HEAD clean in-sync
|
||||
felhom-controller 2024ed99826717bf765803e159c074909b28bf83 yes yes (v0.220.2)
|
||||
felhom-agent 40d857b52711dd8c9c88bdd21ffcaad819a33a84 yes yes (v0.130.0)
|
||||
felhom.eu a8caa0fdde7c678bb88b5b25727044695bbdeaa9 yes yes
|
||||
app-catalog 459766cb16395fd1d1a66282f5cc6da59ead5924 yes yes
|
||||
|
||||
Hub (/configuration, Basic auth, ClusterIP): golden_version 0.220.2, agent_version 0.130.0,
|
||||
min_agent 0.129.0, global controller floor 0.220.2 — all as the runbook states.
|
||||
|
||||
Register ceiling: R-382.
|
||||
|
||||
SUBJECTS FOUND (not rebuilt): docmost + docmost-postgres + docmost-redis, bookstack + bookstack-db,
|
||||
all healthy, up ~5 hours. Also on the box: privatebin, kimai, calibre-web, opengist, paperless-ngx,
|
||||
romm.
|
||||
|
||||
R-361 CONFIRMED LIVE BEFORE ANY CHANGE — the canonical dumps are absent on BOTH subjects:
|
||||
docmost/db-dumps/ : only 3x pre-restore-* (no docmost-postgres.sql)
|
||||
bookstack/db-dumps/ : only 3x pre-restore-* (no bookstack-mariadb.sql)
|
||||
Mechanism at source: appbackup/dbdump.go:246 builds `<stack>-<dbtype>.sql`, :247-248 derive tmp and
|
||||
final from it, and writeSafetyDump (offbox_reconstitute.go:186-196) calls DumpOne into the app's own
|
||||
unit dir and only THEN renames. The comment at offbox_reconstitute.go:190-191 says the rename means it
|
||||
"can never overwrite the app's real dump" — false as written.
|
||||
|
||||
Dead-app watcher cadence: sched.Every("deadapp-check", 30s) at cmd/controller/main.go:726, with a 90s
|
||||
boot grace. classifyRunStates at :2150. IsDownState (manager.go:54) includes StateDegraded.
|
||||
@@ -0,0 +1,7 @@
|
||||
=== the trigger:
|
||||
TRIGGER: removed the freshly-written undo copy pre-restore-20260822T211114Z-docmost-postgres.sql
|
||||
=== the legs:
|
||||
2026/08/22 21:11:14 offbox_reconstitute.go:200: [INFO] [offbox] docmost: pre-restore safety dump written → pre-restore-20260822T211114Z-docmost-postgres.sql (138.0 KB)
|
||||
2026/08/22 21:11:18 offbox_reconstitute.go:690: [ERROR] [offbox] docmost: database replay failed, rolling back to the pre-restore state: importing postgres dump for docmost: postgres import into docmost-postgres failed: exit status 3
|
||||
2026/08/22 21:11:19 offbox_reconstitute.go:695: [ERROR] [offbox] docmost: ROLLBACK ALSO FAILED (a visszavonáshoz szükséges mentés nem található (pre-restore-20260822T211114Z-docmost-postgres.sql): stat /mnt/sys_drive/felhom-data/backups/primary/docmost/db-dumps/pre-restore-20260822T211114Z-docmost-postgres.sql: no such file or directory) — holding the app stopped; replay error was: importing postgres dump for docmost: postgres import into docmost-postgres failed: exit status 3
|
||||
2026/08/22 21:11:19 offbox_handlers.go:451: [ERROR] [web] off-box reconstitute docmost (async): a(z) docmost adatbázisának visszaállítása sikertelen, és a korábbi állapot visszatöltése sem sikerült. Az alkalmazást biztonsági okból LEÁLLÍTVA hagytuk, hogy az adatai ne sérüljenek tovább. Vedd fel velünk a kapcsolatot — a korábbi állapot mentése megvan: pre-restore-20260822T211114Z-docmost-postgres.sql
|
||||
@@ -0,0 +1,7 @@
|
||||
=== T+0 immediately after the hold
|
||||
now: 21:11:37Z
|
||||
containers:
|
||||
docmost-postgres | Up 20 seconds (healthy)
|
||||
(docmost app + redis gone; the DATABASE is still up — Part 2.3's subject)
|
||||
hold on disk:
|
||||
['docmost']
|
||||
@@ -0,0 +1,23 @@
|
||||
OBSERVED 2026-08-22 21:11:19, on the shipped v0.220.2, while creating the hold for Part 3.
|
||||
|
||||
The double-failure message ends:
|
||||
|
||||
"... Vedd fel velünk a kapcsolatot — a korábbi állapot mentése megvan:
|
||||
pre-restore-20260822T211114Z-docmost-postgres.sql"
|
||||
|
||||
"a korábbi állapot mentése megvan" = "the backup of the previous state EXISTS".
|
||||
|
||||
IN THIS CASE IT DOES NOT. The rollback failed precisely BECAUSE that file was gone:
|
||||
|
||||
ROLLBACK ALSO FAILED (a visszavonáshoz szükséges mentés nem található
|
||||
(pre-restore-20260822T211114Z-docmost-postgres.sql): stat ...: no such file or directory)
|
||||
|
||||
So the customer is told, in the same sentence, that we could not restore their previous state AND
|
||||
that a copy of it exists — naming a file that does not. The sentence is built from `safety`, the path
|
||||
writeSafetyDump returned, without asking whether it is still there.
|
||||
|
||||
This is the SAME CLASS as R-361 itself: a sentence asserting a property the code does not check.
|
||||
It is not the trigger's artefact — ANY rollback failure whose cause is a missing or unreadable undo
|
||||
copy produces it, and that is one of the two ways a rollback can fail.
|
||||
|
||||
NOT ACTED ON in this session's Part 1/2 scope. Filed as a register row.
|
||||
@@ -0,0 +1,18 @@
|
||||
=== PART 3 MEASUREMENT — v0.220.2, no code change
|
||||
measured at: 21:13:51Z (hold created 21:11:19Z)
|
||||
elapsed: ~2m20s = 5 deadapp scans at 30s cadence (heartbeat lines confirm 9 scans in the log window)
|
||||
|
||||
-- 3a. WHICH RUN STATE did docmost aggregate to?
|
||||
bookstack state=running deployed=True
|
||||
docmost state=unhealthy deployed=True
|
||||
privatebin state=running deployed=True
|
||||
|
||||
-- 3b. IS THE DATABASE STILL UP?
|
||||
docmost-postgres | Up 2 minutes (healthy)
|
||||
|
||||
-- 3c. DID A CUSTOMER-FACING EVENT FIRE for docmost?
|
||||
2026/08/22 21:11:19 notifier.go:234: [INFO] Event pushed: backup_run_failures (error) — App "docmost" is HELD STOPPED: its off-site database restore failed AND the rollback to the customer's own pre-restore copy also failed. The app will not start from any path until the hold is cleared. Replay error: importing postgres dump for docmost: postgres import into docmost-postgres failed: exit status 3. Rollback error: a visszavonáshoz szükséges mentés nem található (pre-restore-20260822T211114Z-docmost-postgres.sql): stat /mnt/sys_drive/felhom-data/backups/primary/docmost/db-dumps/pre-restore-20260822T211114Z-docmost-postgres.sql: no such file or directory
|
||||
(none above = no event fired)
|
||||
|
||||
-- 3d. DEAD-APP BANNER STATE:
|
||||
2026/08/22 21:13:48 main.go:1730: [INFO] [deadapp] check alive: 580 scans since boot, 8 deployed app(s) evaluated, 0 currently down
|
||||
@@ -0,0 +1,5 @@
|
||||
=== PART 3 step 4 — POSITIVE CONTROL: stop a different app OUT-OF-BAND so it is a genuine fault
|
||||
(docker stop leaves the container present -> StateExited, which the code says still alerts;
|
||||
a compose-down user stop would be StateStopped, which is whitelisted by design)
|
||||
privatebin stopped out-of-band
|
||||
at: 21:14:18Z
|
||||
@@ -0,0 +1,50 @@
|
||||
PART 3 — THE MEASUREMENT, AND THE DECISION IT PRODUCED
|
||||
Measured on demo-hp, controller v0.220.2 as shipped, BEFORE any code change.
|
||||
|
||||
THE READING (prompt §3): "a held app has one container still up — its database — so it does not
|
||||
aggregate to StateStopped; it should aggregate to a state the down-predicate treats as a fault", and
|
||||
therefore a held app gets a dead-app banner and a customer email.
|
||||
|
||||
THE MEASUREMENT: IT DID NOT REPRODUCE.
|
||||
|
||||
hold created 21:11:19Z (deliberate trigger, see 01)
|
||||
waited 2m20s, then longer; deadapp-check runs every 30s (main.go:726) and the
|
||||
scheduler log shows 9 executions in the window — the scans DID run over it
|
||||
docmost's run state `unhealthy` <- NOT StateStopped, and NOT a down state
|
||||
IsDownState {stopped, exited, degraded} (stacks/manager.go:54) — `unhealthy` absent
|
||||
dead-app count `0 currently down`, 8 apps evaluated, at 21:13:48 and 21:23:48
|
||||
customer event NONE. The only event was this session's own operator-tier
|
||||
`backup_run_failures`, which is the hold's intended notification.
|
||||
database container docmost-postgres STILL UP (Part 2.3's subject — that half was right)
|
||||
|
||||
WHY THE READING WAS WRONG. The first half was right: a held app is not StateStopped. The second half
|
||||
assumed the remaining state would be one the predicate treats as a fault. It is not.
|
||||
`aggregateState` (stacks/manager.go:~810) checks `if unhealthy > 0 → StateUnhealthy` FIRST, before the
|
||||
mixed-case degraded branch. A held app's surviving database plus its failing app healthcheck put the
|
||||
stack in `unhealthy`, and `unhealthy` is deliberately excluded from IsDownState.
|
||||
|
||||
DECISION: PART 2 IS DROPPED IN FULL — 2.1 (suppression), 2.2 (replacement banner) and 2.3 (stopping
|
||||
the database). 2.2 and 2.3 existed only to make 2.1 safe and complete; with nothing to suppress there
|
||||
is nothing to replace, and stopping the database would be a behaviour change with no defect behind it.
|
||||
No register row is opened for the held-app alarm, per the runbook. The negative is recorded in the
|
||||
capability map instead.
|
||||
|
||||
POSITIVE CONTROL — and the two live attempts that FAILED, recorded because they are the finding.
|
||||
attempt 1: `docker stop privatebin` (single-container stack) -> stack read `stopped`, which is
|
||||
WHITELISTED as a deliberate user stop. No alarm, correctly by design.
|
||||
attempt 2: `docker stop bookstack-db` (multi-container) -> `degraded` for a moment, then `unhealthy`
|
||||
once the app's own healthcheck failed. No alarm.
|
||||
So NEITHER live attempt put a stack in a lasting down state, and an absent alarm from a detector
|
||||
never shown working proves nothing.
|
||||
THE CONTROL THAT WORKS is at the layer the detector lives in — `classifyRunStates` is a pure
|
||||
function: TestClassifyRunStates_PositiveControl_ADownStackDoesAlarm feeds it `degraded` and
|
||||
`exited` and both raise the banner and a Down run state; the companion test feeds it the states
|
||||
MEASURED LIVE (`unhealthy`, `stopped`) and both are silent. The detector works; these states do not
|
||||
reach it.
|
||||
|
||||
ADJACENT FINDING, measured rather than reasoned, and OUT OF THIS TASK'S SCOPE:
|
||||
`bookstack` sat with its DATABASE CONTAINER EXITED and its app `unhealthy` for several minutes and
|
||||
the dead-app watcher reported `0 currently down` throughout. An app whose database has died raises
|
||||
no dead-app banner and no customer email, because `unhealthy` masks the mixed state. It is not
|
||||
wholly invisible — the health report counts it (`cr.Unhealthy++`, report/builder.go:251) and that
|
||||
reaches the hub — but it does not alarm. Filed as a register row; NOT acted on here.
|
||||
@@ -0,0 +1,25 @@
|
||||
=== step 1: clear (full output, nothing filtered)
|
||||
LC_ALL = (unset),
|
||||
LC_CTYPE = "UTF-8",
|
||||
LC_NUMERIC = (unset),
|
||||
LC_COLLATE = (unset),
|
||||
LC_TIME = (unset),
|
||||
LC_MESSAGES = (unset),
|
||||
LC_MONETARY = (unset),
|
||||
LC_ADDRESS = (unset),
|
||||
LC_IDENTIFICATION = (unset),
|
||||
LC_MEASUREMENT = (unset),
|
||||
LC_PAPER = (unset),
|
||||
LC_TELEPHONE = (unset),
|
||||
LC_NAME = (unset),
|
||||
[INFO] [settings] Loaded settings from /opt/docker/felhom-controller/data/settings.json
|
||||
[INFO] [settings] restore hold CLEARED for docmost
|
||||
[INFO] [settings] Settings saved
|
||||
restore hold cleared for docmost in settings.json.
|
||||
NOW RESTART THE CONTROLLER, or it will keep refusing to start the app:
|
||||
systemctl restart felhom-controller-bootstrap.service
|
||||
Check the app's data first — the undo copies are in its unit's db-dumps dir.
|
||||
=== step 2: verify the FILE immediately, before any restart
|
||||
restore_holds = None
|
||||
=== step 3: restart, then verify the file AGAIN (the lost-update check)
|
||||
after restart restore_holds = None
|
||||
@@ -0,0 +1,3 @@
|
||||
=== SCENARIO A — the canonical dump's sha256 BEFORE the restore
|
||||
5d35678349bbbdb318ac22656d4f96436b5751ef5b3b1659d48305a526df1aed /mnt/sys_drive/felhom-data/backups/primary/docmost/db-dumps/docmost-postgres.sql
|
||||
7837aa5de2955dcf3125534f015f43df42debe13c765793d3b75173abcc55e7b /mnt/sys_drive/felhom-data/backups/primary/bookstack/db-dumps/bookstack-mariadb.sql
|
||||
@@ -0,0 +1,18 @@
|
||||
=== the restore that just ran:
|
||||
2026/08/22 21:54:32 offbox_reconstitute.go:207: [INFO] [offbox] docmost: pre-restore safety dump written → pre-restore-20260822T215432Z-docmost-postgres.sql (138.0 KB)
|
||||
2026/08/22 21:55:01 offbox_reconstitute.go:732: [INFO] [offbox] reconstituted docmost from snapshot 750b7b4d: 0 file(s) placed, 3 volume(s) replayed, 1 DB dump(s) replayed, safety dump=pre-restore-20260822T215432Z-docmost-postgres.sql, skewed=false
|
||||
2026/08/22 21:55:01 offbox_handlers.go:455: [INFO] [web] off-box reconstitute docmost completed (async): files=0 dbs=1 snapshot=750b7b4d
|
||||
|
||||
=== SCENARIO A — THE CANONICAL DUMP AFTER THE RESTORE
|
||||
5d35678349bbbdb318ac22656d4f96436b5751ef5b3b1659d48305a526df1aed /mnt/sys_drive/felhom-data/backups/primary/docmost/db-dumps/docmost-postgres.sql
|
||||
BEFORE was: 5d35678349bbbdb318ac22656d4f96436b5751ef5b3b1659d48305a526df1aed
|
||||
|
||||
=== and the undo copy exists beside it, under its own name:
|
||||
total 708
|
||||
drwxr-xr-x 2 root root 4096 Aug 22 21:54 .
|
||||
drwxr-xr-x 5 root root 4096 Aug 22 21:44 ..
|
||||
-rw-r--r-- 1 root root 141363 Aug 22 21:43 docmost-postgres.sql
|
||||
-rw-r--r-- 1 root root 141363 Aug 22 16:05 pre-restore-20260822T160544Z-docmost-postgres.sql
|
||||
-rw-r--r-- 1 root root 141363 Aug 22 16:23 pre-restore-20260822T162347Z-docmost-postgres.sql
|
||||
-rw-r--r-- 1 root root 141363 Aug 22 16:27 pre-restore-20260822T162708Z-docmost-postgres.sql
|
||||
-rw-r--r-- 1 root root 141363 Aug 22 21:54 pre-restore-20260822T215432Z-docmost-postgres.sql
|
||||
@@ -0,0 +1,4 @@
|
||||
=== SCENARIO A — bookstack (MariaDB)
|
||||
2026/08/22 21:56:07 offbox_reconstitute.go:732: [INFO] [offbox] reconstituted bookstack from snapshot 245932e4: 0 file(s) placed, 2 volume(s) replayed, 1 DB dump(s) replayed, safety dump=pre-restore-20260822T215540Z-bookstack-mariadb.sql, skewed=false
|
||||
BEFORE: 7837aa5de2955dcf3125534f015f43df42debe13c765793d3b75173abcc55e7b
|
||||
AFTER : 7837aa5de2955dcf3125534f015f43df42debe13c765793d3b75173abcc55e7b /mnt/sys_drive/felhom-data/backups/primary/bookstack/db-dumps/bookstack-mariadb.sql
|
||||
@@ -0,0 +1,9 @@
|
||||
=== the MANIFEST after these restores (Part 1.3 — must list only the app's own dump)
|
||||
-- docmost
|
||||
db_dumps : ['docmost-postgres.sql']
|
||||
vol_dumps : ['docmost_docmost_postgres_data.tar', 'docmost_docmost_redis_data.tar', 'docmost_docmost_storage.tar']
|
||||
undo copies ON DISK (positive control for the exclusion): 4
|
||||
-- bookstack
|
||||
db_dumps : ['bookstack-mariadb.sql']
|
||||
vol_dumps : ['bookstack_bookstack_config.tar', 'bookstack_bookstack_db_data.tar']
|
||||
undo copies ON DISK (positive control for the exclusion): 4
|
||||
@@ -0,0 +1,3 @@
|
||||
=== the cap, live on 0.221.1 (was 4 with a cap of 3 before the follow-on fix)
|
||||
docmost undo copies: 3
|
||||
bookstack undo copies: 3
|
||||
@@ -0,0 +1,9 @@
|
||||
=== SCENARIO E — a genuinely dead app must still alarm, byte-identical to v0.220.2
|
||||
Part 2 was DROPPED, so no suppression was added. The proof is that the classifier is untouched:
|
||||
|
||||
-- git diff of classifyRunStates and its caller, v0.220.2 (2024ed99) -> HEAD:
|
||||
(empty above = main.go was not changed at all this session)
|
||||
|
||||
-- the only cmd/controller change is a NEW TEST FILE:
|
||||
.../cmd/controller/r361_classifier_control_test.go | 55 ++++++++++++++++++++++
|
||||
1 file changed, 55 insertions(+)
|
||||
@@ -0,0 +1,9 @@
|
||||
=== PART 4 — double failure on the SHIPPED 0.221.1
|
||||
TRIGGER (deliberate, realistic): the undo copy is LOST between being written and being needed —
|
||||
a drive that goes away, a filesystem that goes read-only, or an external cleanup. The product
|
||||
must not assume the file it wrote twenty seconds ago is still there.
|
||||
TRIGGER: removed the freshly-written undo copy pre-restore-20260822T221623Z-docmost-postgres.sql.tmp
|
||||
=== app state — must be NOT running:
|
||||
docmost | Up 12 minutes (healthy)
|
||||
docmost-postgres | Up 12 minutes (healthy)
|
||||
docmost-redis | Up 12 minutes (healthy)
|
||||
@@ -0,0 +1,7 @@
|
||||
=== PART 4 on 0.221.1 — every start path
|
||||
-- app state (must be NOT running):
|
||||
docmost-postgres | Up 23 seconds (healthy)
|
||||
-- the CUSTOMER's start button:
|
||||
{"ok":false,"error":"a(z) docmost adatainak visszaállítása 2026-08-22 22:17-kor megszakadt, és a korábbi állapotot sem sikerült visszatölteni. Az alkalmazás biztonsági okból leállítva marad, hogy az adatai ne sérüljenek tovább. Vedd fel velünk a kapcsolatot"}
|
||||
-- a FULL controller restart, then Recover() and the boot sweep:
|
||||
docmost-postgres | Up 37 seconds (healthy)
|
||||
@@ -0,0 +1,15 @@
|
||||
=== CUSTOMER MESSAGE, VERBATIM — double failure, controller 0.221.1, read from the page ===
|
||||
A teljes visszaállítás sikertelen: a(z) docmost adatbázisának visszaállítása sikertelen, és a korábbi állapot visszatöltése sem sikerült. Az alkalmazást biztonsági okból LEÁLLÍTVA hagytuk, hogy az adatai ne sérüljenek tovább. Vedd fel velünk a kapcsolatot — a korábbi állapot mentése megvan: pre-restore-20260822T222028Z-docmost-postgres.sql
|
||||
|
||||
=== UTF-8 hex ===
|
||||
412074656c6a657320766973737a61c3a16c6cc3ad74c3a1732073696b657274656c656e3a2061287a2920646f636d6f7374206164617462c3a17a6973c3a16e616b20766973737a61c3a16c6cc3ad74c3a173612073696b657274656c656e2c20c3a9732061206b6f72c3a162626920c3a16c6c61706f7420766973737a6174c3b66c74c3a973652073656d2073696b6572c3bc6c742e20417a20616c6b616c6d617ac3a173742062697a746f6e73c3a16769206f6b62c3b36c204c45c3814c4cc38d545641206861677974756b2c20686f677920617a20616461746169206e652073c3a972c3bc6c6a656e656b20746f76c3a162622e20566564642066656c2076656cc3bc6e6b2061206b617063736f6c61746f7420e280942061206b6f72c3a162626920c3a16c6c61706f74206d656e74c3a97365206d656776616e3a207072652d726573746f72652d3230323630383232543232323032385a2d646f636d6f73742d706f7374677265732e73716c
|
||||
|
||||
=== byte length: 369
|
||||
|
||||
=== R-381 must hold — engine-output leak check:
|
||||
ERROR: present: False
|
||||
LINE 1: present: False
|
||||
COPY public. present: False
|
||||
exit status present: False
|
||||
psql present: False
|
||||
INSERT INTO present: False
|
||||
@@ -0,0 +1,12 @@
|
||||
=== PART 4 — the operator route, end to end on 0.221.1
|
||||
-- list:
|
||||
docmost held since 2026-08-22T22:20:32Z
|
||||
replay error : importing postgres dump for docmost: postgres import into docmost-postgres failed: exit status 3
|
||||
rollback err : a visszavonáshoz szükséges mentés nem található (pre-restore-20260822T222028Z-docmost-postgres.sql): stat /mnt/sys_drive/felhom-data/backups/primary/docmost/db-dumps/pre-restore-20260822T222028Z-docmost-postgres.sql: no such file or directory
|
||||
-- clear:
|
||||
restore hold cleared for docmost in settings.json.
|
||||
NOW RESTART THE CONTROLLER, or it will keep refusing to start the app:
|
||||
systemctl restart felhom-controller-bootstrap.service
|
||||
Check the app's data first — the undo copies are in its unit's db-dumps dir.
|
||||
-- after the restart the command names, the app starts:
|
||||
{"ok":true,"message":"Stack docmost start completed"}
|
||||
@@ -0,0 +1,29 @@
|
||||
=== TEARDOWN CHECK — 2026-08-23
|
||||
-- holds in force (must be none):
|
||||
None
|
||||
-- every app on the box:
|
||||
bookstack | Up 17 minutes (healthy)
|
||||
bookstack-db | Up 17 minutes (healthy)
|
||||
calibre-web | Up 17 minutes (healthy)
|
||||
cloudflared | Up 30 hours
|
||||
docmost | Up 15 seconds (healthy)
|
||||
docmost-postgres | Up About a minute (healthy)
|
||||
docmost-redis | Up 26 seconds (healthy)
|
||||
felhom-controller | Up 37 seconds (healthy)
|
||||
filebrowser | Up 30 hours (healthy)
|
||||
kimai | Up 17 minutes (healthy)
|
||||
kimai-db | Up 17 minutes (healthy)
|
||||
opengist | Up 17 minutes (healthy)
|
||||
paperless-postgres | Up 17 minutes (healthy)
|
||||
paperless-redis | Up 17 minutes (healthy)
|
||||
paperless-webserver | Up 16 minutes (healthy)
|
||||
privatebin | Up 16 minutes (healthy)
|
||||
romm | Up 16 minutes (healthy)
|
||||
romm-db | Up 16 minutes (healthy)
|
||||
romm-redis | Up 16 minutes (healthy)
|
||||
traefik | Up 30 hours
|
||||
-- docmost's data survived the whole session:
|
||||
4 pages, 1 users
|
||||
-- canonical dumps present on both subjects:
|
||||
docmost docmost-postgres.sql
|
||||
bookstack bookstack-mariadb.sql
|
||||
Reference in new issue
Block a user