-
Notifications
You must be signed in to change notification settings - Fork 10.3k
System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached. #8449
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
Comments
Could you try setting |
Thanks. In case someone else is facing this issue. @pranavkm - If I hit this issue again I will look at your suggestion. |
@pranavkm I also have this problem (linux) - too many inotify handles. I'm using 2.2 and a SPA (angular) so there is no razor. Yet I recall it's on by default? Where can I disable it? |
I experience this error as well on Linux since a week a go. Debugging native and not in a Docker container. Edit. |
I can confirm this issue in Ubuntu 18.04. Running a brand new webapi project is enough to trigger the exception. Steps to reproduce:
See also: #7531 |
Same here, while vs code is opened this problem occurs and when it's close, works well.
|
I found a "fix" by increasing the fs.inotify.max_user_watches and fs.inotify.max_user_instances |
use command |
@rtrimurthulu Polling tens of thousands of node/etc files is not a solution. It's better to just reload the IDE than use that option. (Even if you're using aspnet, there's a good chance you have a node_modules in there somewhere.) |
Exact same problem - OSX Host, VSCode running Docker Dev-Containers, if I Debug from VSCode then I get the issue, if I run the application from terminal (not debugging) I get the same issue - I have to Quit VSCode to fix, which is painful as it occurs several times a day - will submit a VSCode issue I think |
I got used to doing this: ctrl+shift+p then type "reload" then enter. |
@Ionix1 thanks for the helpful work around, I am actually trialling using Visual Studio for Mac as an alternate IDE for VSCode - a real pitty since I really like VSCode and its dev-containers but this problem is killing my dev time at the moment, I am 99% sure its to do with VSCode since once it occurs then all Containers are affected by the issue, even none dev-containers and the only resolution is to quit VSCode |
run this: |
@paillave thanks for the effort - however on my Mac host this errors with fs.inotify.max_user_instances=524288 and if I run it inside my Docker container (which is where I think it should be run), it also errors saying its a readonly file system, what does appear to work (in the middle of testing this) is to run docker run -ti --privileged centos sysctl fs.inotify.max_user_instances=524288 which runs the container in privileged mode and changes the hosts (read Linux Hypervisor VM, not the Mac) sysctl setting which is then reflected in all containers - this appears promising |
It is normal that it is readonly in your docker as nothing should change system setups of the virtual machine. For this setup to be done in your docker, it must be done when preparing the image. |
Started to see this recently when I run it within docker. Code has been same forever and it used to work. Not really sure what has changed. Is there a workaround that I could use to get unblocked?
How we setup. .Build() is called only once
On start we end up with this exception below. Seems to point to something in UseMvc()
.NET Core SDK (reflecting any global.json):
Version: 2.1.500
Commit: b68b931422
Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.1.500\
Host (useful for support):
Version: 2.1.6
Commit: 3f4f8eebd8
.NET Core SDKs installed:
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.500 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: