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

Occasionally cannot start/detect GPG agent #18484

Closed
Vectorial1024 opened this issue Apr 19, 2024 · 1 comment
Closed

Occasionally cannot start/detect GPG agent #18484

Vectorial1024 opened this issue Apr 19, 2024 · 1 comment

Comments

@Vectorial1024
Copy link

The problem

I have enabled GPG key signing on commit.

Sometimes, especially when committing for the first time of the day, I got this popup message saying GH Desktop cannot sign my commits:

gpg: error running '/usr/lib/gnupg/keyboxd': probably not installed
gpg: failed to start keyboxd '/usr/lib/gnupg/keyboxd': Configuration error
gpg: can't connect to the keyboxd: Configuration error
gpg: error opening key DB: No Keybox daemon running
gpg: skipped "587FDC3BDC79957A": Input/output error
gpg: signing failed: Input/output error
error: gpg failed to sign the data
fatal: failed to write commit object

Would this be a potential problem of GitHub Desktop?

Release version

3.3.14

Operating system

Windows 11

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

image

Additional context

Manually starting the keybox daemon will fix this; e.g. ref https://superuser.com/questions/1153101/why-does-git-complain-that-no-gpg-agent-is-running

The following command starts the gpg-agent on Windows:
gpg-connect-agent reloadagent /bye

Alternatively, committing via e.g. SourceTree at least once will somehow start the GPG agent, and then I can continue using GitHub Desktop for more commits on the same day.

Would much prefer GitHub Desktop to handle the daemon-start for me.

@steveward
Copy link
Member

@Vectorial1024 thanks for the issue, and apologies for the delay here. We've seen this reported in #14274, but haven't dug into it as of yet. I'm going to close this out and reference this there.

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

2 participants