-
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 consistently times out on Win7x64 #5311
Comments
@emgarten this looks like a NuGet xplat issue. Do you need any extra info to investigate? |
@blackdwarf does clearing your nuget packages folder and v3-cache help? I have seen this happen before when there is an invalid cache file. Does |
@emgarten where is the v3-cache? |
@emgarten nope, cleaning the packages folder doesn't do anything. |
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. |
@HermanEldering yup, disabling the VBox interface actually made it work! However, as you specify, this has not been the case with other software on my box. @emgarten we should still look into why this is happening. I will add this to the known issues page if anyone else encounters it. |
@blackdwarf and @HermanEldering, same problem and same fix. Disabling the VBox interface fixed everything. |
@emgarten would be good to investigate what is happening here. |
@blackdwarf what are simplest repro steps for this issue? //cc @joelverhagen |
@emgarten install Win7SP1, install Virtual Box, install CLI tools. Do: dotnet new
dotnet restore |
I just reproed this on my Win7x64 machine using latest betas. Installed Most recent Virtual Box x64 yesterday, dotnet restore stops working... Disabling 'VirtualBox Host-Only Network' adapter resolves the issue.
|
@blackdwarf the workaround for win7 in virtualbox is not working for me anymore. I cannot restore even though the virtualbox host adapter has been disabled (and completely removed)
|
@emgarten can you check if this regressed? |
Hm, I cannot repro it on my box. @jtbm37 what is the version of VBox that you have installed? |
@blackdwarf 5.0.20 r106931 on Ubuntu 15.04 |
Yes, my VBox is in 4.3.x range. Interesting... |
There hasn't been a fix for this yet. There have been some improvements around bad network connections, but the root cause of why restore has trouble on VBox hasn't been tracked down yet. |
Would someone hitting this issue try creating a basic repro of this to see if this happens just from using HttpClient or if this is specific to how NuGet sets up HttpClient? For reference the NuGet wrapper for HttpClient is here: https://github.com/NuGet/NuGet.Client/blob/dev/src/NuGet.Core/NuGet.Protocol.Core.v3/HttpSource/HttpSource.cs (NuGet.Protocol.Core.v3) package on nuget.org. |
Another interesting data point would be PowerShell:
|
@emgarten I can do this. You mean just having a simple app that essentially does a |
@blackdwarf yeah, just an httpclient url request. |
|
@blackdwarf I reinstalled |
@blackdwarf I had the very same issue and with help from the .NET slack, I got here. Disabling the VirtualBox Adapter fixed it for me Here's what I did:
This went slow at the start and then eventually pooped out with
My OS is
VirtualBox is on Version Let me know if you need any other details. |
I don't know how but after several attempts of disabling the interface and rebooting the vm, it finally worked. I could finally restore a new project. |
We had a similar issue with a CI machine that has not Virtualbox installed and only one interface. The error was the same (timeout) but actually it was not a networking problem at all. After logging in with another user (not the one CI uses) I was able to restore all the packages and logging in with the CI user consistently gave timeout errors. That was weird. Using |
Same here , I got GenyMotion for my Android devs; first i was thought it's because of my home network, but then i still got "timed out after 100000ms" error when trying to restore packages at my office. My machine is Win 7 x64 SP1. |
I seem to have the same issue. |
I have the same issue.
Only one network connection and its working perfectly:
|
Can confirm with the same problem: long delay and then timeout errors. Fix was to disable all extraneous network interfaces; in my case VMWare and bluetooth. I didn't try and narrow down the exact interface that was causing the trouble. Ended up with two interfaces enabled: LAN and wireless. Dotnet CLI version:
|
I will close this issue as we have one on NuGet/Home that is tracking this work. |
Hello all, I had the same problem upgraded the powershell to version 3 and now it is working fine. I used the link below: All the best |
@WhiteKarma why should be powershell related to dotnet restore timeouts. Is dotnet using powershell commands or scripts? |
I had the same problem. I too had VMWare interfaces. However, the weird part is I disabled the VMWare interfaces and instead of magically working, I got a 407 proxy error on I found my company's proxy configuration and manually plugged it into nuget.config. |
Remove old workarounds that are no longer necessary.
Steps to reproduce
Install the LKG version off of https://dotnet.github.io/getting-started/ and install. Then do the following:
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.
Environment data
dotnet --version
output: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
The text was updated successfully, but these errors were encountered: