# Gpg blocking forever, can't \`git commit\` as a result

**URL:** <https://discussion.fedoraproject.org/t/gpg-blocking-forever-cant-git-commit-as-a-result/96605>\
**Category:** Ask Fedora\
**Tags:** f39\
**Created:** [November 21, 2023, 3:29pm UTC](https://discussion.fedoraproject.org/t/gpg-blocking-forever-cant-git-commit-as-a-result/96605 "2023-11-21T15:29:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ankursinha](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/ankursinha/32/71_2.png) [@ankursinha](https://discussion.fedoraproject.org/u/ankursinha)\
**Post date:** [November 22, 2023, 3:48pm UTC](https://discussion.fedoraproject.org/t/gpg-blocking-forever-cant-git-commit-as-a-result/96605/7 "2023-11-22T15:48:16Z")

</div>

I found this in the [readme in the GitHub repo](https://github.com/gpg/gnupg):

```auto

** Key database daemon

  Since version 2.3.0 it is possible to store the keys in an SQLite
  database instead of the keyring.kbx file. This is in particular
  useful for large keyrings or if many instances of gpg and gpgsm may
  run concurrently. This is implemented using another daemon process,
  the "keyboxd". To enable the use of the keyboxd put the option
  "use-keyboxd" into the configuration file ~/.gnupg/common.conf or the
  global /etc/gnupg/common.conf. See also doc/examples/common.conf.
  Only public keys and X.509 certificates are managed by the keyboxd;
  private keys are still stored as separate files.

  Since version 2.4.1 the keyboxd will be used by default for a fresh
  install; i.e. if a ~/.gnupg directory did not yet exist.

  Note that there is no automatic migration; if the use-keyboxd option
  is enabled keys are not taken from pubring.kbx. To migrate existing
  keys to the keyboxd do this:

  1. Disable the keyboxd (remove use-keyboxd from common.conf)
  2. Export all public keys
       gpg --export --export-options backup > allkeys.gpg
       gpgsm --export --armor > allcerts.gpg
  3. Enable the keyboxd (add use-keyboxd to common.conf)
  4. Import all public keys
       gpg --import --import-options restore < allkeys.gpg
       gpgsm --import < allcerts.crt

```

I also see this bug that _may_ be the same issue:

[https://bugzilla.redhat.com/show\_bug.cgi?id=2249218](https://bugzilla.redhat.com/show_bug.cgi?id=2249218)

If you can reliably reproduce it, I’d file a bug. There’s maybe something off with the keyboxd bit—perhaps it isn’t running properly or there are other issues?

---

_[View the full topic](https://discussion.fedoraproject.org/t/gpg-blocking-forever-cant-git-commit-as-a-result/96605)._
