Skip to content

pm-dashboard-backup: offsite legs landed nothing since 2026-10-28; runs failing at db-dump; watchdog cannot see offsite absence #3914

Closed

Description

@dezren39

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): the 2026-10-27 and 2026-10-28 date 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 destinations not-attempted. Journal for 2026-11-01 04:42 shows the same FAILED 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-watchdog checks 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.sh is 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.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    effort/mMedium: expected under 1 day of work
    area/infraInfrastructure, deployment, and operations
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    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-watchdog so 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.

  3. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  4. dezren39 commented on Nov 3, 2026

    @dezren39
    MemberAuthor

    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

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 4, 2026
  6. 4 remaining items

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  8. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  9. added a commit that references this issue on Nov 4, 2026
  10. dezren39 commented on Nov 4, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

    Evidence:

    • Backfill: the four missing date dirs were copied from the laptop local archives via the job's own rclone env-remote route. Fresh 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).
    • Runs complete again: today's live watchdog run reads the current record (date 2026-11-03, result=complete) fresh within 26h — the db-dump failure no longer blocks runs (root cause of the 2026-11-03 04:31 timer failure remains unproven, per task 7421's note: the journal retains no entries; if a timer run fails again, capture failing_step from .last-run.json before any manual re-run).
    • Watchdog asserts offsite presence: PR fix(backups): watchdog asserts dashboard offsite presence on R2 (#3914) #5220 merged — laptop-backups-watchdog.sh section (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: full laptop-backups-watchdog.test.sh suite 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/infraInfrastructure, deployment, and operationseffort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions