Skip to content

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

Backlog

Description

@dezren39

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.
  • 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

Activity

  1. added
    kind/bug
    priority/high
    source/agent
    app/fleet
    on Nov 24, 2026
  2. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
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/fleetkind/bugpriority/highsource/agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions