Page MenuHome GnuPG

Gpg Encryption and Signing - infinite Loop
Open, LowPublic


I had a problem on a server.
gpg --list-keys and other similar commands worked just fine BUT when trying to encrypt and sign a file GPG looked like was staying in an infinite loop. We also could see in Task manager the tasks and we tried to kill the tasks but this thing did not solve the problem. We had to restart the server to make it work.
The version was 2.2.16.
We used the foll.owing parameters:
--pinentry-mode loopback
--passphrase-fd 0
--batch --yes --always-trust
Is 2.2.16 an unstable version ? Will a version upgrade solve our issue?
Can one of these parameters influence the GPG behavior ?

  • GPG was not waiting for any password or something related. We already provided a password and it was still hung. I used the same command on different machines at the same time and on one only it hung.
  • I reposted the issue because @ikloecker declared it invalid before.



Event Timeline

mariamihaela created this task.
mariamihaela created this object in space S1 Public.
aheinecke lowered the priority of this task from High to Low.Thu, Aug 4, 3:29 PM
aheinecke added a project: Info Needed.
aheinecke added a subscriber: aheinecke.

Still, the first thing you should do is to update to a recent version, the version you are on is about 3 years old. See for the most recent version. Then add --verbose and --debug ipc to your command so we can maybe see more what it does.