Forum Discussion
roofiq
Jun 15, 2022Copper Contributor
Nuget restore error on ubuntu hosted agents
Hello,
yesterday (14.06) we encountered random errors on Nuget restore task when running on ubuntu-latest hosted agents. It looks like some network issue from Microsoft or maybe its connected with this leak (Potential leak of NuGet.org API key · CVE-2022-30184 · GitHub Advisory Database)?
Sharing some logs:
(Restore target) ->
/opt/hostedtoolcache/dotnet/sdk/6.0.300/NuGet.targets(130,5): error : Failed to download package 'Portable.BouncyCastle.1.8.1.3' from 'https://api.nuget.org/v3-flatcontainer/portable.bouncycastle/1.8.1.3/portable.bouncycastle.1.8.1.3.nupkg'. [/home/vsts/work/1/s/Basilisk/Basilisk.sln]
/opt/hostedtoolcache/dotnet/sdk/6.0.300/NuGet.targets(130,5): error : An error occurred while sending the request. [/home/vsts/work/1/s/Basilisk/Basilisk.sln]
/opt/hostedtoolcache/dotnet/sdk/6.0.300/NuGet.targets(130,5): error : Unable to read data from the transport connection: Connection reset by peer. [/home/vsts/work/1/s/Basilisk/Basilisk.sln]
/opt/hostedtoolcache/dotnet/sdk/6.0.300/NuGet.targets(130,5): error : Connection reset by peer [/home/vsts/work/1/s/Basilisk/Basilisk.sln]
We were getting it for random packages and after multiple retries it succeeded. For our benefit, we would like to know what might have been the root cause.
Thanks a lot,
Rafal
No RepliesBe the first to reply