error: gpg failed to sign the data
Jump to navigation
Jump to search
error: gpg failed to sign the data fatal: failed to write commit object
error: gpg failed to sign the data: gpg: skipped "your-user <[email protected]>": No secret key [GNUPG:] INV_SGNR 9 your-user <[email protected]> [GNUPG:] FAILURE sign 17 gpg: signing failed: No secret key fatal: failed to write commit object
error: gpg failed to sign the data: [GNUPG:] KEY_CONSIDERED A10xxxxxxxxxxxx 2 [GNUPG:] BEGIN_SIGNING H10 [GNUPG:] PINENTRY_LAUNCHED 42120 curses 1.3.1 - dumb . - 501/20 0 gpg: signing failed: Inappropriate ioctl for device [GNUPG:] FAILURE sign 123456789 gpg: signing failed: Inappropriate ioctl for device fatal: failed to write commit object
Solution: export GPG_TTY=$(tty) echo $GPG_TTY
or gpg --list-keys, if lock delete [[./public-keys.d]]/pubring.db.lock
Related[edit]
git config --global user.signingkey XXXXXXX123456789010203040 Signing commits gpg --list-keys git config --global --get commit.gpgsign gpg: signing failed: No pinentry
See also[edit]
git commit [ -a | -an | -am | --amend | --amend --reset-author | --no-verify | -m | -S ], Signing commitsgpg, --batch | --generate-key | --full-generate-key | --recv-keys | --export | --encrypt | --import | --list-keys | --list-secret-key | --gen-key | --armor | --dearmor | --send-keys | --search-keys | --quick-set-expire | --keyserver | --delete-keys | --full-generate-key | --armor --export | gpg --help, gpgconf
Advertising: