-
Notifications
You must be signed in to change notification settings - Fork 832
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
file operations fail randomly when many (thousands) files are copied #2780
Comments
I wonder if this is related to bug #2712 which has, as its penultimate comment just now, from DHowett-MSFT: "A few members of my team (myself, @rajsesh, @yiyang-msft) are seeing this as well, on builds in the 1705x-1706x range." |
indeed, that very much looks like the same problem, thanks for pointing to that issue! |
I just hit this after switching to the Insiders build for the first time (17074). Is there a workaround for this? :/ Worked fine (even though slow) before. |
not really... as it seems to happen rather randomly you might be lucky just running the same command again. also helping sometimes (but not always): a) reduce/remove parallelism b) use a non-DrvFs storage location |
Thank you for the quick response. Damn :( I wonder what to do now 🤔 |
Sadly nothing reproducible. It just happens on every "bigger" project where I try it, but always on different files and commands (scandir, copyfile, and so on). :( |
Strange... I tried this workaround and now installation finishes successfully and a |
I also get this problem with large yarn installs. Unfortunately it's also with proprietary projects but I'm happy to spend the time to track it down if someone wants to give directions.
|
all my use cases are fixed in the 176xx builds. |
Facing the same issue as @tmcdonnell87 on Windows build 17134.285 |
@levrik It's frustrating for sure, but it will usually work with enough repeated attempts. The update that fixes this is supposed to hit the stable channel within a month I believe. |
I'm still getting reasonably regular repros on 17763.134 when running (npm version: 6.4.1)
Has anyone else seen this on versions >= 176xx? |
^--- that's #1529 |
Ahh cheers @therealkenc! (For anyone else who also got here incorrectly - this is a good comment by therealkenc explaining the issue elsewhere: #14 (comment) ) |
EDIT: Ah no, it looks like you are right - whilst it appears as ENOENT, this npm issue is perhaps hiding the real reason: |
Yep. You can confirm by doing an |
I am still facing the same issue, this should be reopened. |
starting in recent builds, actions involving many (possibly concurrent) file create/copy/move IO randomly fail.
ver
at a Windows Command Prompt)17040 + 17063
observed in the following cases:
composer install
on large projects (f.e. Magento 2.2, involves 42'000 files)bin/magento setup:static-content:deploy
(recompiles magento static files, deletes & generates 19'000 files)npm install
yarn install
(proprietary project, involves 20'000 files)in all cases the errors are looking similar, but happen randomly (each time with different files/folders) and not always. in all cases, the files actually exist, despite what the error messages say. a 2nd run of the same command sometimes succeeds, sometimes fails at a different place. I've never seen failure at the same place.
some examples:
the error also consistently happens when all actions are done on lxfs (i.e. it is not DrvFs related):
disabling windows defender does not make a difference.
/mnt/t
is a veracrypt container, but this has worked flawlessly on earlier builds. I cannot remember the first build that showed these errors, but they did happen in the current and last insider fast builds.it seems to be related to some concurrency issues - for
bin/magento setup:static-content:deploy
one can specify the parallel jobs to use. the more parallel jobs, the higher the chances the error happens: with 6 parallel jobs almost always, with 1 job "never" (at least never observed in 10 test-runs).the errors are not happening on real metal ubuntu.
files should be copied/created :-)
some_command
is failing, then runstrace -o some_command.strace -f some_command some_args
, and link the contents ofsome_command.strace
in a gist here)I have not yet managed to catch this in a strace: when using strace, everything is slowed down significantly and all file actions succeed. any pointers on how to narrow this down or even produce a reliable repo are appreciated!using lxfs instead of DrvFs I was able to catch the following error in strace:unfortunately it's not showing anything interesting:
full strace
The text was updated successfully, but these errors were encountered: