-
Notifications
You must be signed in to change notification settings - Fork 252
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
Too many open files when restoring on Mac #2163
Comments
You can use |
I hope the new dotnet cli we will pick will have this fix so I will be able to verify this end to end. |
@moozzyk please try the new dotnet, I think it has this already |
I just hit this with |
@agocke we just found one issue related to this, will fix it soon, Can you provide repro solution? then we can verify it with the fix. |
@zhili1208 It's the Roslyn solution -- I'm in the process of making a PR for this. If you get a build, lemme know and I can try it. Otherwise I'll set up a repro for you. |
I can confirm this is still happening:
To repro
|
@agocke yes, this is still happening, the issue comes from httpclient, dotnet core team will provide us an API to limit the open file number, but not now, so we are still waiting for them. If this blocks you, please use ulimit for now |
Why is this issue still in the closed state? It's 100% reproducable in Roslyn and our build is completely broken unless we resort to
That's fine but still seems like there is work to do on your end. Shouldn't this bug be tracking the work? |
Did some digging, related: https://github.com/dotnet/corefx/issues/7932 Still investigating. |
Note that we've also started seeing this on Linux: dotnet/roslyn#10768 |
@agocke, we are going to pull in a fix for dotnet/corefx#7932 today, which addresses this issue. After that point, this problem should go away. |
@joelverhagen Thanks! Can you try the Roslyn repro I posted above or let me know when a build is available so I can try it myself? |
The latest dotnet CLI has been fixed to address this problem. Basically you should look for a version of I just tried restoring Roslyn latest with dotnet CLI latest on OS X and had no issue. My dotnet CLI version is |
@starquake I can't repro this with dotnet 1.0.0-rc4-004823, Could you try latest dotnet cli and also share your nuget.config file from ~/.nuget/NuGet ? Sometimes this is related to the number of package source. |
@zhili1208 I will share the nuget config when I'm at work tomorrow. Tried it on another system and it executed without any problems. If you want to close this ticket because it's not reproducible that would be fine too. |
Moving out until we have a dependable repro to consider. |
Is there a dotnet cli that is newer than 1.0.0-rc4? Where can I get it? This is in my nuget.config:
|
@starquake - More recent rc4 dotnet cli builds are available from https://github.com/dotnet/cli |
Installed 1.0.0-rc4-004834 and it still occurs. I did some troubleshooting. ulimit -n tells me 256 is the default So it looks like I'm just over the boundary. When I look at my open files for the shell with lsof, it's not that much:
|
Could you run lsof to determine what kind of handles are most prevalent? We have seen issues in the past where |
It's quite a bit. See here: |
Same situation with SDK v1.0.0 and v1.0.1 .. https://travis-ci.org/am11/MaxMind-DB-Reader-dotnet/jobs/209511300#L974-L996 Based on this comment: https://github.com/dotnet/cli/issues/809#issuecomment-194407913, would it be possible to limit the max connections (or |
I'm having this (as mentioned in https://github.com/dotnet/cli/issues/6014#issuecomment-286060904), even though when I run Thanks. |
Aha. Makes total sense (for the record mine shows 256 for Thanks a lot. |
@emgarten - can you make sure we get the right "ClosedAs" label set here? won't fix? by design? |
@rrelyea I remember there was a fix in template, they opened many nupkg files in memory but didn't close them. I think this issue is fixed by their fix. |
From @mlorbetske: will mark as external and notrepro - given that. if anybody still hits despite that, please chime in. |
Looks like the fix for #2004 was not enough. I am still hitting the same issue on some repos.
I am using dotnet-osx-x64.1.0.0.001496.tar.gz which contains the fix for #2004
To repro:
Log from the CI:
https://s3.amazonaws.com/archive.travis-ci.org/jobs/111327930/log.txt
The text was updated successfully, but these errors were encountered: