question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet restore consistently times out on Win7x64

See original GitHub issue

Steps to reproduce

Install the LKG version off of https://dotnet.github.io/getting-started/ and install. Then do the following:

mkdir new
cd new
dotnet new
dotnet restore

Expected behavior

The packages are restored and the lock file is generated.

Actual behavior

Works very slowly at first and then it starts spitting out messages like the one below. After a while, simply exists with restore not done.

info :   GET https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.text.encoding.extensions/index.json
log  : Retrying 'FindPackagesByIdAsync' for source https://api.nuget.org/v3-flatcontainer/system.text.encoding.extensions/index.json.
log  : The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/system.text.encoding.extensions/index.json' has timed out after 100000ms.
info :   GET https://api.nuget.org/v3-flatcontainer/system.text.encoding.extensions/index.json
log  : Retrying 'FindPackagesByIdAsync' for source https://dotnetmyget.blob.core.windows.net/artifacts/dotnet-core/nuget/v3/flatcontainer/system.threading/index.json.

Environment data

dotnet --version output:

.NET Command Line Tools (1.0.0-beta-001598)

Product Information:
 Version:     1.0.0-beta-001598
 Commit Sha:  7582649f88

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 Runtime Id:  win7-x64

Also tested on a Linux VM that is connected to the same network, same version installed from the feed, no problems, restores fast and nice.

/cc @emgarten @piotrpMSFT

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:35 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
HermanElderingcommented, Mar 13, 2016

I am seeing the same problem. It seems that in my case the traffic was routed to an incorrect network interface. I’ve disabled the VirtualBox interface (earlier I had it running with a VM in host-only network mode). There also was OpenVPN running with an active VPN connection, I closed the connection but did not disable the interface. I also disabled all other network interfaces (bluetooth and unconnected wired ethernet port).

I haven’t seen this problem with other software while the VPN and VirtualBox are active regularly on my system.

1reaction
blackdwarfcommented, Mar 17, 2016

@emgarten install Win7SP1, install Virtual Box, install CLI tools. Do:

dotnet new
dotnet restore
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot complete dotnet restore because some requests ...
We tried dotnet restore , but it is timeouts too much. When we tried dotnet restore --disable-parallel it became better, but still it...
Read more >
Constant timeouts doing NuGet restore
During a NuGet package restore, I continually see timeouts, to the point that I'm not able to successfully complete a restore. The majority...
Read more >
kubernetes - Docker nuget connection timeout
I fix this issue by passing argument --disable-parallel to restore command which Disables restoring multiple projects in parallel.
Read more >
dotnet restore command - .NET CLI
Learn how to restore dependencies and project-specific tools with the dotnet restore command.
Read more >
Long delays and frequent timeouts during restore of Nuget ...
We have tried running cleanup, deceasing by 2 all settings in Clean-up Rules, rebooting machine. Now se store artifacts for 50 successful builds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found