Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error message during NuGet Restore when not authenticated to a feed #12403

Open
InteXX opened this issue Feb 2, 2023 · 0 comments
Labels
Area:Authentication Area:ErrorHandling warnings and errors/log messages & related error codes. Area:Logging Functionality:Restore Priority:2 Issues for the current backlog. Type:Bug

Comments

@InteXX
Copy link

InteXX commented Feb 2, 2023

NuGet Product Used

NuGet.exe

Product Version

6.4.0

Worked before?

No

Impact

It's more difficult to complete my work

Repro Steps & Context

An error bearing an incorrect message occurs during a NuGet Restore action when the current user is not authenticated to the referenced feed.

For example:

NU1301: Unable to load the service index for source {source}

This error occurs during an Azure DevOps pipeline build when the project-scoped build identity {Project Name} Build Service ({Org Name}) is omitted from the referenced feed's permissions (assuming an Azure DevOps feed).

The fix for this is easy—simply add the project-scoped build identity to the feed's permissions.

Unfortunately, however, the error message is misleading. It doesn't describe the root problem, leaving developers and DevOps engineers in the dark as to how to address it. The abundance of reports and attempted/failed solutions found at StackOverflow and elsewhere attest to this.

To reproduce:

  1. In Azure DevOps (Services or Server), create a new collection-scoped feed
  2. Note that the feed's permissions do not include the project-scoped build identity
  3. Publish a package to the feed
  4. Create a Git repository
  5. Create a pipeline build that consumes the repository and is triggered by a git push
  6. Add a nuget restore step to the pipeline
  7. In the nuget restore step, reference the feed
  8. Create a Visual Studio project that references the package
  9. git push the code to the repository
  10. Note the misleading error message in the build's logs
  11. Add the project-scoped build identity to the feed's permissions
  12. Run the pipeline again (afresh, not a rerun)
  13. Note that the error no longer occurs

The message can be adjusted to more accurately reflect the error it attempts to describe.

Verbose Logs

2023-02-01T19:45:39.5301164Z ##[section]Starting: NuGet restore
2023-02-01T19:45:39.5437559Z ==============================================================================
2023-02-01T19:45:39.5437830Z Task         : NuGet
2023-02-01T19:45:39.5438327Z Description  : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Azure Artifacts and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task.
2023-02-01T19:45:39.5438829Z Version      : 2.202.0
2023-02-01T19:45:39.5439017Z Author       : Microsoft Corporation
2023-02-01T19:45:39.5439271Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/package/nuget
2023-02-01T19:45:39.5439584Z ==============================================================================
2023-02-01T19:45:40.1226069Z [command]C:\Windows\system32\chcp.com 65001
2023-02-01T19:45:40.1227037Z Active code page: 65001
2023-02-01T19:45:40.1853719Z Detected NuGet version 6.4.0.123 / 6.4.0+da5b9fa1595e212914854a9ff4a18a6759ed4729.da5b9fa1595e212914854a9ff4a18a6759ed4729
2023-02-01T19:45:40.1887127Z SYSTEMVSSCONNECTION exists true
2023-02-01T19:45:40.2276988Z [command]D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe sources Add -NonInteractive -Name 5048a2f8-c40d-4f26-a336-c49ef71daff5 -Source http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json -ConfigFile D:\Agent\_work\3\Nuget\tempNuGet_26.config
2023-02-01T19:45:40.6942257Z WARNING: You are running the 'add source' operation with an 'HTTP' source, 'http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source.
2023-02-01T19:45:40.6943869Z Package source with Name: 5048a2f8-c40d-4f26-a336-c49ef71daff5 added successfully.
2023-02-01T19:45:40.6967863Z [command]D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe sources Add -NonInteractive -Name NuGetOrg -Source https://api.nuget.org/v3/index.json -ConfigFile D:\Agent\_work\3\Nuget\tempNuGet_26.config
2023-02-01T19:45:41.2406096Z Package source with Name: NuGetOrg added successfully.
2023-02-01T19:45:41.2441066Z [command]D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe restore D:\Agent\_work\3\s\SQLInfoEnumeratorDemo\SQLInfoEnumeratorDemo.sln -Verbosity Detailed -NonInteractive -ConfigFile D:\Agent\_work\3\Nuget\tempNuGet_26.config
2023-02-01T19:45:42.5370383Z NuGet Version: 6.4.0.123
2023-02-01T19:45:42.5372526Z MSBuild auto-detection: using msbuild version '17.0.0.52104' from 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
2023-02-01T19:45:42.5374865Z MSBuild P2P timeout [ms]: 120000
2023-02-01T19:45:42.5377294Z C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\msbuild.exe "C:\Users\ADS_Build\AppData\Local\Temp\NuGetScratch\my3d0fxz.xtq.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets="C:\Users\ADS_Build\AppData\Local\Temp\NuGetScratch\2kfsowyh.vwj.nugetrestore.targets" /p:RestoreUseCustomAfterTargets="True" /p:DisableCheckingDuplicateNuGetItems="True" /p:RestoreTaskAssemblyFile="D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe" /p:RestoreSolutionDirectory="D:\Agent\_work\3\s\SQLInfoEnumeratorDemo\\" /p:RestoreConfigFile="D:\Agent\_work\3\Nuget\tempNuGet_26.config" /p:SolutionDir="D:\Agent\_work\3\s\SQLInfoEnumeratorDemo\\" /p:SolutionName="SQLInfoEnumeratorDemo"
2023-02-01T19:45:42.5379495Z 
2023-02-01T19:45:42.5380292Z Nothing to do. None of the projects in this solution specify any packages for NuGet to restore.
2023-02-01T19:45:42.5410029Z [command]D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe restore D:\Agent\_work\3\s\SqlBackup.sln -Verbosity Detailed -NonInteractive -ConfigFile D:\Agent\_work\3\Nuget\tempNuGet_26.config
2023-02-01T19:45:51.2474687Z NuGet Version: 6.4.0.123
2023-02-01T19:45:51.2482473Z MSBuild auto-detection: using msbuild version '17.0.0.52104' from 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
2023-02-01T19:45:51.2485643Z MSBuild P2P timeout [ms]: 120000
2023-02-01T19:45:51.2488344Z C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\bin\msbuild.exe "C:\Users\ADS_Build\AppData\Local\Temp\NuGetScratch\tydgp5wx.x1l.nugetinputs.targets" /t:GenerateRestoreGraphFile /nologo /nr:false /v:q /p:NuGetRestoreTargets="C:\Users\ADS_Build\AppData\Local\Temp\NuGetScratch\qlmz34eg.vlm.nugetrestore.targets" /p:RestoreUseCustomAfterTargets="True" /p:DisableCheckingDuplicateNuGetItems="True" /p:RestoreTaskAssemblyFile="D:\Agent\_work\_tool\NuGet\6.4.0\x64\nuget.exe" /p:RestoreSolutionDirectory="D:\Agent\_work\3\s\\" /p:RestoreConfigFile="D:\Agent\_work\3\Nuget\tempNuGet_26.config" /p:SolutionDir="D:\Agent\_work\3\s\\" /p:SolutionName="SqlBackup"
2023-02-01T19:45:51.2491126Z 
2023-02-01T19:45:51.2492288Z Running restore with 4 concurrent jobs.
2023-02-01T19:45:51.2493315Z Reading project file D:\Agent\_work\3\s\SqlBackup\SqlBackup.vbproj.
2023-02-01T19:45:51.2494446Z The restore inputs for 'SqlBackup' have changed. Continuing restore.
2023-02-01T19:45:51.2496085Z WARNING: NU1803: You are running the 'restore' operation with an 'HTTP' source, 'http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json'. Non-HTTPS access will be removed in a future version. Consider migrating to an 'HTTPS' source.
2023-02-01T19:45:51.2497756Z Restoring packages for D:\Agent\_work\3\s\SqlBackup\SqlBackup.vbproj...
2023-02-01T19:45:51.2498577Z Restoring packages for .NETCoreApp,Version=v6.0...
2023-02-01T19:45:51.2499713Z Using D:\Agent\_work\_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.202.0\CredentialProviderV2\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe as a credential provider plugin.
2023-02-01T19:45:51.2500939Z     [CredentialProvider.104545]Running in plug-in mode
2023-02-01T19:45:51.2502381Z     [CredentialProvider.104545]Command-line v0.1.28+103227dd070f2b048ce0ae9bc259f12d509d85e2: "D:\Agent\_work\_tasks\NuGetCommand_333b11bd-d341-40d9-afcf-b32d5ce6f23b\2.202.0\CredentialProviderV2\plugins\netfx\CredentialProvider.Microsoft\CredentialProvider.Microsoft.exe" -Plugin
2023-02-01T19:45:51.2506383Z     [CredentialProvider.104545]Handling 'Request' 'Initialize'. Time elapsed in ms: 1 - Payload: {"ClientVersion":"6.4.0","Culture":"en-US","RequestTimeout":"00:00:30"}
2023-02-01T19:45:51.2508196Z     [CredentialProvider.104545]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 2
2023-02-01T19:45:51.2509231Z     [CredentialProvider.104545]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 3
2023-02-01T19:45:51.2510162Z     [CredentialProvider.104545]Handling 'Request' 'GetOperationClaims'. Time elapsed in ms: 0 - Payload: {}
2023-02-01T19:45:51.2511156Z     [CredentialProvider.104545]Sending response: 'Request' 'GetOperationClaims'. Time elapsed in ms: 8
2023-02-01T19:45:51.2512205Z     [CredentialProvider.104545]Time elapsed in milliseconds after sending response 'Request' 'GetOperationClaims': 10
2023-02-01T19:45:51.2513170Z     [CredentialProvider.104545]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 1 - Payload: {"LogLevel":"Debug"}
2023-02-01T19:45:51.2514158Z     [CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 2
2023-02-01T19:45:51.2515067Z     [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 6
2023-02-01T19:45:51.2516613Z     [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 2 - Payload: {"Uri":"http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json","IsRetry":false,"IsNonInteractive":true,"CanShowDialog":true}
2023-02-01T19:45:51.2517911Z     [CredentialProvider]Creating a progress reporter with interval: 00:00:02
2023-02-01T19:45:51.2521047Z     [CredentialProvider]Handling auth request, Uri: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json, IsRetry: False, IsNonInteractive: True, CanShowDialog: True
2023-02-01T19:45:51.2522232Z     [CredentialProvider]URI: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2523716Z     [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
2023-02-01T19:45:51.2525627Z     [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2527358Z     [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider to try to get credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2528649Z     [CredentialProvider]VstsBuildTaskCredentialProvider - IsRetry: False
2023-02-01T19:45:51.2529319Z     [CredentialProvider]VstsBuildTaskCredentialProvider - URI Prefixes:
2023-02-01T19:45:51.2530007Z     [CredentialProvider]VstsBuildTaskCredentialProvider - http://server5/[redacted]/
2023-02-01T19:45:51.2531101Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Matched prefix: http://server5/[redacted]/
2023-02-01T19:45:51.2532106Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Found credentials for endpoint http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2533155Z     [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 12
2023-02-01T19:45:51.2534056Z     [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 15
2023-02-01T19:45:51.2535537Z     [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0 - Payload: {"Uri":"http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json","IsRetry":true,"IsNonInteractive":true,"CanShowDialog":true}
2023-02-01T19:45:51.2536807Z     [CredentialProvider]Creating a progress reporter with interval: 00:00:02
2023-02-01T19:45:51.2538356Z     [CredentialProvider]Handling auth request, Uri: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json, IsRetry: True, IsNonInteractive: True, CanShowDialog: True
2023-02-01T19:45:51.2539532Z     [CredentialProvider]URI: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2540786Z     [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
2023-02-01T19:45:51.2542635Z     [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2544371Z     [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider to try to get credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2545686Z     [CredentialProvider]VstsBuildTaskCredentialProvider - IsRetry: True
2023-02-01T19:45:51.2546364Z     [CredentialProvider]VstsBuildTaskCredentialProvider - URI Prefixes:
2023-02-01T19:45:51.2547044Z     [CredentialProvider]VstsBuildTaskCredentialProvider - http://server5/[redacted]/
2023-02-01T19:45:51.2549469Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Matched prefix: http://server5/[redacted]/
2023-02-01T19:45:51.2550539Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Found credentials for endpoint http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2551598Z     [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0
2023-02-01T19:45:51.2552492Z     [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 0
2023-02-01T19:45:51.2555445Z     [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0 - Payload: {"Uri":"http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json","IsRetry":true,"IsNonInteractive":true,"CanShowDialog":true}
2023-02-01T19:45:51.2557050Z     [CredentialProvider]Creating a progress reporter with interval: 00:00:02
2023-02-01T19:45:51.2559102Z     [CredentialProvider]Handling auth request, Uri: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json, IsRetry: True, IsNonInteractive: True, CanShowDialog: True
2023-02-01T19:45:51.2561304Z     [CredentialProvider]URI: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2562459Z NU1301: Unable to load the service index for source http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2563201Z Errors in D:\Agent\_work\3\s\SqlBackup\SqlBackup.vbproj
2023-02-01T19:45:51.2564009Z     NU1301: Unable to load the service index for source http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2565293Z     [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
2023-02-01T19:45:51.2566992Z     [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2568725Z     [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider to try to get credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2572010Z     [CredentialProvider]VstsBuildTaskCredentialProvider - IsRetry: True
2023-02-01T19:45:51.2572769Z     [CredentialProvider]VstsBuildTaskCredentialProvider - URI Prefixes:
2023-02-01T19:45:51.2573450Z     [CredentialProvider]VstsBuildTaskCredentialProvider - http://server5/[redacted]/
2023-02-01T19:45:51.2574200Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Matched prefix: http://server5/[redacted]/
2023-02-01T19:45:51.2575204Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Found credentials for endpoint http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2576242Z     [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0
2023-02-01T19:45:51.2577074Z     [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 0
2023-02-01T19:45:51.2578390Z     [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0 - Payload: {"Uri":"http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json","IsRetry":true,"IsNonInteractive":true,"CanShowDialog":true}
2023-02-01T19:45:51.2579614Z     [CredentialProvider]Creating a progress reporter with interval: 00:00:02
2023-02-01T19:45:51.2580622Z     [CredentialProvider]Handling auth request, Uri: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json, IsRetry: True, IsNonInteractive: True, CanShowDialog: True
2023-02-01T19:45:51.2581989Z     [CredentialProvider]URI: http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2583233Z     [CredentialProvider]VstsBuildTaskServiceEndpointCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet with external endpoint credentials. Appropriate environment variable needs to be set.
2023-02-01T19:45:51.2584941Z     [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2586697Z     [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider to try to get credentials for http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
2023-02-01T19:45:51.2587856Z     [CredentialProvider]VstsBuildTaskCredentialProvider - IsRetry: True
2023-02-01T19:45:51.2588530Z     [CredentialProvider]VstsBuildTaskCredentialProvider - URI Prefixes:
2023-02-01T19:45:51.2589210Z     [CredentialProvider]VstsBuildTaskCredentialProvider - http://server5/[redacted]/
2023-02-01T19:45:51.2589958Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Matched prefix: http://server5/[redacted]/
2023-02-01T19:45:51.2591000Z     [CredentialProvider]VstsBuildTaskCredentialProvider - Found credentials for endpoint http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2592005Z     [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0
2023-02-01T19:45:51.2592850Z     [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 0
2023-02-01T19:45:51.2593573Z Checking compatibility of packages on net6.0-windows7.0.
2023-02-01T19:45:51.2594173Z All packages and projects are compatible with net6.0-windows7.0.
2023-02-01T19:45:51.2594667Z Committing restore...
2023-02-01T19:45:51.2595225Z Writing assets file to disk. Path: D:\Agent\_work\3\s\SqlBackup\obj\project.assets.json
2023-02-01T19:45:51.2595905Z Writing cache file to disk. Path: D:\Agent\_work\3\s\SqlBackup\obj\project.nuget.cache
2023-02-01T19:45:51.2596836Z Persisting dg to D:\Agent\_work\3\s\SqlBackup\obj\SqlBackup.vbproj.nuget.dgspec.json
2023-02-01T19:45:51.2597542Z Failed to restore D:\Agent\_work\3\s\SqlBackup\SqlBackup.vbproj (in 6.67 sec).
2023-02-01T19:45:51.2597865Z 
2023-02-01T19:45:51.2597998Z 
2023-02-01T19:45:51.2598349Z NuGet Config files used:
2023-02-01T19:45:51.2598797Z     D:\Agent\_work\3\Nuget\tempNuGet_26.config
2023-02-01T19:45:51.2599048Z 
2023-02-01T19:45:51.2599356Z Feeds used:
2023-02-01T19:45:51.2599926Z     http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json
2023-02-01T19:45:51.2600548Z     https://api.nuget.org/v3/index.json
2023-02-01T19:45:51.3350245Z ##[error]The nuget command failed with exit code(1) and error(NU1301: Unable to load the service index for source http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.
Errors in D:\Agent\_work\3\s\SqlBackup\SqlBackup.vbproj
    NU1301: Unable to load the service index for source http://server5/[redacted]/_packaging/5048a2f8-c40d-4f26-a336-c49ef71daff5/nuget/v3/index.json.)
2023-02-01T19:45:51.3361336Z ##[error]Packages failed to restore
2023-02-01T19:45:51.3371528Z ##[section]Finishing: NuGet restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:Authentication Area:ErrorHandling warnings and errors/log messages & related error codes. Area:Logging Functionality:Restore Priority:2 Issues for the current backlog. Type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants