-
Notifications
You must be signed in to change notification settings - Fork 252
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
NuGet 4.9.2 fails to install packages from nuget.org with "Canceled" error #7699
Comments
Did it only started happening with It seems like this was reported in your build server, so just make sure that machine has access to internet. |
@jainaashish, the customer says that it was working fine in NuGet 4.8.1. The machine has access to the https://api.nuget.org/v3/index.json The problem is that cause of |
can you provide repro steps to reproduce locally? AFAIK cancelled will only happen when someone explicitly cancelled that restore task. |
@jainaashish, I don't know how to reproduce it locally. Customer says that it is intermittent issue, maybe it's caused by firewall/network issues in their on-premises network. Log with timestamps looks like that:
How to diagnose this problem? NuGet.exe logging does not help in it. |
can you ask your customer to run this command with |
@jainaashish, already did it and have mentioned it multiple times that |
then I don't know what we can do here until we have the repro details. It may be nuget 4.8.1 was not handling cancellation properly which could have been fixed in 4.9.2 which is why your customer is seeing it now but in reality the problem was already there which is, something is always cancelling those http requests to nuget.org |
Also getting this same issue on Teamcity as @DomZZ , detailed verbosity does not seem to add any more information, it has been around for a few versions of nuget at least I worked with our ops team and they dont believe there is any filtering/firewalls in place, and I would assume so saying we can rerun the step directly after and it will work. Ive also had this happen on windows server 2012 and 2019 boxes, the 2019 boxes are also just recently setup. For reference we are also in Australia, perhaps some kind of issue with the Oceania cdn? |
Also getting the same issue on Teamcity after upgraded to NuGet 5.1.0:
As a resolution, NuGet was reverted back to version 4.9.1 where nuget restore works fine again. |
It now seems to have changed slightly with more error detail
|
It seems that many people reach this issues and it has been fixed in Microsoft Credential Provider : https://github.com/Microsoft/artifacts-credprovider/releases/tag/0.1.15 Then I think that the problem is on client side and TeamCity needs to make some updates. |
Could you add the environment variable |
Build log
Nuget log during that time
There are additional logs after that time also, note we dont use any kind of credentials for nuget
Not sure why it couldn't detect the sdk and then later it did or if thats related at all.
|
Any movement on this? Also had a slightly different error log today that resulted in restore not completing
Unfortunately I dont have the plugin log for this one. |
any update on this, its crippling our workflow |
We are hitting an issue which looks similar, and this is blocking our customers. We have some packages restoring correctly on Azure DevOps Pipeline (CI), and from the same feed some packages failing to restore. The package ID and version are correct, manual search and download from nuget.org works, but restore fail for no apparent reason. Any update on this? |
See also microsoft/artifacts-credprovider#91, using 5.1.0 shows that the actual error is:
|
We are now getting this error
|
Hey folks, (Update: Fixes went into 5.3.1 and 5.4.0 and 5.5.0 - 5.5.0 didn't ship yet, but that fix will first hit 5.5.0-preview2) |
Duplicate of #7842 |
Details about Problem
NuGet product used: NuGet.exe
NuGet version 4.9.2:
OS: Windows
Detailed repro steps so we can see the same problem
Execute package restore like that:
Restore command fails with errors like that:
Other suggested things
Verbose Logs
Despite
-Verbosity detailed
was passed it does not bring any additional details about cause ofCanceled
task status. So how to investigate the cause of that?The text was updated successfully, but these errors were encountered: