-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rm: cannot remove 'target': Device or resource busy #5007
Comments
This is a file system permission issue. It seems you can around it by running:
|
Currently we map |
Yes, this seems like good advice. For context, we also map this as a volume: prql/.devcontainer/devcontainer.json Lines 30 to 34 in 62c7cc3
...though only run prql/.devcontainer/devcontainer.json Line 42 in 62c7cc3
For more context, we use a non-root user: https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user. (I've traditionally used a root user in all my docker containers, but ofc trust @eitsupi 's judgement here — and possibly this is standard for dev containers. I don't think it's PRQL that is setting the user to |
@max-sixty @eitsupi @vanillajonathan Partial Answer: See #5018. Changing ownership on /usr/local/cargo/registry seems to have solved the initial problem (I can now build the Playground, Book, and Website in a Dev Container) But Thanks for your help |
Update: This "Device or resource busy" message now appears on all Dev Container platforms: My Intel macbook, my M2 Mac mini, and a Win11 box. |
@richb-hanover Maybe you need to set ownership of more than just |
Me neither. Here's the state of the file system after removing all containers, etc. then rebuilding the Dev Container from scratch. (This incorporates the PR that sets the owner on /usr/local/cargo/registry) Do any of the other permissions need to be tweaked? Thanks.
|
I don't know, but I cannot delete the the I clicked on the rust-analyzer in the VS Code status bar and it could not write to Looking at https://containers.dev/implementors/json_reference/#lifecycle-scripts I see that there exists |
Closing because this no longer causes problems. The fix in #5018 seems to have solved my problems |
What happened?
This is a refined report from #4974. It appears that the problem with my M2 Mac is that something is wrong with the file system in the Dev Container, and that files/directories cannot be modified.
I have removed all containers, images, and volumes for PRQL and the caches to rebuild the entire Dev Container. I don't intentionally have any external processes running on the Mac that would occupy the Dev Container file system.
@max-sixty @eitsupi @vanillajonathan Here's the evidence I have. What else could I collect? Thanks.
wasm-pack is not installed, running
cargo install wasm-pack
gives this error:error: failed to create directory /usr/local/cargo/registry/cache/index.crates.io-6f17d22bba15001f
task web:run-book
gives this error:cd /workspaces/prql; rm -rf target
gives this error:PRQL input
SQL output
N/A
Expected SQL output
N/A
MVCE confirmation
Anything else?
No response
The text was updated successfully, but these errors were encountered: