-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Multiple GPG Agent lead to broken signing #404
Comments
That is a tricky one. To sum up the issue,
I currently don't know how to fix this in a correct way. |
This should now be fixed. |
Still seems to fail, GPG gives this output: error: gpg failed to sign the data: fatal: failed to write commit object |
You may need to kill any Meanwhile, do you gave any logs? |
This issue still persists after a reboot, aa-log doesn't seem to have logs for either gpg or scdaemon. |
Does it have any other logs than gpg? |
Not necessarily, just from typical unrelated programs such as mpv, yt-dlp, waybar, that sort of thing. I'm not entirely sure which profile is causing this either as setting both gpg* and scdaemon to complain doesn't seem to solve this issue but a teardown does. |
Please, share these logs anyway. |
I managed to get logs with gpg in them, no idea why I wasn't getting them prior? These can be downloaded here. |
They is no gpg in these logs... Can you provide the output of Also, you need to configure |
I seem to have misread git as gpg, my apologies!
This is already set to that directory. |
Your
Beware, it is a relative path from |
Not sure why, aa-status reports correctly and logs are being filled.
Arch Linux, sway (This is reproducible under Hyprland as well if that matters) |
Hum, can you try with |
user 1922471 0.0 0.0 7924 5088 pts/5 S+ 22:40 0:00 rg gpg |
Hum... with Also, when you run this, please ensure you do have a gpg agent started, and that it does lead to broken signing. |
I don't know where you got this from, if I didn't want help / a fix I wouldn't have opened the issue. That was the output from running with sudo.
This would probably be why there wasn't anything else as I rebooted sometime between and must've forgot retrying the commit again, retrying after doing that does have more this time.
|
Not sure which profile causes this as setting gpg* to complain doesn't fix this. I encountered this with lazygit and was unable to commit until a teardown. Logs don't show anything, just this from journalctl:
gpg-agent[58120]: command 'PKSIGN' failed: No pinentry
gpg-agent[58120]: failed to read the secret key
gpg-agent[58120]: failed to unprotect the secret key: No pinentry
gpg-agent[58120]: can't connect to the PIN entry module '/usr/bin/pinentry': End of file
gpg-agent[58120]: SIGHUP received - re-reading configuration and flushing cache
The text was updated successfully, but these errors were encountered: