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
Error: ENOENT: no such file or directory, uv_resident_set_memory #7251
Comments
I'm finding this on Monday mornings if I leave react-scripts running over the weekend. yarn @ 1.17.3 |
I get the same error on Windows Subsystem for Linux |
Here is my workaround for the WSL - rumbu@c8ed1600ef08cab2059cb3a25c754b0ee95082c4\
|
I can make a PR for this, but I doubt that it will be merged, since they say that yarn 1.x is frozen now. The good news is that I can't find any calls to |
For anyone who comes across this, I was hitting this issue due to an apparmor profile applied to /usr/bin/node (rather than a specific nodejs application) |
Grrr, I have just had the same problem when setting up node @ v20.8.0 @rumbu 's commit fixes it. This thread has been going for 4 years and yarn version 1 is still being installed on production systems. It doesn't look like that is going to change any time soon. If there is another 1.x release can we get this in. I really don't want to patch every chrooted yarn installation for another 4 years! UPDATE: I ditched plesk in the end, it was creating more problems than it was solving. Afterwards, I could install anything I liked in the confidence it wasn't going to interfer with plesk. So I'm on v2 now and don't care about v1 ;) |
I ran across this issue too. The workaround by @rumbu is one way to fix this. The root cause in chroot environments is that the source for memory usage is procfs, which won't be available in a chroot unless the user does it themselves, like so: |
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Error is thrown when using any yarn cli command e.g.
yarn init
If the current behavior is a bug, please provide the steps to reproduce.
The origin of this bug seems different to other ENOENT i saw in the list of issues.
I already did some research for this behaviour. This error occurs on linux systems where the
/proc/self/stat
is not readable.The bug is not really a problem of yarn then of the libuv library, which node is using.
nodejs/node-v0.x-archive#10426
So any memoryUsage use will produce the same error:
This happens in
base-reporter.js
Is it possible to catch this exception and set any default value for peakMemory or try to get this information from another api?
What is the expected behavior?
Yarn should also work on restricted linux system where
/proc/self/stat
is not readable.npm
is working here, but of course i don't want to switch back tonpm
Please mention your node.js, yarn and operating system version.
I tested this bug for following versions
node@12.1.0
node@10.15.2
yarn@1.13.0
yarn@1.15.2
The text was updated successfully, but these errors were encountered: