Skip to content

fix: a fatal error with docker: EBUSY: resource busy or locked, rmdir 'public' - #2139

Closed
adoyle-h wants to merge 1 commit into
jackyzha0:v4from
adoyle-h:fix/rmdir-public-locked
Closed

fix: a fatal error with docker: EBUSY: resource busy or locked, rmdir 'public'#2139
adoyle-h wants to merge 1 commit into
jackyzha0:v4from
adoyle-h:fix/rmdir-public-locked

Conversation

@adoyle-h

Copy link
Copy Markdown

Fixes #2138

@github-actions

github-actions Bot commented Sep 23, 2025

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 7356245

@adoyle-h

Copy link
Copy Markdown
Author

@jackyzha0 Please review this PR. THX.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a Docker-related EBUSY error that occurs when trying to remove the 'public' directory during the build process. The error happens because Docker has the directory locked or busy.

  • Changes the directory removal approach to remove contents instead of the directory itself
  • Modifies the rm call to use a glob pattern targeting directory contents rather than the directory root

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread quartz/build.ts Outdated
@adoyle-h
adoyle-h force-pushed the fix/rmdir-public-locked branch 3 times, most recently from 04affc4 to ebe0760 Compare October 18, 2025 09:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread quartz/build.ts
@McCio

McCio commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

@saberzero1 is this planned to be merged?

@miguelsaliba

Copy link
Copy Markdown

I had the same issue and this PR is working great for me. Thank you!

@aarnphm

aarnphm commented May 25, 2026

Copy link
Copy Markdown
Collaborator

v5 has been released. Feel free to try it out and reopen this PR if it's still relevant.

@aarnphm aarnphm closed this May 25, 2026
@miguelsaliba

Copy link
Copy Markdown

I tested this on v5 and the issue is still there. The relevant line of code that this PR fixes remains unchanged in v5. It is still trying to delete the public directory.

@boku42

boku42 commented Jul 25, 2026

Copy link
Copy Markdown

Dear all, why was this not merged? I am facing the same issue. thanks

@McCio

McCio commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

FYI I reopened this for v5: #2486

@boku42

boku42 commented Jul 25, 2026

Copy link
Copy Markdown

FYI I reopened this for v5: #2486

thank you Marco!

@adoyle-h

Copy link
Copy Markdown
Author

Well. It's a so inefficient review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exiting Quartz due to a fatal error: EBUSY: resource busy or locked, rmdir 'public'

7 participants