Author Topic: ERROR: gpg: can't connect to the agent: IPC connect call failed  (Read 200 times)

Offline Adarre

  • Newbie
  • *
  • Posts: 1
Hello,

Randomly, it is not possible to use the features of the Enigma plugin. Roundcube gives the following error message: Unable to list keys. Internal error. In the enigma log file, I find this message: ERROR: gpg: can't connect to the agent: IPC connect call failed

Code: [Select]
[16-Dec-2021 10:09:13 +0100]: <8phaquf7> GPG: USING GPG 2.2.4 with PHP 7.3.33
[16-Dec-2021 10:09:13 +0100]: <8phaquf7> GPG: OPENING GPG SUBPROCESS WITH THE FOLLOWING COMMAND:
[16-Dec-2021 10:09:13 +0100]: <8phaquf7> GPG: /usr/bin/gpg --status-fd '3' --command-fd '4' --no-secmem-warning --no-tty --no-default-keyring --no-options --no-permission-warning --exit-on-status-write-error --trust-model always --pinentry-mode loopback --ignore-time-conflict --ignore-valid-from --with-colons --with-fingerprint --with-fingerprint --fixed-list-mode --homedir '/var/www/vhosts/xxxx.fr/messagerie.xxxx.fr/plugins/enigma/home/exemple@xxxx.fr' --list-secret-keys
[16-Dec-2021 10:09:13 +0100]: <8phaquf7> GPG: BEGIN PROCESSING
[16-Dec-2021 10:09:13 +0100]: <8phaquf7> GPG: selecting streams
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: => got 1
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: GPG error stream ready for reading
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG error
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: => read 57 bytes
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: ERROR: gpg: can't connect to the agent: IPC connect call failed
[16-Dec-2021 10:09:14 +0100]: <8phaquf7> GPG: selecting streams
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: => got 1
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: GPG error stream ready for reading
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG error
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: => read 57 bytes
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: ERROR: gpg: can't connect to the agent: IPC connect call failed
[16-Dec-2021 10:09:15 +0100]: <8phaquf7> GPG: selecting streams
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => got 1
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: GPG error stream ready for reading
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG error
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => read 57 bytes
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: ERROR: gpg: can't connect to the agent: IPC connect call failed
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: selecting streams
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => got 3
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: GPG output stream ready for reading
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG output
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => read 0 bytes
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: GPG error stream ready for reading
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG error
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => read 0 bytes
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: GPG status stream ready for reading
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => about to read 65536 bytes from GPG status
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => read 0 bytes
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: END PROCESSING
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: CLOSING GPG SUBPROCESS
[16-Dec-2021 10:09:16 +0100]: <8phaquf7> GPG: => subprocess returned an unexpected exit code: 2

It's the randomness of the problem that confuses me. Sometimes it works, sometimes it doesn't... I tried a lot of things, without success. The most surprising is that I have a test version of my webmail, installed on the same server, and which does not pose any problem. I suspect there is a configuration difference somewhere, but I don't know what to try anymore.

Anyone can help me?

Roundcube 1.4.4
Enigma 0.8
GPG 2.2.4
PHP 7.3.33
Ubuntu 18.04.6
Plesk Obsidian 18.0.40