Git-credential-manager-for-windows: Git DevOps - No Azure prompt window

Created on 8 May 2019  路  3Comments  路  Source: microsoft/Git-Credential-Manager-for-Windows

Which Version of GCM are you using ?
From a command prompt, run git credential-manager version and paste the output.

_12:04:47.644870 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
12:04:47.647339 git.c:676 trace: exec: git-credential-manager version
12:04:47.647339 run-command.c:643 trace: run_command: git-credential-manager version
12:04:47.923578 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'version'
Git Credential Manager for Windows version 1.18.5_

Which service are you trying to connect to

  • [X] Azure DevOps
  • [ ] Azure DevOps Server (TFS/on-prem)
  • [ ] GitHub
  • [ ] GitHub Enterprise
  • [ ] Bitbucket
  • [ ] Other? - please describe;

If AzureDevops Hosted describe your url

  • [X] dev.azure.com/org
  • [X] org.visualstudio.com

If you're using Azure DevOps, can you access the repository in the browser via the same URL?

  • [X] Yes
  • [ ] No, I get a permission error.
  • [ ] No, for a different reason:

If you're using Azure DevOps, and the account picker shows more than one identity as you authenticate, check that you selected the same one that has access on the web.

  • [ ] I only see one identity.
  • [ ] I checked each and none worked.
  • [X] I'm not seeing any Azure prompt window.

Environment

  • SO: Clean Windows 10 LTSC (updated). Was formatted 2 days ago and it's not a AD joined PC.
  • GIT version: 2.21.0.windows.1
  • GCM version: 1.18.5
  • GitConfig file untouched.

Expected behavior
After run a git clone, an Azure prompt should appear to enter my credentials or, from VS Code, I should be able to clone my repo using the "new" way.

Actual behavior
It throws the typical error and nothing happens... no Azure windows asking to enter my creds. I'm not having the opportunity to enter any credential before the error appears and there's no any git credential already set in my Windows Credential repository. No problems accessing via browser.

It seems that I'm passing credentials (401) but I've not been able to do configure it before so I don't understand anything :(

I've tried to uninstall and clean all git and gcm files and configs... same behavior. If I change the creds system from GCM to Wincred and Basic, I can work without any problems.

Here is the log:

git clone https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts
12:04:56.344614 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/bin
12:04:56.346596 git.c:419 trace: built-in: git clone https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts
Cloning into 'Scripts'...
12:04:56.395663 run-command.c:643 trace: run_command: git remote-https origin https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts
12:04:56.414012 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:04:56.416953 git.c:676 trace: exec: git-remote-https origin https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts
12:04:56.416953 run-command.c:643 trace: run_command: git-remote-https origin https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts
12:04:56.443243 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:04:56.859143 run-command.c:643 trace: run_command: 'git credential-manager get'
12:04:56.914935 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:04:56.916422 git.c:676 trace: exec: git-credential-manager get
12:04:56.916422 run-command.c:643 trace: run_command: git-credential-manager get
12:04:57.010165 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'get'
12:04:57.098453 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).
12:04:57.105399 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.
12:04:57.183767 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for 'https://xxxxxxxx.visualstudio.com/'.
12:04:57.207577 ...uthentication.cs:199 trace: [DetectAuthority] 'https://xxxxxxxx.visualstudio.com/' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.
12:04:57.213527 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.
12:04:57.299334 ...\Common.cs:140 trace: [CreateAuthentication] authority for 'https://xxxxxxxx.visualstudio.com/' is Azure Directory.
12:04:57.299829 ...\Common.cs:765 trace: [QueryCredentials] querying 'AzureDirectory' for credentials.
12:05:05.108600 ...\Program.cs:601 trace: [Run] ! error: 'An error occurred while sending the request.'.
12:05:05.109603 ...\Program.cs:601 trace: [Run] > 'The remote server returned an error: (401) Unauthorized.'.
12:05:05.110085 ...\Program.cs:601 trace: [Run] > 'The system cannot contact a domain controller to service the authentication request. Please try again later'.
12:05:05.113557 ...\Common.cs:709 trace: [LogEvent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. ---> System.ComponentModel.Win32Exception: The system cannot contact a domain controller to service the authentication request. Please try again later
at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)
at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAuth()
at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.HttpClientWrapper.d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.WsTrust.WsTrustRequest.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenNonInteractiveHandler.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContextIntegratedAuthExtensions.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.Adal.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.Authority.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.AadAuthentication.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.CommonFunctions.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.Program.<b__24_0>d.MoveNext()
12:05:05.133895 ...\Program.cs:601 trace: [Run] fatal: HttpRequestException encountered.
An error occurred while sending the request.
fatal: HttpRequestException encountered.
An error occurred while sending the request.
12:05:05.182495 run-command.c:643 trace: run_command: 'git credential-manager get'
12:05:05.233055 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:05:05.234544 git.c:676 trace: exec: git-credential-manager get
12:05:05.234544 run-command.c:643 trace: run_command: git-credential-manager get
12:05:05.328781 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'get'
12:05:05.426991 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).
12:05:05.433437 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.
12:05:05.523710 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for 'https://xxxxxxxx.visualstudio.com/'.
12:05:05.547518 ...uthentication.cs:199 trace: [DetectAuthority] 'https://xxxxxxxx.visualstudio.com/' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.
12:05:05.549502 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.
12:05:05.561406 ...\Common.cs:140 trace: [CreateAuthentication] authority for 'https://xxxxxxxx.visualstudio.com/' is Azure Directory.
12:05:05.562398 ...\Common.cs:765 trace: [QueryCredentials] querying 'AzureDirectory' for credentials.
12:05:06.720794 ...\Program.cs:601 trace: [Run] ! error: 'An error occurred while sending the request.'.
12:05:06.721783 ...\Program.cs:601 trace: [Run] > 'The remote server returned an error: (401) Unauthorized.'.
12:05:06.722785 ...\Program.cs:601 trace: [Run] > 'The system cannot contact a domain controller to service the authentication request. Please try again later'.
12:05:06.726247 ...\Common.cs:709 trace: [LogEvent] System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized. ---> System.ComponentModel.Win32Exception: The system cannot contact a domain controller to service the authentication request. Please try again later
at System.Net.NTAuthentication.GetOutgoingBlob(Byte[] incomingBlob, Boolean throwOnError, SecurityStatus& statusCode)
at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)
at System.Net.NegotiateClient.DoAuthenticate(String challenge, WebRequest webRequest, ICredentials credentials, Boolean preAuthenticate)
at System.Net.NegotiateClient.Authenticate(String challenge, WebRequest webRequest, ICredentials credentials)
at System.Net.AuthenticationManagerDefault.Authenticate(String challenge, WebRequest request, ICredentials credentials)
at System.Net.AuthenticationState.AttemptAuthenticate(HttpWebRequest httpWebRequest, ICredentials authInfo)
at System.Net.HttpWebRequest.CheckResubmitForAuth()
at System.Net.HttpWebRequest.CheckResubmit(Exception& e, Boolean& disableUpload)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Http.HttpClientWrapper.d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.WsTrust.WsTrustRequest.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenNonInteractiveHandler.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.Internal.Flows.AcquireTokenHandlerBase.d__57.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContextIntegratedAuthExtensions.d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.Adal.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.Authority.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at AzureDevOps.Authentication.AadAuthentication.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.CommonFunctions.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Alm.Cli.Program.<b__24_0>d.MoveNext()
12:05:06.747080 ...\Program.cs:601 trace: [Run] fatal: HttpRequestException encountered.
An error occurred while sending the request.
fatal: HttpRequestException encountered.
An error occurred while sending the request.
12:05:06.780311 run-command.c:643 trace: run_command: bash -c 'test "a$SHELL" '!'= "a${SHELL%.exe}" || exit 127; cat >/dev/tty && read -r line Username for 'https://xxxxxxxx.visualstudio.com':
12:10:36.984775 run-command.c:643 trace: run_command: bash -c 'test "a$SHELL" '!'= "a${SHELL%.exe}" || exit 127; cat >/dev/tty && read -r -s line Password for 'https://xxxxxxxx.visualstudio.com':
12:10:37.739058 run-command.c:643 trace: run_command: 'git credential-manager erase'
12:10:37.800150 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:10:37.802133 git.c:676 trace: exec: git-credential-manager erase
12:10:37.802133 run-command.c:643 trace: run_command: git-credential-manager erase
12:10:37.894844 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'erase'
12:10:38.001982 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).
12:10:38.008925 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.
12:10:38.081340 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for 'https://xxxxxxxx.visualstudio.com/'.
12:10:38.106142 ...uthentication.cs:199 trace: [DetectAuthority] 'https://xxxxxxxx.visualstudio.com/' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.
12:10:38.108125 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.
12:10:38.119037 ...\Common.cs:140 trace: [CreateAuthentication] authority for 'https://xxxxxxxx.visualstudio.com/' is Azure Directory.
12:10:38.119549 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for 'https://xxxxxxxx.visualstudio.com/'.
12:10:38.193447 ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git:https://xxxxxxxx.visualstudio.com'.
12:10:38.224688 run-command.c:643 trace: run_command: 'git credential-manager erase'
12:10:38.288172 exec-cmd.c:236 trace: resolved executable dir: C:/Program Files/Git/mingw64/libexec/git-core
12:10:38.289661 git.c:676 trace: exec: git-credential-manager erase
12:10:38.289661 run-command.c:643 trace: run_command: git-credential-manager erase
12:10:38.375468 ...\Common.cs:744 trace: [Main] git-credential-manager (v1.18.5) 'erase'
12:10:38.474669 ...\Git\Where.cs:348 trace: [FindGitInstallations] found 1 Git installation(s).
12:10:38.484589 ...Configuration.cs:222 trace: [LoadGitConfiguration] git All config read, 16 entries.
12:10:38.548076 ...\Common.cs:85 trace: [CreateAuthentication] detecting authority type for 'https://xxxxxxxx.visualstudio.com/'.
12:10:38.572382 ...uthentication.cs:199 trace: [DetectAuthority] 'https://xxxxxxxx.visualstudio.com/' is Azure DevOps, tenant resource is {xxxxxxxxxxxxxxxxxxxxxxx}.
12:10:38.574365 ...uthentication.cs:359 trace: [GetAuthentication] AAD authority for tenant 'xxxxxxxxxxxxxxxxxxxxxxx' detected.
12:10:38.583788 ...\Common.cs:140 trace: [CreateAuthentication] authority for 'https://xxxxxxxx.visualstudio.com/' is Azure Directory.
12:10:38.584285 ...\Common.cs:259 trace: [DeleteCredentials] deleting Azure DevOps credentials for 'https://xxxxxxxx.visualstudio.com/'.
12:10:38.595198 ...aseSecureStore.cs:59 trace: [Delete] credentials not found for 'git:https://xxxxxxxx.visualstudio.com'.
fatal: Authentication failed for 'https://xxxxxxxx.visualstudio.com/Repo/_git/Scripts/'

Most helpful comment

Please try the new release https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.19.0. This should fix the issue you are seeing.

All 3 comments

Please try the new release https://github.com/microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.19.0. This should fix the issue you are seeing.

I have somewhat similar issue with Azuer DevOps on local network.

No windows popup message.
Just error
fatal: Authentication failed for 'http://192.168.1.122:1080/

I tried different options in Credential Manager, nothing helps.
I can connect from Visual Studio 2019, but when I'm trying to clone I see the same error.

Does it work at all?

I reinstalled the whole system and now it works. I know that it's not a solution but it was urgent to make this work.

With 1.19 is working as expected.

Was this page helpful?
0 / 5 - 0 ratings