You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
baggageclaim: overlay driver Recover() stacks bind-mounts on each in-place restart → ENOSPC crash loop #9722
On workers using the overlay baggageclaim driver, every in-place process restart
(e.g. BOSH in-place update, monit restart) adds a full new layer of bind/overlay
mounts on top of the previous run's mounts without checking whether they already
exist. Over N restarts with V on-disk volumes, the mount table grows to N × V
entries. Once it hits the kernel per-mount-namespace limit the next mount(2) call
returns ENOSPC, Recover() aborts, and the worker crash-loops under monit, which
restarts it again and stacks another layer. Self-reinforcing.
Related: #7430 ("worker does not recover if volume is still mounted")
Steps to Reproduce
Run a Concourse worker with --baggageclaim-driver=overlay.
Execute several pipelines to create volumes under $CONCOURSE_WORK_DIR/volumes/live/.
Without destroying the VM, restart only the worker process: sudo /var/vcap/bosh/bin/monit restart worker
Repeat step 3 five or more times.
Observe: mount | grep "$CONCOURSE_WORK_DIR" | wc -l Each restart multiplies the count by (1 + previous).
Continue restarting until ENOSPC is returned; worker enters crash loop.
Possible RC:
Two defects in worker/baggageclaim/volume/driver/overlay_linux.go:
Defect 1 - bindMount() is not idempotent (line 200–218) - No check: is mountPath already mounted?
Defect 2 - Recover() does not roll back mounts on error (line 115–162)
Possible temporary workaround: use create-swap-delete bosh strategy instead, or recreate workers regularly
{"timestamp":"2026-09-17T11:27:05.773012935Z","level":"error","source":"worker","message":"worker.baggageclaim.failed-to-recover-volume-driver","data":{"error":"recover bind mount: no space left on device","session":"2"}}
{"timestamp":"2026-09-17T11:27:26.028301997Z","level":"error","source":"worker","message":"worker.baggageclaim.failed-to-recover-volume-driver","data":{"error":"recover bind mount: no space left on device","session":"2"}}
{"timestamp":"2026-09-17T11:27:46.180025145Z","level":"error","source":"worker","message":"worker.baggageclaim.failed-to-recover-volume-driver","data":{"error":"recover bind mount: no space left on device","session":"2"}}
{"timestamp":"2026-09-17T11:28:06.427830771Z","level":"error","source":"worker","message":"worker.baggageclaim.failed-to-recover-volume-driver","data":{"error":"recover bind mount: no space left on device","session":"2"}}
Activity
Kump3r commentedon Sep 17, 2026
Possible RC:
Two defects in
worker/baggageclaim/volume/driver/overlay_linux.go:Defect 1 - bindMount() is not idempotent (line 200–218) - No check: is mountPath already mounted?
Defect 2 - Recover() does not roll back mounts on error (line 115–162)
Possible temporary workaround: use
create-swap-deletebosh strategy instead, or recreate workers regularlykristianstanchev commentedon Sep 17, 2026
Example error message in production:
Kump3r commentedon Sep 18, 2026
Validated the fix by compiling the binary and switching on the bosh VM, with the same steps described above: