Skip to content

Instantly share code, notes, and snippets.

@cliffano
Last active April 29, 2022 09:37
Show Gist options
  • Save cliffano/dca0ade3e3eacd83908d08c52639ca93 to your computer and use it in GitHub Desktop.
Save cliffano/dca0ade3e3eacd83908d08c52639ca93 to your computer and use it in GitHub Desktop.
gpg cryptic errors
I started getting the error below after upgrading to gpg (GnuPG) 2.1.21 .
gpg: signing failed: Timeout
gpg: signing failed: Timeout
This was confusing at first, but the timeout was caused by gpg showing a password prompt that takes the full screen of the terminal, and after a period of time, it returned to the command line showing the timeout error.
I didn't notice the password prompt at first because I was working on multiple terminals and only saw the timeout error at the end.
Another error that I encountered earlier was:
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
This way caused by missing `GPG_TTY`, simply pass it inline `GPG_TTY=$(tty) foobar`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment