Skip to content

Known issue: NuGet "FatalProtocolException : Unable to load the service index" #90951

Closed

Description

@steveharter

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=382187

Appears to be a known NuGet connectivity issue; adding template to catch these:
#81586
#33294

Build leg reported

GC_API.WorkItemExecution

Pull Request

#90796

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.",
    "BuildRetry": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

No response

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=382187
Error message validated: NuGet.Protocol.Core.Types.FatalProtocolException : Unable to load the service index for source https://api.nuget.org/v3/index.json.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/22/2023 8:25:55 PM UTC

Report

Build Definition Test Pull Request
443125 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
442238 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91800
441694 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp #93182
440640 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93182
440293 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #91560
438911 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
438199 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
435035 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestMethodWithIfStatement
433988 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93182
432136 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430969 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430188 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
430053 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp #93093
429956 dotnet/runtime LibraryImportGenerator.UnitTests.Compiles.ValidateNoGeneratedOuptutForNoImport #92974
429653 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93109
429167 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
428630 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #93061
427248 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92927
426337 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
425987 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
421117 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92728
424272 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
424145 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
422198 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
419010 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
418441 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
418094 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
417183 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
416738 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
415368 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92375
415028 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
414911 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution
413889 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution #92375
412715 dotnet/runtime IntrinsicsInSystemPrivateCoreLib.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 7 34

Activity

  1. ghost added
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Aug 22, 2023
  2. ghost transferred this issue fromdotnet/dncengon Aug 22, 2023
  3. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Aug 22, 2023
  4. removed
    needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
    on Aug 22, 2023
  5. ericstj commented on Sep 9, 2023

    @ericstj
    Member
                Stack Trace:
                     at NuGet.Protocol.ServiceIndexResourceV3Provider.GetServiceIndexResourceV3(SourceRepository source, DateTime utcNow, ILogger log, CancellationToken token)
                     at NuGet.Protocol.ServiceIndexResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
                     at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__16`1[[NuGet.Protocol.ServiceIndexResourceV3, NuGet.Protocol, Version=6.3.3.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                     at NuGet.Protocol.DependencyInfoResourceV3Provider.TryCreate(SourceRepository source, CancellationToken token)
                     at NuGet.Protocol.Core.Types.SourceRepository.<GetResourceAsync>d__16`1[[NuGet.Protocol.Core.Types.DependencyInfoResource, NuGet.Protocol, Version=6.3.3.3, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(561,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.GetPackageDependenciesAsync(PackageIdentity packageIdentity, NuGetFramework targetFramework, ImmutableArray`1 repositories, SourceCacheContext cacheContext, ILogger logger, Builder dependencies, CancellationToken cancellationToken)
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(227,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken)
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(197,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(174,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1601,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateSolutionAsync>d__97[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1416,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateProjectImplAsync>d__95[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1395,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<CreateProjectAsync>d__94[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1373,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<GetSolutionAsync>d__93[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(1097,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<GetSortedDiagnosticsAsync>d__82[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(465,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<VerifyDiagnosticsAsync>d__69[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(219,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunImplAsync>d__64[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalyzerTest`1.cs(188,0): at Microsoft.CodeAnalysis.Testing.AnalyzerTest`1.<RunAsync>d__63[[Microsoft.CodeAnalysis.Testing.Verifiers.XUnitVerifier, Microsoft.CodeAnalysis.Testing.Verifiers.XUnit, Version=1.1.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].MoveNext()
                  /_/src/libraries/System.Private.CoreLib/tests/IntrinsicsInSystemPrivatecoreLibAnalyzer.Tests/CSharpAnalyzerVerifier`1.cs(35,0): at IntrinsicsInSystemPrivateCoreLib.Test.CSharpAnalyzerVerifier`1.<VerifyAnalyzerAsync>d__3[[IntrinsicsInSystemPrivateCoreLib.IntrinsicsInSystemPrivateCoreLibAnalyzer, System.Private.CoreLib.Generators, Version=42.42.42.42, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]].MoveNext()
                  /_/src/libraries/System.Private.CoreLib/tests/IntrinsicsInSystemPrivatecoreLibAnalyzer.Tests/IntrinsicsInSystemPrivateCoreLibUnitTests.cs(578,0): at IntrinsicsInSystemPrivateCoreLib.Test.IntrinsicsInSystemPrivateCoreLibUnitTest.TestHelperMethodsUnrelatedPropertyDoesntHelp()
                  --- End of stack trace from previous location ---
    

    Yikes! Do we really want our analyzer tests accessing NuGet.org to try to fetch reference assemblies? That doesn't seem right. @sharwell do you think these tests are missing something to tell the test framework where to find reference assemblies. Those must be available as part of the helix payload...

  6. jkoritzinsky commented on Sep 9, 2023

    @jkoritzinsky
    Member

    We have a mechanism in this repo to use the live Reference Pack. We should use it. Alternatively, since this analyzer is just for CoreLib, we should configure the tests to only pull in CoreLib as a reference.

  7. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 19, 2023
  8. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 20, 2023
  9. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Oct 20, 2023
  10. ghost locked as resolved and limited conversation to collaborators on Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions