Git-Credential-Manager-Core works on one PC but failed on another

545 views
Skip to first unread message

asmwarrior

unread,
May 4, 2021, 10:21:04 PM5/4/21
to git-for-windows

Hi, I have latest Git for Windows 2.31.1 install on two Windows 7 64 bit system.

Both of them use credential manager core to remember password.

I found that in one PC A, when I git clone a repo, I got OpenSSH dialog prompted, and let me enter user name and password, and after that I see no credential record is remembered.

While in another PC B, when I get clone the same repo, I got Windows credential manager core dialog opened, and after entering the username and password, I see it get remembered. (I can see the entries in the Windows control panel.)

Here is the screen shot of both PCs.
This is the prompt in PC A which failed to remember the password.

openssh.png

This is PC B, which can remember the password.
manager-core.png

While, I did another test. I just try github(https access to a private git repo)in PC A, the openSSH prompted, but after entering the password, I see that and it can save the password, so this I get puzzled, because I'm not sure whether it is the windows credential manager core issue or my Windows system issue or the repo site issue.

Any ideas?

Thanks.

Johannes Schindelin

unread,
May 5, 2021, 10:22:44 AM5/5/21
to asmwarrior, git-for-windows
Hi,

On Tue, 4 May 2021, asmwarrior wrote:

> Hi, I have latest Git for Windows 2.31.1 install on two Windows 7 64 bit
> system.
>
> Both of them use credential manager core to remember password.
>
> I found that in one PC A, when I git clone a repo, I got OpenSSH dialog
> prompted, and let me enter user name and password, and after that I see no
> credential record is remembered.

If you see the OpenSSH dialog, it means that GCM Core could not start up.

> While in another PC B, when I get clone the same repo, I got Windows
> credential manager core dialog opened, and after entering the username and
> password, I see it get remembered. (I can see the entries in the Windows
> control panel.)
>
> Here is the screen shot of both PCs.
> This is the prompt in PC A which failed to remember the password.
>
> [image: openssh.png]
>
> This is PC B, which can remember the password.
> [image: manager-core.png]
>
> While, I did another test. I just try github(https access to a private git
> repo)in PC A, the openSSH prompted, but after entering the password, I see
> that and *it can save the password*, so this I get puzzled, because I'm not
> sure whether it is the windows credential manager core issue or my Windows
> system issue or the repo site issue.
>
> Any ideas?

My best idea is that maybe one of your PCs is on a lower .NET Framework
version. In
https://github.com/git-for-windows/build-extra/pull/329#issuecomment-788791683,
the GCM Core maintainer clarified that .NET Framework 4.6.1 is required to
run GCM Core on Windows.

Ciao,
Johannes

asmwarrior

unread,
May 5, 2021, 10:59:02 AM5/5/21
to git-for-windows
On Wednesday, May 5, 2021 at 10:22:44 PM UTC+8 johannes....@gmail.com wrote:
Hi,

On Tue, 4 May 2021, asmwarrior wrote:

> Hi, I have latest Git for Windows 2.31.1 install on two Windows 7 64 bit
> system.
>
> Both of them use credential manager core to remember password.
>
> I found that in one PC A, when I git clone a repo, I got OpenSSH dialog
> prompted, and let me enter user name and password, and after that I see no
> credential record is remembered.

If you see the OpenSSH dialog, it means that GCM Core could not start up.


OK, I see, thanks for the explanation.
 

> While in another PC B, when I get clone the same repo, I got Windows
> credential manager core dialog opened, and after entering the username and
> password, I see it get remembered. (I can see the entries in the Windows
> control panel.)
>
> Here is the screen shot of both PCs.
> This is the prompt in PC A which failed to remember the password.
>
> [image: openssh.png]
>
> This is PC B, which can remember the password.
> [image: manager-core.png]
>
> While, I did another test. I just try github(https access to a private git
> repo)in PC A, the openSSH prompted, but after entering the password, I see
> that and *it can save the password*, so this I get puzzled, because I'm not
> sure whether it is the windows credential manager core issue or my Windows
> system issue or the repo site issue.
>
> Any ideas?

My best idea is that maybe one of your PCs is on a lower .NET Framework
version. In
https://github.com/git-for-windows/build-extra/pull/329#issuecomment-788791683,
the GCM Core maintainer clarified that .NET Framework 4.6.1 is required to
run GCM Core on Windows.

I double checked .NET Framework already, and I have the latest 4.8 version on both of my PCs, so I think this issue is not related to .NET Framework version.

So, I'm still not sure what cause this issue, I have tried to turn off all the firewall in my PC, but still no luck.

Asmwarrior

 

Ciao,
Johannes

Johannes Schindelin

unread,
May 6, 2021, 4:44:52 PM5/6/21
to asmwarrior, git-for-windows
Hi,

I almost missed your reply because you forgot to reply-to-all. If you
value my feedback, please keep me in Cc:.
Okay.

> So, I'm still not sure what cause this issue, I have tried to turn off all
> the firewall in my PC, but still no luck.

The fact that GCM Core is apparently not called _at all_ might be the
actual reason.

To debug this further, try to set `GIT_TRACE=1` to verify that
`git-credential-manager-core.exe` is run.

If not, have a loot at `git config --show-origin --get-all
credential.helper`. If there is any empty entry toward the end, or if
`manager-core` is not even mentioned, that's the problem right there.

Ciao,
Johannes

asmwarrior

unread,
May 7, 2021, 11:10:42 PM5/7/21
to git-for-windows
Hi, Ciao, thanks for the help.

I just tried your debugging method to enable the GIT_TRACE environment variable, I just see some line printed like:

10:35:38.077468 run-command.c:667       trace: run_command: git-credential-manager-core get

Which means git-credential-manager-core is started, but shortly the connection get lost. I just test several git repos in different site, I see that this happens in only one site, so I believe it is the site issue, not the my git client side issue.

The interesting thing is: in my old PC,  where the username and password are already recorded by gcm-core (maybe before the git site get broken), though I can see this connecting issue, but git-credential-manager-core seems still works OK, I mean I don't need to enter username and password, gcm-core still use the remembered ones.
The issue happens in my new PC, which means git-credential-manager-core normally need to pop up some dialog to let me enter the username and password for the first time, but the connecting issue seems blocking the popup dialog, so everything I use the git, I have to enter the username and password again and again.

I'm connecting with the site service, and if it get solved, I will report it here, thanks!

asmwarrior

asmwarrior

unread,
May 7, 2021, 11:28:51 PM5/7/21
to git-for-windows

Hi, in the web site of the google groups(https://groups.google.com/g/git-for-windows), I did click the "reply All", but after I click the "Post message" button, I still see this message only goes to the google groups, I don't see there is a CC option to add your address.

So, I see this is an issue of google group?

Maybe you are using your email client, which has a correct "reply all" feature.
On Friday, May 7, 2021 at 4:44:52 AM UTC+8 johannes....@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages