Open kf6kjg opened 1 year ago
So I found out more symptoms.
> NX EBUSY: resource busy or locked, rmdir '/app/packages/tsconfig-generator/dist'
build
target~ that is conflicting with the fact that my devcontainer set up is mounting a tmpfs
disk on the dist
folder. [EDIT: it's not just the build
target, it's any target even nonsense named targets.]~Workaround: change the target name to something that NX doesn't have default behaviors for.~ If there's a way to turn this off I'd prefer that.
Suggestion to fix: stop removing targeted folders and recreating them. Instead empty them. You don't know who has mounted what where.
This isn't a fix, but it'll help us solve this issue. I've done what you suggested, and exposed the IoError that gets swallowed up by fs_extra. Hopefully this will give us some more answers on what we can do for you
Thank you. We'd diagnosed the underlying cause by using an earlier version of nx: we got an error that the dist folder could not be deleted. We had mounted the dist folder with tmpfs. This makes the folder unable to be deleted, causing an error when nx tries to remove and recreate it.
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! ๐
Do you need further input? With the new diagnostics it should be easy to reproduce.
No, its something we still need to fix, as we're getting the same kind of errors in our e2es - randomly of course.
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. Many things may have changed within this time. The issue may have already been fixed or it may not be relevant anymore. If at this point, this is still an issue, please respond with updated information. It will be closed in 21 days if no further activity occurs. Thanks for being a part of the Nx community! ๐
Hopefully I'll be back to working on the monorepos in a couple months. Was working on converting a lot of repos, but other priorities took over.
Current Behavior
Executing
works fine. A second execution of
Results in
The verbose flag only shows the following additional data:
I'm executing from inside of a customized Docker Dev Container based off of
mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18-bullseye
using VSCode.Expected Behavior
That NX should recognize that all entries are cached and not report any errors.
If there are indeed IO errors, then it should report the real error, not just the wrapper error posted by rust fs_extra. This would help me diagnose the underlying problem.
GitHub Repo
No response
Steps to Reproduce
I'm not sure I have a generic way to reproduce this at this time. The root cause may be unique to me - this request is more to see if we can get the error message handling provide better information. It looks like the change to using this library was recent? https://github.com/nrwl/nx/pull/17638
Nx Report
Failure Logs
Operating System
Additional Information
No response