So up until yesterday gpg was working all fine. But today, it doesn't prompt for passphrase, I just get an empty blinking command line.
I'm using gpg for signing git commits. I thought the problem was with git. But no, if I do echo "test" | gpg --clearsign  I get the same than when doing git commit(empty command line not prompting for passphrase).
At first, the error I was getting when doing git commit was
error: gpg failed to sign the data
fatal: failed to write commit object
But in this thread they said to export GPG_TTY=$(tty) in your bashrc/zshrc
if you get that error. That stopped gpg from showing the error error: gpg failed to sign the data but it still doesn't prompt for passphrase.
I can't do anything related to prompting for passphrase, not listing my keys with gpg --list-secret-keys --keyid-format LONG` or anything. I can see my public with no problem. I tried importing my private key again and I get:
gpg: key <KEYID>: "<NAME EMAIL" not changed
And then just a empty command line again.
I have pinentry installed just in case anyone asks.
I don't understand. It was all working fine yesterday! Does anyone knows how to solve this ?
I had a similar issue, and it turned out the gpg-agent process was hung.
You might try running:
killall gpg-agent
And then re-try:
echo "test" | gpg --clearsign
                        you might try running:
ps -ef |grep pinentry
kill the result and try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With