Running `dotnet restore` hangs
Steps to reproduce
dotnet new
dotnet restore
Expected behavior
Packages are downloaded
Actual behavior
Hangs at first output line Restoring packages for ....
Environment data
dotnet --info output:
`.NET Command Line Tools (1.0.0-rc2-002586)
Product Information: Version: 1.0.0-rc2-002586 Commit Sha: ac5432bff2
Runtime Environment: OS Name: rhel OS Version: 7.2 OS Platform: Linux RID: rhel.7.2-x64`
Note: This is RHEL running in a Hyper-V VM on Windows 10 Professiona.
Also and FYI;
[dschenck@localhost helloworld_cli]$ cat project.json { "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0-rc2-3002586" } }, "frameworks": { "netcoreapp1.0": { "imports": "dnxcore50" } } }
After waiting a long time, this:
error: Unable to load the service index for source https://api.nuget.org/v3/index.json. error: The HTTP request to 'GET https://api.nuget.org/v3/index.json' has timed out after 100000ms.
Recommend to check DNS and connectivity from your VM.
Anyways, this is a nuget issue, dotnet restore simply uses nuget. Please move this issue to https://github.com/nuget/home
Thanks for the bug report!
I don't agree that its a nuget issue. I believe that it is more likely that dotnet cli is misusing nuget somehow.
rm -rf /tmp/NuGet
rm -rf /tmp/NuGetSearch
If this does not help reboot the system.
@stanislavromanov Rebooting (the docker host in this case) did the trick
reboot the system.
problem is that you have max-out to you limit for open handles fordotnet process (build, kesterl, nginx, etc)