ADO build is failing due to nuget.telerik.com/nuget/FindPackagesById() 500 error

1 Answer 828 Views
Application
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.

Keenan
Top achievements
Rank 1
commented on 01 Jun 2021, 10:14 PM

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.
Ivan Danchev
Telerik team
commented on 03 Jun 2021, 01:35 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.

Leland
Top achievements
Rank 1
commented on 14 Aug 2024, 06:20 PM

I also have this issue. It happens on our build server sometimes. I attempted to publish the .net core project and it failed on my dev machine with the same errors. All I did was delete the telerik nuget credentials and restored nuget packages and published. This time it worked. 

This happens on our build server and I just don't understand why it happens sometimes and not others.

I've added a pre-build delete everything on the build server to hopefully start as fresh as possible. 

Not sure why it's only telerik and not my devexpress nuget feed as well. 

Tags
Application
Asked by
Keenan
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or