Public: anyone can read this; the crew can change it.

Recovery you can print on a notecard: a restore drill from a real snapshot every week, the passphrase carried, the snapshot store off the box, and the runbook short enough for a safe #1147

Closed opened this

Pull #1941 was closed · 2 runs

opened this

From the owner, 2026-10-12: "Something spooky is I don't think we've really tested recovery from a backup. I want that process locked down and always available. I need it so perfect that I can print it on a notecard and put it in my safe."

What the steward found tonight: the forge snapshots nightly to a MinIO on the same droplet (app--trevato-apps--forge--prod), the Backups page said the store "could not be listed just now", the snapshots carried no key (the sealed values — origin tokens, app variables, secrets — would not come back), and the backup lane's backup-freshness job had been failing for hours. The passphrase is set now and rides the next restart; the rest is this issue.

Done looks like:

Files I expect: src/snapshot/drill.ts (new), src/snapshot/service.ts, src/web/pages/backups.ts, src/kernel/vitals.ts, docs/RECOVERY.md, the standby backup lane in the operator's repository.

7 earlier comments
commented

Tonight (2026-10-13 00:46Z, forge 0.7.62): the first keyed snapshot hung on its first object, forge.db, for over an hour. One quiet connection to Backblaze, Bun's S3 write never settled, the retries never ran; the network itself was fine (the same 81 MiB took 3 to 5 s from the host and from a throwaway pod). Fix in review upstream (Forgejo trevato-apps/forge #26): every store call has a deadline, after which the next attempt opens a fresh request. Until it ships, the nightly snapshot would wait behind the hung one. A manual encrypted copy of repos, apps, children, runs, secret.key and the staged forge.db went to B2 under manual/2026-10-13T0108Z/ (AES-256-CBC pbkdf2 with the snapshot passphrase; README beside it). The notecard this issue asks for should carry both paths: the snapshot restore and the manual tarball.

commented

Correction: the snapshot I called hung finished at 02:32Z, 1 h 47 min after it started: 110 repositories, 39 apps, 15,422 objects, 350 MiB, key wrapped, name 2026-10-13T00-45-35Z. It was serial latency, one put per object, not a dead connection; the deadline in upstream #26 still belongs there. The parallel upload and progress lines are #1193. The restore drill from this snapshot is running on the droplet host now; its result lands here.

commented

Restore drill, 2026-10-13: snapshot 2026-10-13T00-45-35Z (forge 0.7.62, key wrapped) restored on the droplet host with bun run src/snapshot/restore.ts <name> <empty dir> and the S3_* + FORGE_SNAPSHOT_PASSPHRASE environment: exit 0 after 81 minutes (15,422 objects fetched one at a time, same latency as the upload). What came back: 110 repositories (117 MB of git), 28 users, 2,531 issues, 15,927 runs, 3 subscriptions, forge.db 79 MB, secret.key and ssh host keys; 413 MB on disk. Not yet proven: booting the forge on the restored directory and reading a page; that is the next step of the drill and belongs in the notecard.

commented

Boot proof: the restored directory boots the forge on the droplet host in 3 s (PORT=18080 FORGE_HOST=127.0.0.1 FORGE_DATA=<dir> FORGE_URL=http://127.0.0.1:18080 FORGE_CREW_CONCURRENCY=0 FORGE_CHECKS_CONCURRENCY=0 bun run src/main.ts): /api/v1/health ok, the home and /trevato answer 200, /explore lists the repositories. Stopped after 70 s. The drill is complete end to end: snapshot → restore (81 min) → boot → read. #1219 turns this into the one-page notecard and a weekly scheduled drill.

commented

Nightly snapshot 2026-10-13T08-00-00Z taken on 0.7.66 at 09:20:43Z: 1 h 20 min, 110 repositories, 39 apps, 15,789 objects, 359 MB, key wrapped. Second keyed snapshot in the store; the nightly schedule works. (I also started a by-hand snapshot at 09:36Z by mistake, having looked for the wrong log tag; it runs after and is harmless.) #1193 is what brings the 80 minutes down to ten.

commented

Parked by the crew: the check stayed red through 2 automatic tries (pull #1872 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

commented

Parked by the crew: the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try (pull #1941 closed).

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the check stayed red through 2 automatic tries (pull #1872 closed)
  2. the check failed ("/boards > a panel keeps its chart and series: chosen in the form, saved in the file, drawn on the board") and the decider saw no point in another try (pull #1941 closed)

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Split into #1986 (the notecard, the drill's counts and the Backups line that says whether the forge is recoverable), #1987 (snapshots mirrored off the box, with a stale mirror raising a board line and a push) and #1988 (the drill runs weekly on its own; waits for #1986). Pull #1872 stayed red through two tries, and both pulls left the off-box store and the weekly drill out. The second failure, /boards > a panel keeps its chart and series, was main's own clock-dependent test (fixed in 43bf1e57). The standby backup lane is in the operator's repository, not this one.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs