NuGet / Home

Repo for NuGet Client issues
Other
1.49k stars 252 forks source link

Error downloading when running nuget in parallel #3374

Open kingerja opened 8 years ago

kingerja commented 8 years ago

Using 3.5.0.1737

I do not currently have a repro for this it is simply something some devs seeing. I am trying to work with them to get a repro. This only occurs if we are building multi proc and therefor have multiple instances of nuget running at the same time.

     Added package 'Microsoft.Diagnostics.Tracing.EventSource.Redist.1.1.24' to folder 'C:\NuGetPackages'
       NotFound https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDPES_FE/nuget/v2/Packages(Id='Microsoft.Bcl',Version='1.1.10') 136ms
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDPES_FE/nuget/v2/FindPackagesById()?id='Microsoft.Bcl'
       OK https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQL_Toolset/nuget/v2/Packages(Id='Microsoft.Bcl',Version='1.1.10') 141ms
       OK https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDS_Shared/nuget/v2/Packages(Id='Microsoft.Bcl',Version='1.1.10') 143ms
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQL_Toolset/nuget/v2/Packages(Id='Microsoft.Bcl.Build',Version='1.0.21')
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDS_Shared/nuget/v2/Packages(Id='Microsoft.Bcl.Build',Version='1.0.21')
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDPES_FE/nuget/v2/Packages(Id='Microsoft.Bcl.Build',Version='1.0.21')
     Error downloading 'Microsoft.Bcl.1.1.10' from 'https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDS_Shared/nuget/v2'.
     The read operation failed, see inner exception.
       The request was aborted: The request was canceled.
       OK https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQL_Toolset/nuget/v2/Packages(Id='Microsoft.Bcl.Build',Version='1.0.21') 134ms
     Package 'Microsoft.Bcl.Build.1.0.21' already exists in folder 'C:\NuGetPackages'
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQL_Toolset/nuget/v2/Packages(Id='Microsoft.Bcl.Async',Version='1.0.168')
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDS_Shared/nuget/v2/Packages(Id='Microsoft.Bcl.Async',Version='1.0.168')
       GET https://msdata.pkgs.visualstudio.com/DefaultCollection/_packaging/SQLDPES_FE/nuget/v2/Packages(Id='Microsoft.Bcl.Async',Version='1.0.168')
kingerja commented 8 years ago

For full log see \joshking-main\dump\nuget\issues\3374\msbuild.log look for: Error downloading 'Microsoft.Bcl.1.1.10'

zhili1208 commented 8 years ago

I guess this error message ”The request was aborted: The request was canceled.“ is a WebException, looks like nuget read nupkg stream from network failed for some reason in this case. Need an repro to investigate.

kingerja commented 8 years ago

Additional info. The dev has reported failures occasionally in single proc as well now. However the failures seem to be scoped to the use of the V2 vso feeds and it does not repro in using the v3 vso feeds.

I have been unable to get a repro myself however you can reach out to the dev who may be able to give you access to a box that this repro's on. Dev alias is chwill.

mscrivo commented 8 years ago

We're having this problem as well on our TeamCity agents randomly, using 3.4.4 against ProGet 4.1.1 (build 7). We had to revert back to 2.8 to get stability.

MikeFassbinder commented 6 years ago

We see the same behavior with teamcity and proget combination (Proget 5.0.7 and 4.8.7)

kingerja commented 6 years ago

I have switched teams and no longer care about this issue and simply advise people away from using v2 feeds as they appear to be very problematic in general. I am leaving this issue open as several other folks have commented that they are seeing the same problem. Feel free to close this issue nuget team.