-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dotnet restore fails on OSX with too many open files error - need a generic solution for different projects #4776
Comments
@brthor Suggested a workaround, just run ulimit -n 512. We still need to prevent this from ever happening though. |
Fixed with dotnet/cli#818 |
Just hit it, thanks for the instruction to fix it 👍 |
As a good sample case, try restore on EntityFramework. It always fails with this error. |
I will re-open the issue. Seems like we need to find a generic solution to make dotnet restore as a command work, not only for the CLI restore step. |
Related: NuGet/Home#2004 |
FWIW |
Although this is Mac-specific insofar as OS X sets an unusually low limit on the number of open FDs, this is arguably a cross-platform design error in It seems that the problem is that it opens all of the NuGet HTTP connections needed to restore packages in parallel, blowing the default There are several good reasons to limit the number of simultaneous HTTP connections per server, quite aside from this client-side limit. (The C10K problem, TCP congestion issues, etc.) This is why all current web browsers limit themselves to at most 8 connections per server. If The recommended workaround ( There are several ways to fix this by making use of the rich parallel processing facilities in .NET. The recently-added |
I just hit this again:
This is running with Upping the ulimit is not an acceptable workaround -- we need to get this properly fixed ASAP. |
I just want to report that the error still happens on OS X, after a first
|
Well maybe wrapping the command with the ulimit before it runs ? Or just using this on your .bashrc |
Confirmed I'm hitting this with Dapper build scripts now. This should be reopened. |
Note: these are hosed on OS X due to file handle limits, see https://github.com/dotnet/cli/issues/809 for details.
We just checked in a file handle leak fix, it could be related. Nick - what build are you using? |
@yishaigalatzer 1.0.0-rc2-002416 |
Since this is being tracked @nuget/home:2163, closing the CLI issue. |
Link for others: NuGet/Home#2163 |
Comments to others - At the moment this looks like a coreFX issue, we are discussing internally and will figure out if this will get fixed for RC2 and how. |
Use case insensitive comparison for determining which packages should be excluded from publishing
Hit this today. |
Just run build.sh on the Mac.
I got a bunch of these at first:
Warning: FindPackagesById: System.Reflection.Emit.Lightweight
Too many open files
And then it turned into an error.
The text was updated successfully, but these errors were encountered: