-
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
yarn install
fails inside /mnt with EINVAL for lstat during step 3
#2448
Comments
My current workaround is to create a node_modules directory outside /mnt, then |
Related issue in the Yarn repo: yarnpkg/yarn#4188 |
Also getting this when adding a dependency from the command line. I can install packages successfully using npm, so am I correct in thinking that this is a Yarn issue, not a WSL one? I'm on 16281.rs3 fwiw. |
It's a WSL issue with the recent file system later changes |
It fails on the new build of windows. I reverted back to 16251.rs3 and yarn works fine again |
Adding @SvenGroot who is taking a look at this. Also, marking it as a bug. |
Also fails on 16278.rs3, npm works fine |
This looks like it's the same error in React Native's packager (roughly equivalent to webpack --watch):
This one is pretty intermittent though. |
We have been trying to get to the bottom of this issue, but the bug seems very evasive. Every time we try to gather an strace or put it under the debugger, it does not repro. Seems like some kind of race condition. If someone is able to get a strace of the failing command, that might shed some light. |
I attempted to create a react app using yarn https://github.com/AndyGauge/yarn-debug/blob/master/yarn-fail.zip |
When I run |
|
I was able to reproduce locally. You can download a zip of all of the trace files at https://www.dropbox.com/s/oy78n0qvtqqyxwb/yarn_trace.zip?dl=0 |
If it helps, for me the problem seems to be resolved in 16288.1. |
No the original issue has absolutely NOT been resolved in latest insider (non skip-ahead) build. |
I was able to reproduce this issue with strace on. |
Thanks for all the input. We've been able to determine the root cause of this issue and are working on a fix. |
You made my (our) day! Keep up the good work. |
See microsoft/WSL#2522, microsoft/WSL#2448 (cherry picked from commit 56c041b)
The news of the cause being determined is very, very welcome. I shall be glad to test it. Maybe the fix is in build 16296, which just landed here? |
I was upgraded to 16296 yesterday and still had to work around the issue by moving across file systems to run |
We're still working on the fix, so it's not available yet. I'll update this thread once the fix becomes available. |
This issue has annoyed me for a month, expecting fix it in the next release. |
@jingsam agree, this one is particularly painful. |
Works for me too, no issues anymore |
after applying the update, the error is no more. but - was this always so slow? |
Yeah, I hadn't used WSL for months. Trying it now and adding packages using |
@bitcrazed Yes, everything is functional. |
Great thanks. Closing for now since we have a few confirmations that the issue appears to be resolved. |
@bitcrazed Apart from slow IO it is working fine now, thank you! It's good to hear that disk perf is being addressed. Is there an Issue to follow on? |
Thanks for letting us know. The larger disk perf issue is primarily being tracked in issue #873 |
I upgrade my OS to newest insider preview(17025.10000),still have this problem |
|
I am using Windows version 1803, build 17134.112 and still encountering this bug (the general, parallel building bug). |
@Nadav-Ruskin NPM 6.0 is recommended, It is no worse than yarn now |
That's not really a fair answer, @muyu66. First, it's not true that npm@6 matches Yarn in terms of functionality. More importantly, WSL is not meant to be limited to a subset of tools, and you can't expect development teams to drop Yarn because none is "recommended". |
Sorry if I haven't made myself clear: The error I'm experiencing is more related to #2606, that is, I can't build (my own projects) using |
I am receiving this bug still on the Creators Edition and having the "EINVAL: invalid argument, lstat" I can provide the package.json |
@tomitrescak what build? (Win+R -> type |
Ah, ok, I got 16299.64, installing update now. |
Your Windows build number: Version 10.0.16273.1000
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
Running yarn (install) in a directory inside /mnt/c/Users/foo/bar
Note that every time I run the command it may fail while lstat'ing a different file.
The text was updated successfully, but these errors were encountered: