swarm_runner: the nightly prune targets the system docker daemon, not the dead rootless socket (idss #2076) #26

Merged
ben merged 1 commit from fix/swarm-prune-system-socket into main 2026-11-16 22:45:52 +00:00
Owner

Fixes the prune half of Matou/idss#2076.

/etc/cron.d/swarm-prune hardcodes DOCKER_HOST=unix:///run/user/{{ swarm_runner_uid }}/docker.sock. Since the 2026-08-12 rootful cutover that socket doesn't exist — the role's own runner-service-fence.conf.j2 already says jobs use the SYSTEM daemon — so every nightly prune fails to connect and reclaims 0B (/home/swarm/prune.log on elitebook-03 is all failed to connect … /run/user/1500/docker.sock). elitebook-03's / reached 100% and every job there died at Set up job with ENOSPC.

The swarm user is in the docker group (docker system df works as swarm on elitebook-03 via the default socket: 26.8 GB images, 18.5 GB reclaimable; 14.3 GB build cache), so dropping DOCKER_HOST points the prune at the jobs' daemon.

Needs a play run with become on elitebook-03 to take effect. That run will also apply the runner-unit memory fence this role already carries on main (6G/8G, #20) — elitebook-03 is still on 2G/3G, i.e. it has not had this role applied since that PR.

Not syntax-checked with ansible-playbook here (no vault password in the worktree); the YAML parses.

🤖 Generated with Claude Code

Fixes the prune half of Matou/idss#2076. `/etc/cron.d/swarm-prune` hardcodes `DOCKER_HOST=unix:///run/user/{{ swarm_runner_uid }}/docker.sock`. Since the 2026-08-12 rootful cutover that socket doesn't exist — the role's own `runner-service-fence.conf.j2` already says jobs use the SYSTEM daemon — so every nightly prune fails to connect and reclaims 0B (`/home/swarm/prune.log` on elitebook-03 is all `failed to connect … /run/user/1500/docker.sock`). elitebook-03's `/` reached 100% and every job there died at Set up job with ENOSPC. The swarm user is in the `docker` group (`docker system df` works as swarm on elitebook-03 via the default socket: 26.8 GB images, 18.5 GB reclaimable; 14.3 GB build cache), so dropping `DOCKER_HOST` points the prune at the jobs' daemon. **Needs a play run with become on elitebook-03 to take effect.** That run will also apply the runner-unit memory fence this role already carries on main (6G/8G, #20) — elitebook-03 is still on 2G/3G, i.e. it has not had this role applied since that PR. Not syntax-checked with ansible-playbook here (no vault password in the worktree); the YAML parses. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
/etc/cron.d/swarm-prune hardcoded DOCKER_HOST=unix:///run/user/<uid>/docker.sock.
Since the 2026-08-12 rootful cutover that socket does not exist, so every
nightly run failed to connect and reclaimed 0B; elitebook-03's / reached
100% and every job landing there died at Set up job (ENOSPC). The swarm
user is in the docker group, so the default socket is the jobs' daemon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ben merged commit 3a11b08132 into main 2026-11-16 22:45:52 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/matou-distributed-servers!26
No description provided.