Skip to content

Don't error if the overlaysDir does not exist during orphan volume cleanup - #9528

Merged
taylorsilva merged 1 commit into
masterfrom
overlay-orphans-bug
Apr 13, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
overlay-orphans-bug

Conversation

@taylorsilva

Copy link
Copy Markdown
Member

Changes proposed by this PR

Error users see in worker logs:

"worker.baggageclaim.filesystem.failed-to-remove-orphaned-driver-resources","data":{"error":"read overlays dir: open /opt/concourse/worker/overlays: no such file or directory"

This error happens when volumes don't exist on the worker yet, which is what eventually creates the overlaysDir. If the worker doesn't have any volumes then it'll encounter this error during each volume-sweep that the web node initiates.

Also took the chance to have the worker make overlaysDir automatically if the overlay driver is being used.

happens when volumes don't exist on the worker yet, which is what
eventually creates the overlaysDir.

Also took the chance to just make the overlaysDir automatically, which
is what we eventually do when the driver is asked to make volumes via
os.MkdirAll() calls

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team April 12, 2026 20:49
@taylorsilva taylorsilva changed the title don't error if the overlaysDir does not exist during orphan volume cleanup Don't error if the overlaysDir does not exist during orphan volume cleanup Apr 12, 2026
@taylorsilva
taylorsilva merged commit b66e37e into master Apr 13, 2026
12 checks passed
@taylorsilva
taylorsilva deleted the overlay-orphans-bug branch April 13, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant