sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Running `dotnet restore` hangs

Open DonSchenck opened this issue 10 years ago • 7 comments

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.

DonSchenck avatar May 02 '16 15:05 DonSchenck

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" } } }

DonSchenck avatar May 02 '16 15:05 DonSchenck

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.

DonSchenck avatar May 02 '16 16:05 DonSchenck

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!

brthor avatar May 02 '16 20:05 brthor

I don't agree that its a nuget issue. I believe that it is more likely that dotnet cli is misusing nuget somehow.

vmrocha avatar May 20 '16 04:05 vmrocha

rm -rf /tmp/NuGet rm -rf /tmp/NuGetSearch

If this does not help reboot the system.

stanislavromanov avatar Oct 04 '16 20:10 stanislavromanov

@stanislavromanov Rebooting (the docker host in this case) did the trick

pavlosmcg avatar Jan 24 '17 11:01 pavlosmcg

reboot the system.

problem is that you have max-out to you limit for open handles fordotnet process (build, kesterl, nginx, etc)

default-writer avatar Dec 09 '18 19:12 default-writer