question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Restoring from private azure devops feeds is flaky

See original GitHub issue

We have been seeing multiple issues when restoring from azure devops private feeds.

These errors usually manifest in 401/403/404 errors when attempting to restore packages, and are caused by a mix of bugs in NuGet / The credential provider / MSBuild.

While we have some more information as to when the issues will be fixed, the azure artifacts team recommended a wokaround:

  • Clear the nuget http-cache before attempting to restore any packages from these feeds
  • Set the following environment variables:" NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS=20 NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS=20

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
riarenascommented, Jan 30, 2020

The NuGet changes will be available in the 3.1.200 SDK, we should update Arcade (and dependent repos) to that version when it’s released to see if that solves the flakiness.

1reaction
riarenascommented, Jan 24, 2020

I think this might just been an agent network problem, looking at the logs for that failed build leg, I see stuff such as:

Failed to download package 'System.Reflection.Metadata.1.4.1' from 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/system.reflection.metadata/1.4.1/system.reflection.metadata.1.4.1.nupkg'.
  Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/system.runtime.interopservices.runtimeinformation/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/system.linq.expressions/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/microsoft.csharp/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/system.collections/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer
  Retrying 'FindPackagesByIdAsync' for source 'https://dotnetfeed.blob.core.windows.net/dotnet-core/flatcontainer/system.objectmodel/index.json'.
  The SSL connection could not be established, see inner exception.
    Unable to read data from the transport connection: Connection reset by peer.
    Connection reset by peer

Which means it had problems restoring from even the sleet feeds, and not just with the artifacts feeds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flaky "dotnet restore" fails randomly in Azure Pipeline
It links to a feed in Azure Devops (Artifacts). Our feed includes the sources that the errors say are missing. It's always warning...
Read more >
Manage flaky tests - Azure Pipelines
A flaky test is a test that provides different outcomes, such as pass or fail, even when there are no changes in the...
Read more >
Solving Long, flaky testing with Azure DevOps - Tsuyoshi Ushio
The first try ... Unfortunately, the task has been canceled. The reason is it took over 30 min. By default, Hosted agent will...
Read more >
Azure DevOps and Telerik NuGet Packages
How does the pipeline restore a package that is only in a private feed? This is where a NuGet config file comes into...
Read more >
dotnet restore" fails randomly in Azure Pipeline
Coding example for the question Flaky "dotnet restore" fails randomly in Azure Pipeline.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found