Menu

Enigmail at the same time finds and doesn't find gnupg

2018-05-09
2018-05-10
  • Guilhem DUBROCA

    Guilhem DUBROCA - 2018-05-09

    As the title says, Enigmail at the same time finds and fails to find gnupg.
    I get the dialog box saying that GnuPG has not been found and that Enigmail proposes to download it. Yet in the preferences, it is in fact found where I indicated it is located.

    The enigmail log contains such lines as:

    2018-05-09 22:15:44.446 [CONSOLE] EnigmailAgentPath=/opt/local/bin/gpg
    
    2018-05-09 22:15:44.446 [DEBUG] gpgAgent.jsm: setAgentPath: calling subprocess with '/opt/local/bin/gpg'
    2018-05-09 22:15:44.446 [CONSOLE] enigmail> /opt/local/bin/gpg --batch --no-tty --charset utf-8 --display-charset utf-8 --version --version
    2018-05-09 22:15:46.958 [DEBUG]   enigmail> DONE
    2018-05-09 22:15:46.958 [DEBUG] system.jsm: determineSystemCharset
    2018-05-09 22:15:46.958 [DEBUG] system.jsm: getUnixCharset
    2018-05-09 22:15:46.982 [DEBUG] system.jsm: determineSystemCharset: charset='iso-8859-1'
    2018-05-09 22:15:46.982 [CONSOLE] gpg (GnuPG) 2.2.7
    libgcrypt 1.8.2
    Copyright (C) 2018 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Home: /Users/proteos/.gnupg
    Algorithmes pris en charge :
    Clef publique : RSA, ELG, DSA, ECDH, ECDSA, EDDSA
    Chiffrement : IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256,
                  TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256
    Hachage : SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
    Compression : Non compressé, ZIP, ZLIB, BZIP2
    
    2018-05-09 22:15:46.982 [DEBUG] gpgAgent.jsm: detected GnuPG version '2.2.7'
    ...<snip>...
    2018-05-09 22:15:47.250 [DEBUG] pEpAdapter.jsm: initialize: error during pEp init:
    2018-05-09 22:15:47.250 [DEBUG]    GNUPG-UNAVAILABLE: gpg not found
    

    A full log file is available here
    Most annoying is that not only enigmail does not work, it also prevents Thunderbird from sending emails. The script pEpAdapter.jsm gets an error, but 'err.exception' is NULL and thus the process never finishes. Thunderbird also seems to be crashing on exit because of this.
    For now, the only solution I have found is to deactivate enigmail.

     
  • Patrick Brunschwig

    I see that you are using the "pEp Junior" mode of Enigmail. What you describe is a known problem in the pEp engine in that it doesn't find gpg at non-standard locations.

    I'd recommend you enable the "classical" Enigmail mode, via Thunderbird Preferences > Privacy tab (Force using S/MIME and Enigmail).

     
  • Guilhem DUBROCA

    Guilhem DUBROCA - 2018-05-10

    Patrick, thanks for the tip. It looks like it works.
    One note for others, if ever someone has the same issue: you should change the preferences in the 'Privacy' tab immediately after launching and quit right afterwards. If ever you get a thunderbird crash on exit, the preference change will not be written to disk!

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.