Repository navigation
Closed
Labels
area/infraInfrastructure, deployment, and operationsInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitiveImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Description
pm-dashboard-backup: offsite legs have landed nothing since 2026-10-28; runs failing at db-dump; watchdog can't see it
Found during the 2026-11-01 R2 review.
Evidence.
- R2
supabase-backups/dashboard/holds exactly 2 objects (326,065 B total): the2026-10-27and2026-10-28date dirs. The job declares a daily R2 leg with 30-day retention — nothing has landed in 4 days. - The 2026-11-01 run record (
~/backups/dashboard/.last-run.json):result: failed,failing_step: db-dump, all destinationsnot-attempted. Journal for 2026-11-01 04:42 shows the sameFAILED DB dump step failed. - Local dashboard day dirs (
~/backups/dashboard/2026-10-27…2026-11-01) all exist — the local dashboard-backup job works; the data is not lost, only the offsite copies are missing. laptop-backups-watchdogchecks the dashboard run record's age and timer triggers only — it never verifies offsite object presence, so an R2 leg that silently stops landing is invisible to it (the record existing and being fresh is not proof any destination succeeded; today's record is fresh AND failed).
Prior related audit: #1516 (2026-10-27 coverage audit) — this is the current, narrower failure: db-dump step failing + no offsite verification.
Fix shape. (1) Root-cause the db-dump failure in nixos/home/pm-dashboard-backup.sh (it has been failing since at least 2026-10-29's window — journal history is short, so treat 2026-10-28 as last-known-good from the R2 objects). (2) Extend the watchdog (or the job's own report) to assert the newest expected date dir exists on R2 after a successful run. (3) Backfill the missing 2026-10-29 → 2026-11-01 date dirs to R2 from the local archives once the dump step is fixed.
Acceptance criteria
- The db-dump failure in
nixos/home/pm-dashboard-backup.shis root-caused and fixed; a run completes all steps. - The daily R2 leg lands again: the newest expected date dir exists under
supabase-backups/dashboard/after a successful run. - The watchdog (or the job's own report) asserts offsite object presence, not just run-record freshness — a fresh-but-failed record now alarms.
- Missing date dirs 2026-10-29 → 2026-11-01 are backfilled to R2 from the local archives.
Metadata
Metadata
Assignees
Labels
area/infraInfrastructure, deployment, and operationsInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitiveImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this itemQueue packet kind: verify, reproduce, and route this item
Activity
dezren39 commentedon Nov 1, 2026
Intake review
Related: code issue #1516 (2026-10-27 backup coverage audit — this is the current, narrower failure it predicted room for).
Notes: Local dashboard backups are intact (day dirs 2026-10-27 → 2026-11-01 all exist); only the offsite copies are missing, so no data loss yet. Last-known-good on R2 is 2026-10-28.
Risks: The offsite gap widens daily until the dump step is fixed; a laptop loss in the window loses the dashboard history since 2026-10-28. Journal history is short, so the regression window (2026-10-28 → first failure) may not be directly observable — bisect by config change if the cause is not in the script's own logs.
Suggested approach: Reproduce the db-dump step manually first (it fails deterministically), fix, backfill, then add the R2-presence assertion to
laptop-backups-watchdogso this failure class can never be silent again.— fleet monitor intake enrichment, 2026-11-01 run (protocol §5). Acceptance criteria appended to the body where missing; labels normalized.
dezren39 commentedon Nov 3, 2026
agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7421 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03
4 remaining items
dezren39 commentedon Nov 4, 2026
🤖 Agent note · picked up
Merge pull request #5220 from developing-today/queue/8948-3914-watchd…
dezren39 commentedon Nov 4, 2026
🤖 Agent note · done
Evidence:
rclone lsd/ls r2bak:supabase-backups/dashboard/: dirs 2026-10-27..2026-11-03 all present; sizes match local exactly — 2026-10-29: 156352 B, 2026-10-30: 144040 B, 2026-10-31: 161681 B, 2026-11-01: 174899 B (pre-existing 2026-10-27: 131097 B, 2026-10-28: 194968 B, 2026-11-02: 8901393 B, 2026-11-03: 9013379 B).laptop-backups-watchdog.shsection (c) lists the R2 date dir for the record's date and alarms on absence even when the record says complete; the nix module enables it for the service. Tests: fulllaptop-backups-watchdog.test.shsuite passes including the planted-absence case; a live run with the check enabled against real R2 passed. The assertion takes effect on the laptop at the next home-configuration apply.