interplane-forge
INTERPLANE Forge
Brought by drakestapleton
interplane-forge / infra / spark / forgejo / EVIDENCE-20261109.txt
| 1 | atlas-forgejo-backup.service failure: evidence, 2026-11-09 (ipl-ops, read-only diagnosis on the Spark) |
| 2 | All times CST (UTC-6) unless marked Z. Commands were read-only: systemctl show/cat, journalctl, ls, readlink, sha256sum. |
| 3 | |
| 4 | ROOT CAUSE |
| 5 | 1. Both Forgejo system units exec binaries through the symlink |
| 6 | ~/atlas-forgejo-setup-20260904 -> /home/drakestapleton/archive/historical-experiments-pre-omarchy/atlas-forgejo-setup-20260904 |
| 7 | atlas-forgejo.service ExecStart path=/home/drakestapleton/atlas-forgejo-setup-20260904/forgejo-16.0.3-linux-arm64 |
| 8 | atlas-forgejo-storage.service ExecStart path=/home/drakestapleton/atlas-forgejo-setup-20260904/runtime/usr/bin/gocryptfs |
| 9 | (atlas-forgejo-web.service, user unit, disabled and inactive, points at the same symlink.) |
| 10 | 2. The symlink target was deleted 2026-11-08 ~05:39Z (Nov 7 ~23:39 CST): BOARD.md line 2227 |
| 11 | ("Fable ... on Drake's word"); ~/handoffs/2026-11-08-forge-on-spark.md line 10. The running |
| 12 | Forgejo and gocryptfs kept going from the deleted inodes. |
| 13 | 3. The nightly backup stopped Forgejo and could not start it again: |
| 14 | Nov 08 03:07:51 systemd[1]: Stopping atlas-forgejo.service - Atlas Forgejo on Spark... |
| 15 | Nov 08 03:07:52 systemd[1]: Stopped atlas-forgejo.service - Atlas Forgejo on Spark. |
| 16 | Nov 08 03:07:55 systemd[1]: Starting atlas-forgejo.service - Atlas Forgejo on Spark... |
| 17 | Nov 08 03:07:55 systemd[1]: atlas-forgejo.service: Main process exited, code=exited, status=203/EXEC |
| 18 | Nov 08 03:08:55 forgejo-backup[783679]: forgejo-backup: Forgejo not healthy 60 s after restart |
| 19 | Nov 08 03:08:55 forgejo-backup[783679]: forgejo-backup: Forgejo restart failed after the snapshot |
| 20 | Nov 08 03:08:55 systemd[4051188]: atlas-forgejo-backup.service: Main process exited, code=exited, status=1/FAILURE |
| 21 | The live script (line 134) runs `forgejo_start || die "Forgejo restart failed after the snapshot"` |
| 22 | before it looks at the tar/age exit codes, so the .partial was deleted by the EXIT trap whether or |
| 23 | not it was complete; its tar/age result was never logged. The snapshot window was 3 s |
| 24 | (03:07:52 to 03:07:55), against ~60 s for the Nov 6 and Nov 7 runs: [UNKNOWN] whether tar failed too. |
| 25 | 4. Nov 08 05:44:22 the storage unit was stopped (by whom: not in the journal lines read) and |
| 26 | atlas-forgejo.service was stopped with it; since 05:44:23 atlas-forgejo-storage.service |
| 27 | restart-loops on 203/EXEC (NRestarts=4682 at 2026-11-08 22:56) and atlas-forgejo.service is |
| 28 | failed ("Dependency failed"). ~/atlas-forgejo/data is not mounted; https://127.0.0.1:3443/api/healthz |
| 29 | does not answer. |
| 30 | |
| 31 | STATE OF BACKUPS |
| 32 | ~/atlas-forgejo-backups: forgejo-20261106T090647.225803Z.tar.age (522726184 B), |
| 33 | forgejo-20261107T090754.850166Z.tar.age (522726184 B), latest.json -> the Nov 7 file. Nothing since. |
| 34 | The Nov 7 snapshot is the newest copy of Forgejo's data outside the (intact, unmounted) gocryptfs |
| 35 | cipher dir ~/atlas-forgejo/cipher. |
| 36 | |
| 37 | RECOVERY SOURCES (verified by forgejo-runtime-restore.sh --dry-run, staged into /tmp only) |
| 38 | /home/atlas/atlas-forgejo-setup-20260904/forgejo-16.0.3-linux-arm64 |
| 39 | sha256 8bd2ae7783e84a10e284faeda5e8ab3b25172953ff97aac4323b10dbff652925 == binary-proof.json; |
| 40 | detached signature VALIDSIG for primary key EB114F5E6C0DC2BCDD183550A4B61A2DC5923710 (Forgejo releases); |
| 41 | --version: forgejo version 16.0.3+gitea-1.22.0 |
| 42 | /home/atlas/atlas-forgejo-setup-20260904/packages/gocryptfs_2.4.0-1ubuntu0.24.04.3_arm64.deb |
| 43 | sha256 65b2cb8c2ab5a075b643124597c74bd10bfa7dab8c24b5f1427a2f1a9402f6d1 == SHA256 in the Ubuntu |
| 44 | archive index (apt-cache show gocryptfs); -version: gocryptfs 2.4.0 |
| 45 | |
| 46 | FIX (in this repo, NOT applied live) |
| 47 | forgejo-backup.patch / forgejo-backup: preflight refuses before stopping anything when a unit |
| 48 | binary is missing; a restart failure keeps a complete snapshot; tar/age codes logged; --dry-run. |
| 49 | Live negative control (2026-11-09): `forgejo-backup --dry-run` with the patched copy prints |
| 50 | MISSING for both system unit binaries and exits 1. Positive control: FORGEJO_BACKUP_SYS_UNIT= |
| 51 | ssh.service FORGEJO_BACKUP_STORAGE_UNIT=ssh.service -> "ok /usr/sbin/sshd", exit 0. |
| 52 | Bringing Forgejo back is a live, root-needing change and a restore-or-retire decision for Drake: |
| 53 | infra/RUNBOOK.md, "Forgejo (atlas) outage". |