GeezerVison is showing github.com — fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle · Issue #903 · developing-today/code
fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle #903Labels app/aggregatorPackage/app: aggregator (pm-stack in this repo)area/infraInfrastructure, deployment, and operationskind/bugSomething isn't working (prefixed form of the classic bug label) DescriptionFound during the #899 audit (2026-10-25): after the sandbox recycled (~16:32Z), the fleet-feed-collector.service/.timer units were absent (systemctl reported the service not found) and the fleet feed went stale ~40 min, because the units live only in /etc/systemd/system from an imperative install out of pm-stack/aggregator/systemd/.
Units were reinstalled by hand this time (cp from the pm-feed clone + daemon-reload + enable --now fleet-feed-collector.timer) and the feed is flowing again.
Fix direction: install the units from a path that survives recycles — e.g. have the sandbox boot/init flow (or the aggregator's own install tooling) copy them from the pm-feed clone on boot, the way opencode-serve is restored — and/or make the collector's freshness observable (the aggregator already ages the feed in provenance; a stale-feed alert could ride the orchestration pass). Acceptance: recycle the sandbox and observe the timer active and the feed fresh within one cadence, with no manual step. Activitydeveloping-today commented on Oct 25, 2026 dezren39 commented on Oct 25, 2026 Fixed and verified — closing.
Root cause. The collector units existed only as files in /etc/systemd/system, installed imperatively. A sandbox recycle wipes /etc, and nothing reinstalled them: ~/tools/init.sh has restore blocks for the fleet units and the airthings monitor, but the collector was never added to one. Each recycle therefore silently killed the ~5-min feed cadence until a human noticed and pushed by hand. (The systemctl --user failure the slice-3 builder saw is a red herring: these are system units, and this environment has no user bus.)
Diagnosis on the current boot (boot e8cc63c0, init SUCCESS 22:46Z — itself a post-recycle boot): fleet-feed-collector.{service,timer} = not-found, while mcpx/opencode-serve/init-ensure/fleet-fetch were all present and active. The laptop aggregator was still serving the 22:24Z manual push.
Fix.
- PR #924 (merged, 45dea33): new
pm-stack/aggregator/scripts/install-collector-units.sh — idempotent installer in the fleet-units pattern: copies systemd/fleet-feed-collector.{service,timer} from the package into /etc/systemd/system, daemon-reloads, enable --nows the timer, and exits non-zero if the timer does not come up active. README documents the restore path.
~/tools/init.sh (hatch-personal 16c6db3): new restore block — on boot, if fleet-feed-collector.timer is not active, run the installer from the pm-feed clone (~/git/pm-feed, now synced to the merged PR).
Verification (live, this boot).
- Installer run → timer
active/enabled; first tick fired immediately.
- Cadence self-sustained with no manual step: runs started 22:53:38Z, 23:00:24Z, 23:05:27Z, 23:14:04Z; laptop feed generatedAt advanced 22:24:13Z → 22:53:39Z → 23:00:24Z → 23:05:28Z → 23:14:04Z, each with
dns (40 domains) + registry sections; /api/dns.json and /api/registry.json return 200 on the laptop.
- Simulated recycle: stopped the timer, deleted both unit files + the
timers.target.wants symlink, daemon-reloaded (timer = not-found), then ran init.sh's restore block verbatim → units reinstalled, timer active, tick fired, fresh feed written (FAILURES=0).
One environmental note: pushes over the tailnet proxy route took ~3–6 min per run during verification (route contention from other transfers), so wall-clock cadence stretched past 5 min at times; collection itself writes promptly and every push completed. Not part of this issue's failure mode.
MetadataMetadataapp/aggregatorPackage/app: aggregator (pm-stack in this repo)area/infraInfrastructure, deployment, and operationskind/bugSomething isn't working (prefixed form of the classic bug label) DevelopmentNo branches or pull requestsIssue actions
|