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

when executing a git command that needs GitHub authorization it fails #605

Closed
2 of 4 tasks
martinkooij opened this issue Jan 9, 2022 · 9 comments
Closed
2 of 4 tasks
Labels
auth-issue An issue authenticating to a host

Comments

@martinkooij
Copy link

martinkooij commented Jan 9, 2022

gcm-diagnose.log
Which version of GCM are you using?

2.0.632+478753bbb7

Which Git host provider are you trying to connect to?

  • GitHub

Can you access the remote repository directly in the browser using the remote URL?

From a terminal, run git remote -v to see your remote URL.

  • Yes
  • No, I get a permission error
  • No, for a different reason - please describe

Expected behavior

I am authenticated and my Git operation completes successfully.

Actual behavior
executing a git push gives:

fatal: Failed to open secret service session [0x13]
fatal: No such secret item at path: /org/freedesktop/secrets/collection/login/1
Username for 'https://github.com': 

Logs

Attached

@martinkooij martinkooij added the auth-issue An issue authenticating to a host label Jan 9, 2022
@dscho
Copy link
Collaborator

dscho commented Jan 9, 2022

I guess this is on Linux, given the path /org/freedesktop/? Can you share a bit more about your configuration?

@martinkooij
Copy link
Author

martinkooij commented Jan 9, 2022

Thank you for reaching out.

yes: Linux Mint on an old laptop... OSType: Linux
OSVersion: Linux martin-mint 5.4.0-92-generic #103-Ubuntu SMP Fri Nov 26 16:13:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux.

gcm-diagnose.log

Most information on my setup can be found in the attached log file at the top line of my original Post and just above. I am a bit out of my wits because with seahorse I can see that the collection does not exist, but there are password collection in my home directory

@dscho
Copy link
Collaborator

dscho commented Jan 9, 2022

Didn't you have to configure GCM to use libsecret specifically?

@dscho
Copy link
Collaborator

dscho commented Jan 9, 2022

Also, since this seems to be a libsecret-related problem more than a GCM-related one, I allow myself to point you to https://unix.stackexchange.com/questions/265503/how-do-i-fix-no-such-secret-collection-at-path-for-gnome-keyring-and-arch-l as potentially containing hints helping you to resolve the problem.

@martinkooij
Copy link
Author

@dscho : Indeed I configured with

git config --global credential.credentialStore secretservice

as per documentation https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/credstores.md

@dscho
Copy link
Collaborator

dscho commented Jan 9, 2022

As per https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/credstores.md#freedesktoporg-secret-service-api, have you tried looking at things using secret-tool or seahorse?

@martinkooij
Copy link
Author

yes seahorse gives an empty keyring where I would expect it to work. Also seahorse gives a warning. Mmmm.. I need to delve further into this.

@martinkooij
Copy link
Author

martinkooij commented Jan 9, 2022

Ok, I retried by unconfiguring secretservice and using pass. That fails as well, it keeps asking for password. So it seems to be somewhere else, not only related to libsecret.

Yesterday it worked one time (I got the popup fro github from secretservice), but now nothing concerning these GitHub CLI authentications is working anymore, I suspect there is a deamon not running and git doesn't seem to recognize it should trigger gcm; or maybe one step later. However, running out of time now, will try one reboot, and if that fails, will pick up later this week. Thanks for reaching out!!

@martinkooij
Copy link
Author

A remove, reboot and reinstall got it working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-issue An issue authenticating to a host
Projects
None yet
Development

No branches or pull requests

2 participants