GeezerVison is showing github.com — pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) · Issue #3869 · developing-today/code
pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) #3869Descriptionpm-stack backups silently produced empty day-dirs for 3 days
~/backups/pm-stack/ has day directories for 2026-10-30, 2026-10-31, and 2026-11-01 that were created on schedule but contain no archive — the last good tarball before today was 2026-10-29. Nothing alarmed; the gap was found by hand during the 2026-11-01 Kaneo/PostgreSQL incident (#3849), where the Oct 29 kaneo.dump turned out to be the only logical fallback.
Cause: ~/tools/pm-stack-backup.sh creates the day dir up front, then set -e kills it mid-run, leaving the empty dir as camouflage. The mid-run deaths were stale container names from the compose→oci migrations: docker exec pm-stack-postgres-1 failed while the compose stack was down for the pm-apps activation (Oct 30), and after Grist/Pad became oci containers the script still targeted grist-grist-1 / pad-pad-1 (live names: pm-grist / pm-pad).
Already fixed on the laptop (2026-11-01): names updated in ~/tools/pm-stack-backup.sh (original kept as pm-stack-backup.sh.orig-2026-11-01), and a rerun produced a verified archive for 2026-11-01 (manifest-checked by the script itself, sha256 d7a8881df26333269d4cb9b732b3daafbb5a6fdf8a7ee18a084d1baae7551833).
What remains worth doing:
- The script (or its scheduling service, code#1516) should treat "day dir exists but no verified archive" as a failure worth surfacing — an empty dir currently reads as a completed backup day in any casual listing.
- Container names are migration-fragile; resolving targets by label/project (or failing with the container list in the log) would have made this a one-day, self-explaining failure instead of a silent 3-day gap.
Acceptance criteria
- A backup run that ends without a verified archive is surfaced as a failure (alarm, non-zero service result, or filed issue) — an empty day-dir no longer reads as a completed backup day.
- Backup targets are resolved robustly against container renames (by label/project, or the run fails loudly with the actual container list in the log), so a compose-to-oci migration cannot silently break targeting again.
- A drill or log excerpt demonstrates the failure path firing on a simulated missing-container run.
Activitydezren39 commented on Nov 2, 2026 Intake review
Related: issue #3849 (the incident during which this gap was found; its Oct 29 kaneo.dump was the only logical fallback), issue #1516 (the backup scheduling service named in the body).
Notes: The immediate cause (stale container names in ~/tools/pm-stack-backup.sh) was already fixed on the laptop 2026-11-01 and a verified 2026-11-01 archive exists — what remains, and what this issue now tracks, is the silent-failure mode itself: set -e death after the day-dir is created, and migration-fragile container names. Already carried priority/normal; this pass adds kind/source/effort/status/app and the acceptance section.
Risks: backups that report success while empty are worse than no backups — any restore plan citing the Oct 30–Nov 1 window must treat those days as absent.
Suggested approach: make the script write the day-dir only after a verified archive exists (or rename it to a .failed marker on death), and resolve containers via compose/oci labels with a loud failure listing what was found.
— fleet monitor intake enrichment, 2026-11-02. added kind/bugSomething isn't working (prefixed form of the classic bug label) effort/sSmall: expected under 2 hours of work meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added task/triageQueue packet kind: verify, reproduce, and route this item on Nov 2, 2026developing-today commented on Nov 3, 2026 ContributorAuthor More actions agent-note:v1
state: triaged (coverage pass)
Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
Found via: coverage pass 2026-11-03 developing-today commented on Nov 8, 2026 ContributorAuthor More actions 🤖 Agent note · handed off
developing-today commented on Nov 9, 2026 ContributorAuthor More actions 🤖 Agent note · handed off
- Agent: repo queue worker, lane code-k (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-k run 2026-11-08; task 13695
- Found via: claimed task 13695 this shift; execution-lane assignment returned
opencode
- Task: task 13695 for issue pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) #3869 (small_fix). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
- Expectation: claimant session drives task 13695 to a terminal state. If the claim lease expires unbound, the task returns to the queue.
dezren39 commented on Nov 17, 2026 dezren39 commented on Nov 17, 2026 🤖 Agent note · done — root cause confirmed fixed; closing
- Agent: queue worker (repo-worker-code), Muse lane any-i
- Session / ID: task 19806 (follow-on of triage task 18273, whose named next step was: confirm the container-name fix, then close)
- Found via: queue claim
- Container names — confirmed fixed live (2026-11-17):
~/tools/pm-stack-backup.sh targets the current names (pm-stack-postgres-1, pm-grist, pm-pad — not the stale grist-grist-1 / pad-pad-1), per the 2026-11-01 laptop fix recorded in this issue. Operational proof: ~/backups/pm-stack/ day-dirs run unbroken through 2026-11-16, each with its pm-stack-<date>.tar.zst archive (the script manifest-verifies the tarball and exits 1 with VERIFY FAILED on mismatch).
- Acceptance 1 (empty day-dir surfaces as failure) — done: PR fix(backups): detect empty pm-stack day dirs (#3869) #7866 (MERGED 2026-11-14, 3d964f3) added the laptop-backups watchdog whose case (d) requires the newest pm-stack day dir to hold its named archive — an empty day-dir is now an alarm, not a completed day.
- Acceptance 3 (drill) — done: the watchdog's test (
nixos/home/laptop-backups-watchdog.test.sh) includes the pm-stack-empty-day case: a simulated empty day-dir produces a named failure citing the date and the expected archive name.
- Acceptance 2 — stated honestly: the script still resolves targets by (corrected) hardcoded names; label/project-based resolution was not implemented. What closes the issue's actual risk — "a migration cannot silently break targeting again" — is that a wrong name now fails the run non-zero (
set -euo pipefail) and the watchdog alarms on the missing archive within its freshness window. If Drew wants label-based resolution itself, it is a small follow-up on the laptop script; the silent 3-day gap this issue reported cannot recur unnoticed.
- Closing pm-stack backups silently produced empty day-dirs for 3 days (stale container names; no alarm) #3869 on this evidence; stale parked/assigned labels from the 2026-11-08 handoff are cleared with this note.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|