Skip to content

Fleet queue backup failing silently #10296

Not planned
Not planned

Description

@dezren39

Found by the 2026-11-14 whole-PM-stack backup/DR audit (verdict issue filed same day; routine #1723).

Observed (2026-11-14, laptop amd):

  • supabase-backup.service (twice-daily pg_dump of Supabase project muse-dev2 — which holds the fleet queue in the agent schema — to R2 bucket supabase-backups, prefix pg/muse-dev2) failed today: 2026-11-14 04:49 CST, pg_dump: error: Dumping the contents of table "events" failed: PQgetCopyData() failed … SSL connection has been closed unexpectedly, exit 1.
  • The R2 manifest read back via supabase_backup.py --list shows the newest successful dump is 2026-11-13T10:55Z (44,215,425 bytes, sha256 dbdc07f7…) — i.e. ~30h old at audit time against a 12h cadence; at least two scheduled runs produced nothing.
  • journalctl shows only the 04:45 run on 2026-11-14 (no 16:42-equivalent success on 11-13 evening in the window checked), and no watchdog covers this job: laptop-backups-watchdog checks only dashboard + repo-archive, and the run's own {"status":"error"} JSON goes only to the journal. A stopped fleet-queue backup is currently silent.

Note the dump is full-database (pgdump transport ignores the schema list), so when it succeeds it does cover the fleet queue agent schema, plus every other fleet schema. RPO target for the queue/aggregator class is 15 min per Drew's 2026-11-03 #1258 ruling — a twice-daily dump never met that even when it worked; that tension belongs to #3989/#6815, this issue is about the failing + silent routine.

Fix shape: diagnose the pooler SSL drop on agent.events (retry/resume or transport change), and wire this job's last-success into a freshness check that names it (extend the laptop-backups watchdog or equivalent).

Acceptance: two consecutive scheduled runs succeed (manifest shows fresh entries ≤12h apart) and a simulated stall is named by the watchdog.

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent triage (openchamber scheduled lane, code-g): the failing job is supabase-backup.service on the laptop (systemd), not a GitHub workflow in this repo (gh run list --workflow supabase-backup finds none). The fix (pooler SSL drop on agent.events, and a freshness check in the laptop-backups watchdog) lives outside the repo. Leaving open for the laptop/backup owner; no code change made here.

  3. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Triage — queue task 20552, openchamber scheduled lane (oc-code-03), 2026-11-18.

    Fresh GitHub state (08:50 UTC): #10296 OPEN, no labels, no native blockers.

    Verdict: triaged, out of repo scope. The failing unit is supabase-backup.service on the laptop (systemd), plus a missing freshness check in the laptop-backups watchdog. Neither lives in developing-today/code, so no follow-on packet is enqueued here. Routed to the laptop/backup owner, as recorded in the 2026-11-17 note above.

  4. removed their assignment
    on Nov 20, 2026
  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 — oc-code-02 (task 22015). Verified: #10296 OPEN, no labels. On this laptop the unit supabase-backup.service does not exist (systemctl reports not found), so the failure is not reproducible here. The owner of the laptop backup units was routed in prior notes; no repo follow-on. Issue stays open for that owner.

  6. dezren39 commented on Nov 25, 2026

    @dezren39
    MemberAuthor

    oc-code-04 design follow-up from #14964: current audit doc/2026-11-25_audit_backup-paths.md reports the Turso fleet-queue → D1 fleet-queue-backup export metadata stale since 2026-11-23T15:27:30Z and attributes it to this silent-failure issue. #14964 proposes hosting this exporter and independently alerting on staleness/missed runs. The original #10296 body is about Supabase pg_dump agent.events; preserve that history/acceptance and add the current D1 leg additively—do not treat hosted scheduling as root-cause diagnosis or close either gap without its evidence. Design: https://github.com/developing-today/code/blob/oc-code-04/14964-backup-plane-design/doc/2026-11-25_design_backup-plane-hosted-recovery/main.md

  7. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Triage verdict (lane 5, queue task 24686, 2026-11-26): still open; the live gap has moved to CF-3 (#14943).

    Fresh read-only check on the laptop's user units today:

    • fleet-queue-backup-export.timer (Turso fleet-queue to D1) still fires, but a retired.conf drop-in now skips the service, noting that the fleet queue lives in D1 since 2026-11-26. Its last run was 2026-11-26 03:40 CST.
    • The D1-to-D1 replacement units declared under CF-3 (fleet-queue-backup-export-d1.*, registry row dated 2026-11-26) are not installed on the laptop: systemctl --user list-unit-files shows only the Turso export and the D1-home units.
    • The original Supabase supabase-backup.timer was retired 2026-11-18 (doc/fleet-schedule-registry.md).

    So today the live queue store (D1 fleet-queue) has no scheduled export to fleet-queue-backup. That is the current form of this silent gap, and its fix is CF-3's activation in #14943 (code merged in PR #15564; live proof still pending there). Nothing was changed on the laptop by this check. This issue should close once CF-3's D1 export runs and its staleness alarm lands.


    Generated by Claude Code

  8. added
    stray-work
    stray/needs-parent
    priority/high
    on Nov 27, 2026
  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)
    • no concrete file/module pointers in the body

    FIXES I APPLIED:

    • none needed

    PICKUP NOTES (added by this census so the next agent can resolve this cold):

    • Pickup: start from the title scope — "Fleet queue backup failing silently". Locate the owning code by searching the repo (~/workspace/gh-shim-work/code) for the title's key terms (Fleet queue backup failing silently); the issue body/comments are the spec of record.
    • Prior PR references in this thread: CF-3/CF-9/CF-10 (#14866): D1 queue backup retarget, laptop follow-main timer, pm-notify deployed record #15564 — read them before writing code; the remaining work is whatever they did not land.
    • Acceptance: the behaviour described in the title/body demonstrably works (test or live check named in a closing comment), with any remainder filed as a follow-up issue.

    REMAINS: nothing — ready for pickup

  10. added
    kind/bug
    app/fleet
    effort/m
    status/needs-triage
    on Nov 29, 2026
  11. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 residual pass. A parallel census note (Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.

    Residual gaps found: no kind/* label (a parallel census note today left it for the picking-up lane; set here from the title/body); no app/*/area/* label although the owning project is clear from the title/body; no effort/* label; no lifecycle label (status/*/queue/*/work/*) at all.

    Actions taken: labels added: kind/bug, app/fleet, effort/m, status/needs-triage.

    Priority: priority/high retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · Felix lane 0640-DN claiming the premise disposition of #10296 (2026-11-29)

    Re-verifying the premise firsthand (the named job's retirement, the current queue-backup stack, and whether any watchdog covers its freshness) and dispositioning: dead half retired with evidence, living remainder filed as its own scoped follow-up. No other lane holds this — last activity is today's census passes, which rechecked without dispositioning.

  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Premise verdict + disposition — Felix lane 0640-DN, 2026-11-29: the named job is retired; the living remainder is filed as #16990; this issue is closed as superseded.

    Verified firsthand today:

    Closed as superseded on this evidence chain (the close landed just before this comment; the original paired post was lost to a pipe-masked timeout and is re-posted here so the record is complete). Priority validation: priority/high was correct for a silently-failing queue backup; the follow-up #16990 carries priority/high for the same reason. The RPO tension noted in the body belongs to #3989/#6815 and is untouched by this disposition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/fleeteffort/mkind/bugpriority/highstatus/needs-triagestray-workstray/needs-parent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions