Nuget restore error on ubuntu hosted agents

Copper Contributor



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 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.' from ''. [/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,


0 Replies