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.

Unable to restore packages on Windows 7

See original GitHub issue

When trying to restore the packages either via the build script or dotnet restore, some of the packages do timeout.

log  : The HTTP request to 'GET https://myget-2e16.kxcdn.com/artifacts/aspnetcid
ev/nuget/v3/flatcontainer/system.threading.thread/index.json' has timed out afte
r 100000ms.
info :   GET https://myget-2e16.kxcdn.com/artifacts/aspnetcidev/nuget/v3/flatcon
tainer/system.threading.thread/index.json
log  : Retrying 'FindPackagesByIdAsync' for source https://api.nuget.org/v3-flat
container/system.threading.thread/index.json.
log  : The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/system.th
reading.thread/index.json' has timed out after 100000ms.
info :   GET https://api.nuget.org/v3-flatcontainer/system.threading.thread/inde
x.json
log  : Retrying 'FindPackagesByIdAsync' for source https://myget-2e16.kxcdn.com/
artifacts/aspnetcidev/nuget/v3/flatcontainer/microsoft.extensions.configuration.
binder/index.json.
log  : The HTTP request to 'GET https://myget-2e16.kxcdn.com/artifacts/aspnetcid
ev/nuget/v3/flatcontainer/microsoft.extensions.configuration.binder/index.json'
has timed out after 100000ms.
info :   GET https://myget-2e16.kxcdn.com/artifacts/aspnetcidev/nuget/v3/flatcon
tainer/microsoft.extensions.configuration.binder/index.json
log  : Retrying 'FindPackagesByIdAsync' for source https://myget-2e16.kxcdn.com/
artifacts/aspnetcidev/nuget/v3/flatcontainer/microsoft.extensions.configuration.
binder/index.json.
log  : The HTTP request to 'GET https://myget-2e16.kxcdn.com/artifacts/aspnetcid
ev/nuget/v3/flatcontainer/microsoft.extensions.configuration.binder/index.json'
has timed out after 100000ms.
info :   GET https://myget-2e16.kxcdn.com/artifacts/aspnetcidev/nuget/v3/flatcon
tainer/microsoft.extensions.configuration.binder/index.json
log  : Retrying 'FindPackagesByIdAsync' for source https://api.nuget.org/v3-flat
container/system.io.filesystem.watcher/index.json.
log  : The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/system.io
.filesystem.watcher/index.json' has timed out after 100000ms.
info :   GET https://api.nuget.org/v3-flatcontainer/system.io.filesystem.watcher
/index.json

The first 50 or so packages are retrieved fine but some of them always fail. I then tried on a Windows 8 machine (on the same network) and it restores all of them just fine.

$ dotnet --version

.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

I was using the dev branch.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jtbm37commented, Apr 17, 2016

for anyone running into this issue this was dotnet-cli known issue.

Workaround: disable the VirtualBox network interface (Host-Only adapter) and do the restore.

0reactions
jtbm37commented, Apr 14, 2016

This is actually not specific to this project actually. dotnet restore does not work at all on any projects on my windows 7 machine. I will raise this with the dotnet-cli team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting NuGet Package Restore in Visual Studio
Select the Tools > NuGet Package Manager > Package Manager Settings menu command. Set both options under Package Restore. Select OK. Build your ......
Read more >
NuGet Package Restore
In Visual Studio on Windows, you can restore packages automatically or manually. First, configure Package Restore through Tools > Options > ...
Read more >
NuGet Package Restore Not Working
Open solution, go into Tools > Nuget Package Manager > Package Manager Settings and Clear all Nuget caches . Check the console because...
Read more >
Restore operation by using Backup and Restore may fail in ...
Fixes an issue in which the restore operation may fail when you try to restore files or system backups by using Backup and...
Read more >
System Restore did not complete successfully – Fix for ...
Fix #1: Disable antivirus software · Fix #2: Check System Protection settings · Fix #3: Run clean boot · Fix #4: Run System...
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