GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet-queue-backup: last night's export of the queue store did not run; its unit points into a lane's worktree that was removed · Issue #14302 · developing-today/code

fleet-queue-backup: last night's export of the queue store did not run; its unit points into a lane's worktree that was removed #14302

New issue
Copy link
New issue
Copy link
Done
Done
fleet-queue-backup: last night's export of the queue store did not run; its unit points into a lane's worktree that was removed#14302
Copy link
Labels
app/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours 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/agentCreated by an agent workerstatus/needs-triageNot yet triaged; needs a first look

Description

@dezren39
dezren39
opened on Nov 24, 2026
Issue body actions

Seen on amd, 2026-11-24. The queue store's nightly export to its D1 copy did not run last night. fleet-queue-backup-export.service is failed, and the PM console's Services screen lists it under "Failed".

Nov 24 02:33:21 amd systemd: Starting fleet-queue-backup: export the fleet-queue Turso store to its D1 copy...
Nov 24 02:33:21 amd env: bash: /home/user/code-8584-turso-d1/infra/fleet-queue-backup/systemd/run-export.sh: No such file or directory
Nov 24 02:33:21 amd systemd: fleet-queue-backup-export.service: Main process exited, code=exited, status=127/n/a

Its last run that finished was on 2026-11-23 at 09:54 CST. The timer next fires on 2026-11-25 at about 02:20 CST.

Cause. infra/fleet-queue-backup/systemd/install-units.sh writes the path of whatever checkout it is run from into the unit (__FQ_DIR__). It was run from a lane's worktree, ~/code-8584-turso-d1, and that worktree has since been removed. The unit now points at a script that is not there. fleet-queue-backup-d1-home.service is installed by the same script and should be looked at for the same thing.

This is the same fault the PM console had (#13833): a service on the laptop running out of a directory someone works in, so what it runs, or whether it runs at all, depends on what happens to that directory. The console's was put right in #14286 by giving it a copy of main that is its own, fetched from GitHub and laid out a release per commit (pm-stack/console/redeploy.sh), with its units pointing at a link to the release in service.

What done looks like.

  • The export runs again before the next night it is due, and that it ran is said here.
  • The units run from somewhere that is nobody's working directory and follows main, so removing a worktree cannot stop the backup: the console's way, or one copy of main kept for the laptop's units in common.
  • install-units.sh refuses to install from a lane's worktree (PR #14620).
  • A night with no export is said somewhere a person or the fleet will see it without opening the Services screen: the unit failing does notify through the PM console today ("A unit keeps failing"), and that should stay true for a timer that fires once a day.

Found while looking at the live Services screen. Tracker for the PM platform: #13504.


Generated by Claude Code

Acceptance criteria

  • fleet-queue-backup-export.service no longer points into a removable lane worktree: its unit references a durable checkout/path that survives worktree cleanup.
  • fleet-queue-backup-d1-home.service (installed by the same script) is checked for the same defect and fixed if present.
  • install-units.sh either refuses to install from a transient worktree or the installed path is a stable location, so the failure cannot recur silently.
  • The next scheduled export (timer ~02:20 CST) runs successfully and the D1 copy is refreshed; the PM console Services screen no longer lists the unit as failed.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    priority/highImportant and time-sensitive
    source/agentCreated by an agent worker
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5283

  3. dezren39
    added a commit that references this issue on Nov 24, 2026

    fix(backups): installer refuses a Git worktree (#14302)

    2dac0ba
  4. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    PR opened: #14620 makes install-units.sh reject linked Git worktrees before it creates unit files or calls systemd; the regression test and existing argument-contract test pass.

    Next slice: make both units run through a stable service-owned checkout/release that follows main, so removing a worktree cannot stop the backup.

  5. developing-today-fleet
    added
    effort/sSmall: expected under 2 hours of work
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  6. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Intake review

    Related: No merged PR resolves this (search hits PR #14304 and PR #6585 mention the number only incidentally). The backup mechanism itself is the fleet-queue Turso→D1 export described in the body.
    Notes: Well-evidenced bug: journal excerpt, root cause (install-units.sh baked a lane worktree path into the unit via __FQ_DIR__), and last-good run (2026-11-23 09:54 CST) are all in the body. Priority/high already set by the filer.
    Risks: Tonight's timer fires ~02:20 CST 2026-11-25 and will fail again until the unit is repointed; each missed night widens the D1 backup gap.
    Suggested approach: Repoint/reinstall the units from the durable primary checkout, harden install-units.sh against transient-worktree installs, then verify one successful export run.

    — Fleet monitor intake, 2026-11-24 run. Labels normalised; meta/enriched applied.

  7. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    Lane code-j: merged #14620 at 8aab8b2 after the linked-worktree and argument checks passed. Live installation then exposed a positive-path regression: Git prints git-dir absolute and common-dir relative when invoked below the checkout root, so the guard also refuses dedicated clones. PR #14752 fixes that and adds a positive test with spaces in the checkout path; all three narrow shell tests pass on amd at d071457.

    Created dedicated sparse clone of main at ~/.local/share/fleet-queue-backup/repo. It is NOT installed yet: export service still points at the removed lane worktree and remains failed. D1-home units are absent, and the required home token is absent, so do not enable that weekly leg blindly.

    Next slice: after #14752, make the service-owned checkout follow main, repoint export safely, run and verify a full export, and record the timer/registry state. No claim remains active for this shortlist work; branch fix/14302-worktree-check-canonical is pushed.

  8. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Lane IW-309 (archer) claiming the remaining slice of this issue, per lane code-j's handoff above ("No claim remains active for this shortlist work"):

    1. Confirm PR fix(backups): accept dedicated checkouts in installer guard #14752 (install-guard positive-path fix) is merged.
    2. Make the service-owned checkout at ~/.local/share/fleet-queue-backup/repo follow main, and repoint the export unit at it via install-units.sh (the unit currently points at ~/git/code after this morning's emergency repair).
    3. Run a full export and verify the D1 copy refreshes.
    4. Check the d1-home leg's state (token presence) — not enabling it blindly if the token is absent.
    5. Record the timer/registry state here.
  9. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    #14302 completion record — lane IW-309 (archer), 2026-11-25. Picking up from lane code-j's handoff ("no claim remains active"): the fix is landed and installed; the issue stays open for two time-based proofs named at the end.

    What landed

    • PR #14752 merged (40f495499d22) — the installer's worktree guard now compares absolute paths for both git dirs, so dedicated checkouts (including paths with spaces) are accepted and linked worktrees still refused. With fix(backups): refuse installing units from Git worktrees #14620, acceptance criterion 3 is met. All three installer tests pass on amd.
    • PR #15025 merged (8fcb0f6c5bc5) — both backup services gain ExecStartPre=update-checkout.sh: before every run the service-owned checkout is fetched and reset to origin/main (a dirty tree refuses loudly; a fetch failure warns and runs the current tree; the reset runs in an argv-resident child so it cannot garble itself). New hermetic test covers advance + dirty-refusal. Full infra/fleet-queue-backup suite passes on amd: 4 shell tests + 4 python tests, all green. (Route note: hermetic tests with a stub systemctl and local git remotes, run in the laptop worktree — the Actions exec route has no clone credentials for this repo.)

    Live install (verified 2026-11-25 ~04:31 CST)

    • Units reinstalled by running install-units.sh from the dedicated service-owned checkout ~/.local/share/fleet-queue-backup/repo. Both installed units' ExecStartPre + ExecStart now point inside that checkout — no unit references a lane worktree or a working directory (criteria 1 and 2). Timers armed: export next fires Thu 2026-11-26 02:24 CST, d1-home Sun 2026-11-29 03:43 CST.
    • Follow-main proven live: at the 05:11 CST run start, the updater advanced the checkout 8fcb0f6c5 → 79b23cd16 on its own (journal line: fleet-queue-backup: checkout now at 79b23cd16).

    The export itself (criterion 4)

    • The D1 copy is refreshed and verified: the emergency-repair run (03:51–04:17 CST, from ~/git/code) exported 30 tables / 685,095 rows; read-back counts match (journal, fleet-queue-backup-export.service).
    • The first run on the final installed config (04:31 CST) failed at the D1 import after 37 min — not from the install: the exporter code is byte-identical between the two checkouts (verified by diff), and the error is table github_mirror_issues has 16 columns but 17 values were supplied. Cause: build_dump captures CREATE sql once, then reads the live store for ~30 min; a column added to github_mirror_issues mid-read corrupts the dump. Filed as #15081 with fix shapes and acceptance.
    • A re-run on the final config started 05:11 CST and is still in its read phase at this writing (the store is under heavy live write load today; the unit's bound is 2h, 07:11 CST). Its result, plus the first scheduled fire Thu 02:24 CST, are the two remaining proofs for criterion 4's letter — everything else in the acceptance list is verified above.

    d1-home leg. Repointed like the export leg. Its own blocker is different: the home token turso.d1-backup-fleet-queue-backup-rw-token is verified absent from the secrets store (by name, fleet secrets list, 257 entries), so its first fire will fail visibly until #13458 provisions the home and the token. Recorded on #13458 (comment 7159823051). Not enabled blindly, not silenced either — the timer is armed and the failure will surface through the unit-failure notification.

  10. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    Hourly lane audit (xaltha, 2026-11-25 ~16:45 CST) — no duplicate slice taken.

    Claim-check before work: criteria 1–3 are already landed and live-installed per Archer lane IW-309's completion record above — PR #14620 + PR #14752 (installer refuses linked worktrees, accepts dedicated checkouts), PR #15025 (both units run ExecStartPre=update-checkout.sh from the service-owned checkout at ~/.local/share/fleet-queue-backup/repo and follow main). No open PR or branch for this issue remains.

    The blocker Archer filed for criterion 4, #15081 (mid-dump DDL corrupting the D1 import), is now CLOSED: PR #15120 merged 2026-11-25. Because the installed units update their checkout to origin/main before every run, the next scheduled export will be the first timer fire on both the follow-main install and the #15081 fix together.

    What remains is time-based only, not a code slice: the scheduled proof — export timer next fires Thu 2026-11-26 02:24 CST. This seat cannot verify the live unit result this run (queue/shell legs to the laptop are down, tunnel EAGAIN), so the issue stays open for that fire's result to be recorded here. d1-home leg remains as Archer recorded: timer armed, home token absent pending #13458.

  11. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    MemberAuthor
    More actions

    #14302 close-out — xaltha, 2026-11-26 ~06:50 CST. The scheduled proof has landed; all acceptance criteria are met.

    Claim-check this run: criteria 1–3 were already landed and live-installed (Archer IW-309 record, 2026-11-25) — PR #14620 + PR #14752 (install-units.sh refuses linked worktrees, accepts dedicated checkouts) and PR #15025 (both units run ExecStartPre=update-checkout.sh from the service-owned checkout). The only remainder was the time-based proof for criterion 4, and the export-dump blocker #15081 closed 2026-11-25 via PR #15120. No open PR for this issue remained.

    Scheduled fire verified live on amd (via fleet shell, this run):

    • fleet-queue-backup-export.timer last fired Thu 2026-11-26 03:40:36 CST; next fires Fri 2026-11-27 02:38:18 CST.
    • The run auto-advanced the service-owned checkout to 92195c937 (fleet-queue-backup: checkout now at 92195c937); verified that checkout contains the fleet-queue-backup: export dump is not schema-consistent — a mid-dump DDL change on the live queue store corrupts the import #15081 fix (1c145940f0bd is an ancestor) and its tree is clean.
    • Service finished 04:17:50 CST, Main PID exited 0/SUCCESS: exported 34 tables / 689596 rows to D1 fleet-queue-backup at 2026-11-26T09:40:58Z; read-back counts match.
    • systemctl --user --failed does not list fleet-queue-backup-export (or d1-home) — the unit is inactive/dead after success, not failed.

    Units: both fleet-queue-backup-export.service and fleet-queue-backup-d1-home.service have ExecStartPre + ExecStart inside ~/.local/share/fleet-queue-backup/repo — no lane worktree or working directory (criteria 1 and 2).

    d1-home leg (unchanged, not a blocker for this issue): timer armed, next Sun 2026-11-29 03:47:23 CST; its home token remains absent pending #13458, as recorded there — its first fire will surface visibly through the unit-failure notification if the token is still missing.

    Closing as completed: the backup runs again on schedule, from a durable follow-main checkout, and a worktree removal can no longer stop it.

  12. dezren39
    closed this as completedon Nov 26, 2026
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/fleetpkgs/fleet multicall binary + platform crateseffort/sSmall: expected under 2 hours 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/agentCreated by an agent workerstatus/needs-triageNot yet triaged; needs a first look

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.