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

"dotnet restore --interactive" in WSL fails (does not pop up UI) #549

Closed
donnie-msft opened this issue Mar 14, 2025 · 3 comments
Closed

Comments

@donnie-msft
Copy link

donnie-msft commented Mar 14, 2025

Transferred from NuGet/Home#14169. Provided by @EranGon

NuGet Product Used

dotnet.exe

Product Version

9.0.103

Worked before?

Yes, but not sure what was the version

Impact

I'm unable to use this version

Repro Steps & Context

The symptoms

In WSL, when running "dotnet restore --interactive", no UI pops up, and restoring fails.
The only errors I get are these:
/usr/lib/dotnet/sdk/9.0.103/NuGet.targets(170,5): warning : [CredentialProvider]Warning: Cannot persist Microsoft authentication token cache securely!
/usr/lib/dotnet/sdk/9.0.103/NuGet.targets(170,5): warning : [CredentialProvider]Warning: Using plain-text fallback token cache

To Reproduce

Any .NET 8 project
WSL with Ubuntu distro version 22.04.5 LTS
dotnet version 9.0.103
Feed is hosted in Azure DevOps artifacts

Verbose Logs

> dotnet restore --interactive -v diag
/usr/lib/dotnet/sdk/9.0.103/MSBuild.dll -nologo -maxcpucount -property:NuGetInteractive=true -target:Restore -tlp:default=auto -verbosity:m -verbosity:diag ./mysolution.sln
/usr/lib/dotnet/sdk/9.0.103/NuGet.targets(170,5): warning :     [CredentialProvider]Warning: Cannot persist Microsoft authentication token cache securely!
/usr/lib/dotnet/sdk/9.0.103/NuGet.targets(170,5): warning :     [CredentialProvider]Warning: Using plain-text fallback token cache
@embetten
Copy link
Contributor

embetten commented Mar 14, 2025

@EranGon - we need more of the [CredentialProvider] logs to investigate further. Mainly, we need which authentication flow it was attempting to use. Did it fall through to device code flow, and you want to use browser auth? If so, you need to set NUGET_CREDENTIALPROVIDER_FORCE_CANSHOWDIALOG_TO to true because of NuGet/Home#14010.

There was a stale issue that was closed about WSL using the windows context. Please comment on this issue to reopen if this is the case: #461

@EranGon
Copy link

EranGon commented Mar 17, 2025

@embetten here's the required logs.
Couple of things to notice:

  1. I redacted a bit of sensetive data from it: [FeedUrl], [ProjectPath]
  2. The log is truncated, since it seems to be in a retry loop - let me know if more data is needed
                     Using /home/erang/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll as a credential provider plugin. (TaskId:282)
                         [CredentialProvider.101843]Running in plug-in mode (TaskId:282)
                         [CredentialProvider.101843]Command-line v1.3.0-alpha+b66855cc5cb87b5a1c6e925ab84a532ec9c72e8b: /home/erang/.nuget/plugins/netcore/CredentialProvider.Microsoft/CredentialProvider.Microsoft.dll -Plugin (TaskId:282)
                         [CredentialProvider.101843]Handling 'Request' 'Initialize'. Time elapsed in ms: 4 - Payload: {"ClientVersion":"6.8.1","Culture":"en","RequestTimeout":"00:00:30"} (TaskId:282)
                         [CredentialProvider.101843]Sending response: 'Request' 'Initialize'. Time elapsed in ms: 7 (TaskId:282)
                         [CredentialProvider.101843]Time elapsed in milliseconds after sending response 'Request' 'Initialize': 9 (TaskId:282)
                         [CredentialProvider.101843]Handling 'Request' 'GetOperationClaims'. Time elapsed in ms: 1 - Payload: {} (TaskId:282)
                         [CredentialProvider.101843]Sending response: 'Request' 'GetOperationClaims'. Time elapsed in ms: 6 (TaskId:282)
                         [CredentialProvider.101843]Time elapsed in milliseconds after sending response 'Request' 'GetOperationClaims': 16 (TaskId:282)
                         [CredentialProvider.101843]Handling 'Request' 'SetLogLevel'. Time elapsed in ms: 1 - Payload: {"LogLevel":"Debug"} (TaskId:282)
                         [CredentialProvider]Sending response: 'Request' 'SetLogLevel'. Time elapsed in ms: 1 (TaskId:282)
                         [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'SetLogLevel': 8 (TaskId:282)
                         [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 13 - Payload: {"Uri":"[FeedUrl]","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":false} (TaskId:282)
                         [CredentialProvider]Creating a progress reporter with interval: 00:00:02 (TaskId:282)
                         [CredentialProvider]Handling auth request, Uri: [FeedUrl], IsRetry: False, IsNonInteractive: False, CanShowDialog: False (TaskId:282)
                         [CredentialProvider]URI: [FeedUrl] (TaskId:282)
                         [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. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Matched well-known Azure DevOps Service hostname: pkgs.dev.azure.com (TaskId:282)
                         [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.Vsts.VstsCredentialProvider to try to get credentials for [FeedUrl]. (TaskId:282)
                         [CredentialProvider]IsRetry: False (TaskId:282)
                         [CredentialProvider]Could not find cached SessionToken for [FeedUrl] (TaskId:282)
                         [CredentialProvider]Forcing canShowDialog from False to True due to setting from environment variable (TaskId:282)
                         [CredentialProvider]GET [FeedUrl] (TaskId:282)
                         [CredentialProvider]Found AAD Authority from 401 headers: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Using Entra authority: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]Using MSAL cache at /home/erang/.local/.IdentityService/msal.cache (TaskId:282)
10:18:44.406     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]Warning: Cannot persist Microsoft authentication token cache securely! [[ProjectPath]]
                         [CredentialProvider]Microsoft.Identity.Client.Extensions.Msal.MsalCachePersistenceException: Persistence check failed. Reason: An exception was encountered while processing libsecret error information during saving in the Storage. Error code: 0. OS error code 0.
10:18:44.407     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]Warning: Using plain-text fallback token cache [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Service Principal' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Managed Identity' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Silent' (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z] [Internal cache] Clearing user token cache accessor. (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0 (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 89bfeb91-40d9-472f-9d3d-fd3d370ceaa5] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 89bfeb91-40d9-472f-9d3d-fd3d370ceaa5] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 89bfeb91-40d9-472f-9d3d-fd3d370ceaa5] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 89bfeb91-40d9-472f-9d3d-fd3d370ceaa5] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z] Found 0 cache accounts and 0 broker accounts (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z] Returning 0 accounts (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Silent' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Interactive' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(61845472-7392-403c-85fd-578263faf5de) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] === InteractiveParameters Data ===
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] === Token Acquisition (InteractiveRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:18:44Z - 61845472-7392-403c-85fd-578263faf5de] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 61845472-7392-403c-85fd-578263faf5de] The HTTP request was canceled.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Error): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 61845472-7392-403c-85fd-578263faf5de] Exception type: System.Threading.Tasks.TaskCanceledException
10:20:14.489     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]A task was canceled. [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Interactive' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Device Code' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(1e75824e-a93c-4c7d-94b8-31a62eca9b37) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] === Token Acquisition (DeviceCodeRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:14Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)
                         [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0 - Payload: {"Uri":"[FeedUrl]","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":false} (TaskId:282)
                         [CredentialProvider]Creating a progress reporter with interval: 00:00:02 (TaskId:282)
                         [CredentialProvider]Handling auth request, Uri: [FeedUrl], IsRetry: False, IsNonInteractive: False, CanShowDialog: False (TaskId:282)
                         [CredentialProvider]URI: [FeedUrl] (TaskId:282)
                         [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. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Matched well-known Azure DevOps Service hostname: pkgs.dev.azure.com (TaskId:282)
                         [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.Vsts.VstsCredentialProvider to try to get credentials for [FeedUrl]. (TaskId:282)
                         [CredentialProvider]IsRetry: False (TaskId:282)
                         [CredentialProvider]Could not find cached SessionToken for [FeedUrl] (TaskId:282)
                         [CredentialProvider]Forcing canShowDialog from False to True due to setting from environment variable (TaskId:282)
                         [CredentialProvider]Found AAD Authority from 401 headers: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Using Entra authority: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Service Principal' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Managed Identity' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Silent' (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z] [Internal cache] Clearing user token cache accessor. (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0 (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 8dd00ce4-2636-4502-8892-83a03bf015ca] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 8dd00ce4-2636-4502-8892-83a03bf015ca] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 8dd00ce4-2636-4502-8892-83a03bf015ca] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 8dd00ce4-2636-4502-8892-83a03bf015ca] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z] Found 0 cache accounts and 0 broker accounts (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z] Returning 0 accounts (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Silent' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Interactive' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(0721de91-9c5f-49d2-b154-79983e3c60ea) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] === InteractiveParameters Data ===
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] === Token Acquisition (InteractiveRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:20:23Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:44Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] The HTTP request was canceled.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Error): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:44Z - 1e75824e-a93c-4c7d-94b8-31a62eca9b37] Exception type: System.Threading.Tasks.TaskCanceledException
10:21:44.528     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]A task was canceled. [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Device Code' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Could not obtain credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]Unable to acquire credentials. (TaskId:282)
                         [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 181050 (TaskId:282)
                         [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 181053 (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] The HTTP request was canceled.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Error): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - 0721de91-9c5f-49d2-b154-79983e3c60ea] Exception type: System.Threading.Tasks.TaskCanceledException
10:21:53.381     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]A task was canceled. [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Interactive' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Device Code' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(ef8da05e-eca9-415c-bcda-14bb6230b7ce) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] === Token Acquisition (DeviceCodeRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:21:53Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)
                         [CredentialProvider]Handling 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 0 - Payload: {"Uri":"[FeedUrl]","IsRetry":false,"IsNonInteractive":false,"CanShowDialog":false} (TaskId:282)
                         [CredentialProvider]Creating a progress reporter with interval: 00:00:02 (TaskId:282)
                         [CredentialProvider]Handling auth request, Uri: [FeedUrl], IsRetry: False, IsNonInteractive: False, CanShowDialog: False (TaskId:282)
                         [CredentialProvider]URI: [FeedUrl] (TaskId:282)
                         [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. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTaskServiceEndpoint.VstsBuildTaskServiceEndpointCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsBuildTaskCredentialProvider - This credential provider must be run under the Team Build tasks for NuGet. Appropriate environment variables must be set. (TaskId:282)
                         [CredentialProvider]Skipping NuGetCredentialProvider.CredentialProviders.VstsBuildTask.VstsBuildTaskCredentialProvider, cannot provide credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Matched well-known Azure DevOps Service hostname: pkgs.dev.azure.com (TaskId:282)
                         [CredentialProvider]Using NuGetCredentialProvider.CredentialProviders.Vsts.VstsCredentialProvider to try to get credentials for [FeedUrl]. (TaskId:282)
                         [CredentialProvider]IsRetry: False (TaskId:282)
                         [CredentialProvider]Could not find cached SessionToken for [FeedUrl] (TaskId:282)
                         [CredentialProvider]Forcing canShowDialog from False to True due to setting from environment variable (TaskId:282)
                         [CredentialProvider]Found AAD Authority from 401 headers: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Using Entra authority: https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47 (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Service Principal' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Not running bearer token provider 'MSAL Managed Identity' (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Silent' (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z] [Internal cache] Clearing user token cache accessor. (TaskId:282)
                         [CredentialProvider]MSAL Log (Always): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 0 (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - e478bd27-fdee-43f3-afd2-3adb067d7595] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - e478bd27-fdee-43f3-afd2-3adb067d7595] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - e478bd27-fdee-43f3-afd2-3adb067d7595] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - e478bd27-fdee-43f3-afd2-3adb067d7595] IsLegacyAdalCacheEnabled: yes (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z] Found 0 cache accounts and 0 broker accounts (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z] Returning 0 accounts (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Silent' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Interactive' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(de40d276-4ee6-4422-8495-0b3364d699da) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] === InteractiveParameters Data ===
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] === Token Acquisition (InteractiveRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:22:04Z - de40d276-4ee6-4422-8495-0b3364d699da] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:23Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] The HTTP request was canceled.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Error): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:23Z - ef8da05e-eca9-415c-bcda-14bb6230b7ce] Exception type: System.Threading.Tasks.TaskCanceledException
10:23:23.352     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]A task was canceled. [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Device Code' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Could not obtain credentials for [FeedUrl] (TaskId:282)
                         [CredentialProvider]Unable to acquire credentials. (TaskId:282)
                         [CredentialProvider]Sending response: 'Request' 'GetAuthenticationCredentials'. Time elapsed in ms: 180001 (TaskId:282)
                         [CredentialProvider]Time elapsed in milliseconds after sending response 'Request' 'GetAuthenticationCredentials': 180001 (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - de40d276-4ee6-4422-8495-0b3364d699da] The HTTP request was canceled.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Error): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - de40d276-4ee6-4422-8495-0b3364d699da] Exception type: System.Threading.Tasks.TaskCanceledException
10:23:35.011     1>/usr/lib/dotnet/sdk/8.0.112/NuGet.targets(156,5): warning :     [CredentialProvider]A task was canceled. [[ProjectPath]]
                         [CredentialProvider]VstsCredentialProvider - Bearer token provider 'MSAL Interactive' didn't acquire a token (TaskId:282)
                         [CredentialProvider]VstsCredentialProvider - Attempting to acquire bearer token using provider 'MSAL Device Code' (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752] MSAL MSAL.NetCore with assembly version '4.64.0.0'. CorrelationId(62a51be8-159a-4806-8942-ec14e48ef752) (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752]
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752] === Token Acquisition (DeviceCodeRequest) started:
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752] [Instance Discovery] Instance discovery is enabled and will be performed (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752] [Region discovery] Not using a regional authority.  (TaskId:282)
                         [CredentialProvider]MSAL Log (Info): False MSAL 4.64.0.0 MSAL.NetCore .NET 8.0.12 Linux [2025-03-17 08:23:34Z - 62a51be8-159a-4806-8942-ec14e48ef752] Fetching instance discovery from the network from host login.windows.net.  (TaskId:282)

@EranGon
Copy link

EranGon commented Mar 17, 2025

After more investigation, it appeared that the issue was a result of network connectivity issues in my WSL.
The issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants