-
Notifications
You must be signed in to change notification settings - Fork 588
Git failed with a fatal error. Authentication failed #660
Comments
Which version of Visual Studio are you using? I'm wondering if you're experiencing the same problem as described here (note I'm pointing to the comment, not the issue itself). |
We are using Visual Studio Enterprise 2017 15.7.3 on all developer workstations. |
15.7.3 Yup, we've found a bug in the Git for Windows package that we shipped in Visual Studio (VS does not use your installed Git, but instead contains its own Git package) that affects users using Secure Channel. If you look at |
On both working and not working workstation the option is set to "Löschen / Delete(?)". We are working with the German version of Visual Studio. |
"Delete"?! Maybe "Unset"? Hmm - wonder if we have a translation failure here. If unset, it should be defaulting to OpenSSL. Why not try OpenSSL and/or Secure Channel and see if one unblocks you? |
Hi, I have the same issue here. VS 15.7.3 german version, Windows 10. I'm connected via VPN and also use a private server with http connection. I tried to repair VS, reinstall GIT, OpenSSL and secure Channel. Different configurations. Nothing works. (it works with browser) Every time the same message: Fehler beim Abrufen: Git failed with a fatal error. |
A better german translation for "Unset" could be "Nicht festgelegt" or something like that... But anyhow: We alread tried to switch the Cryptographic network provider settings as we found this as a common tip on stackoverflow. But this doesn't work either. Any other ideas? And one important thing: Thank you so much for your commitment and that you try to help us in this case! |
hmm.. I tried the same with Visual Studio Code and get the same message:
|
that's strange.. I tried different things.. @DigitalAssasin : It's maybe also a solution for you ? |
Ok... I think, this is a thing we haven't tried. We will try this and report. Thanks! Update We tried this solution but it also doesn't work on our site. |
Hi together, this issue persists also with the latest Visual Studio 2017 Enterprise Release 15.7.4. But an other interesting thing: It seems that the error is caused by anything around the user account. If we use other account information on the same workstation, the cloning works great. Maybe this is more a TFS user account management related issue. We will research further and report our future findings. |
OK, we figured it out. The cloning problems were cause by a special character in the domain account password of my colleague. His password contained a '#' character which prevented him from cloning the repository. We changed his password and now everything is working fine. Do you think this behavior is relevant for the Windows Credential Manager? Or is it more a Git issue? |
Um... whoa! THAT SHOULD NOT HAPPEN.
I'm guessing that this is a bug in libcurl (Git component). I think the real solution here is to ask your TFS admin to enable NTLM authentication to the server. This will avoid entering your username + password when accessing the server, and instead rely on NTLM to handle everything for you. |
Hi all, |
@rockit666 can you collect trace logs of the problem?
Once you have the logs, please share them here. Of course, please redact the logs for any private, secret, or personally identifiable information before sharing. Git trace logs get large quickly, to stop the trace log collection
|
I solved the authentication issue by removing the GIT credentials from windows account manager (control panel). After this Windows asks for credentials during the next GIT session and stores them again in cedential manager. |
Not to tell too much about your password, but I'm pretty sure # isn't the issue but ¤ is on the other hand. I had to change password for the exact same reason... :-/ |
thanks @hjzech this solved my issue!! |
Same here! Thanks @hjzech! Did it in Control Panel\Credential Manager => Windows Credentials |
My problem, too. Thanks! |
It happened to me too, because I configured another git / github account and windows saved on the credentials, when I noticed the error I changed only in gitconfig but windows continued with the other stored account and this caused several conflicts in my VS2017. After removing all credentials from git, VS ran normally. |
Removing my Git Credentials from Credential Manager solved my issue... |
The same thing to me, removing my Git Credentials but in French : Gestionnaire d'identification |
Please somebody tell me what the cli equivalent of this resetting credentials, because in a company domain I have no permission to reach that panel. |
I got the error message described in the OP today on git fetch from an http (not https) repo on our Windows domain. It took a while troubleshooting until my IT guy found this issue. Deleting my credentials for that repo from Windows Credential Manager as described by @hjzech resolved my problem for now. Is there a way to add some feature to GCMW or Git for Windows to fix or workaround this automatically? Say to have it prompt for new credentials when the stored ones fail. That way future users (including myself when I forget) don't have to spend hours troubleshooting. |
Fixed this issue with Windows Credential Manager (Control Panel). I found the entry for the GitLab I was trying to hit and deleted it. Next time I made a pull request it popped a login box. |
Just wanted to add a +1 and thanks for this, as this (Windows Credential Manager in Control Panel) also fixed my issue with closing GIT repos in TFS. |
My problem too. Thanks @hjzech. |
I hate the issue, really. This was one the points that made me move to linux. It's madness. It works only at first time use! If you change your domain password - you're on tiny ice. In my case I should GUESS on my own that I MUST NOT delete the record from Windows Credential Manager and just update it! Otherwise I would get into endless I spent like hours of searching, trying, googling. I just lost my patient and make it use local file storage. It's not secure at all, but at least my butt will not burn after each password change! |
use git bash it solves all problems |
I've met same issue. My solution is run Microsoft Visual Studio (Pro. version) as Administrator, then login your Git account in github.com website. Then clone again. Hope this help you. Thanks ! |
The problem has occurred to me too. As @Kira-Lappo mentioned, there is no way back when you remove your git credential from windows credentials manager. I did it and I couldn't reach the remote git server through visual studio, instead, direct access using cli worked for me. Other Reports
Finally The interesting section My Comment |
I had an issue because I had a space character in my Windows password. Once I changed my password I had to remove the Windows Credential and then it allowed me to log in again. This is very disappointing because I like typing sentences into my passwords, now I am back to old dumb ones. |
Anyone else finding themselves here - take note if you may be on a corporate proxy. Steps to resolve (On windows):
Ensure correct Username and Email is specified in [user]
Documentation References: |
You're basically saying: don't use Git Credential Manager for Windows. I agree. But then you say: "use wincred" despite the fact that it is unmaintained. I would say: use Git Credential Manager Core instead. |
Hi gentlemen,
I browsed the issues of the credential manager repository but none of the tipps and solutions helped us so far.
We have an on-premise installation of TFS 2018 running. On all but one workspaces we can work fine with the TFS-Git repository. On one workplace there is an issue with authentication.
While cloning the repository from Visual Studio, Team Explorer shows this error:
Git failed with a fatal error.
Authentication failed for 'http://tfs-2018:8080/tfs/cadclickcollection/CADClick%20Projects/_git/ccCatalog/'
On the command line, cloning is working great.
I tried already to log during a clone process and I can see only one significant difference.
On my (working) computer credential manager creates and stores the correct authentication information.
git_working.log
On the other (not working computer) credential manager tries to erase them.
git_not_working.log
We already tried things like manual creation and clean sweeping of the credentials. We tried to uninstall and re-install both Git and Visual Studio. We also tried to set the authentication method by environment variable.
Currently we use the Git for Windows which is shipped by the Visual Studio Installer.
Any ideas what we can do to get deeper in the research what causes this error on our side?
Regards,
Christian
The text was updated successfully, but these errors were encountered: