ADO build is failing due to nuget.telerik.com/nuget/FindPackagesById() 500 error
1 Answer 17 Views
Keenan
Top achievements
Rank 1
Keenan asked on 27 May 2021, 06:58 PM

About 40% of the time our build fails with a bunch of errors like below


 Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Diagnostics.StackTrace'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Xml.XmlDocument'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Xml.XDocument'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Reflection.Emit.ILGeneration'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Composition.TypedParts'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).
  Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Configuration.ConfigurationManager'&semVerLevel=2.0.0'.
  Response status code does not indicate success: 500 (Internal Server Error).

Note it doesnt always happen. Any idea how to troubleshoot this? 

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 01 Jun 2021, 08:27 AM

Hello Keenan,

The listed packages:

"System.Diagnostics.StackTrace"
"System.Xml.XmlDocument"
etc.

are not served by the Telerik Nuget Server (https://nuget.telerik.com/nuget). The error message indicates an attempt to download the packages from the Telerik Nuget Server:

Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='System.Diagnostics.StackTrace'&semVerLevel=2.0.0'.

instead of looking for them in the Official Nuget Server.

Make sure you have the Official Nuget Server as a package source in your NuGet.Config file:

<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />

Regards,
Ivan Danchev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

I confirmed the nuget.config file has that line

<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Telerik" value="https://nuget.telerik.com/nuget" />
</packageSources>

For some reason, SOME of the time it fails trying to do that and I can't figure out why. I thought it might be something to do with caching but running the docker build command with no-cache didn't help.
- by
Keenan
Top achievements
Rank 1
on 01 Jun 2021, 10:14 PM

We have some suggestions you can try out:

1. Local feeds with invalid path used as source could lead to errors when it is not resolved, so make sure there is no such invalid feed. Delete the project's Nuget.config file sometimes helps.

2. Clearing Nuget cache in VS:

You do this in the following way:

-In the toolbar of Visual Studio, navigate to Tools » NuGet Package Manager » Package Manager Settings.
-In the left pane, navigate to NuGet Package Manager » General.
-Click Clear All NuGet Cache(s).

If this doesn't help you can send us the Nuget.config file so we can check for any potential problems in it.

- by
Ivan Danchev
Telerik team
on 03 Jun 2021, 01:35 PM
Asked by
Keenan
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or