Thunderbird hangs and fails to send GPG mail

I have set up GPG on my own computer. My friends computer is on the same system, F41, Sway, Thunderbird. All updated. My GPG in Thunderbird works, and the other system hangs for around 30 seconds then return “failed to send mail”. The error console returns the following:

 16:07:29.888 openpgp: rnp_key_export_autocrypt FAILED RNP.sys.mjs:5083:16

16:08:30.700 EnigmailFuncs.sync() failed result: TypeError: typedArray is null

    isASCIIArmored chrome://openpgp/content/modules/RNP.sys.mjs:3732

    encryptAndOrSign chrome://openpgp/content/modules/RNP.sys.mjs:3762

    sync chrome://openpgp/content/modules/funcs.sys.mjs:502

    encryptMessageStart chrome://openpgp/content/modules/encryption.sys.mjs:406

    finishCryptoEncapsulation chrome://openpgp/content/modules/mimeEncrypt.sys.mjs:442

    createMessageFile resource:///modules/MimeMessage.sys.mjs:83

funcs.sys.mjs:492:17

16:08:30.707

Error: encryptMessageStart FAILED: -1 mimeEncrypt.sys.mjs:455:15

16:08:30.707

mailnews.send: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "encryptMessageStart FAILED: -1" {file: "chrome://openpgp/content/modules/mimeEncrypt.sys.mjs" line: 455}]'[JavaScript Error: "encryptMessageStart FAILED: -1" {file: "chrome://openpgp/content/modules/mimeEncrypt.sys.mjs" line: 455}]' when calling method: [nsIMsgComposeSecure::finishCryptoEncapsulation]

    createMessageFile resource:///modules/MimeMessage.sys.mjs:83

MessageSend.sys.mjs:147:32

16:08:30.707

mailnews.send: Sending failed; , exitCode=2153185313, originalMsgURI= MessageSend.sys.mjs:341:32

16:08:30.719 TypeError: typedArray is null

RNP.sys.mjs:3732:7

We followed the instructions https://bacardi55.io/2024/06/16/encrypt-emails-with-thunderbird-and-gpg/ and GPG Keys Management :: Fedora Docs which as I said results in my system working as intended.

Could the non-working system be missing a package or a pointer set incorrectly? GPG and GPGME are installed. Keys are configured.

Can you encrypt a message with gpg outside of thunderbird and then mail that resulting file to the recipient, and can he decrypt it outside of thunderbird?

I’d break this down into ruling out a gpg/pgp mis-config and then turn attention to Thunderbird.

Thanks Steve,
Yes she can decrypt the attached file. That was a nice little learning experience for me too. Very easy to do.

So it appears it is a Thunderbird problem and not a GPG / Keys problem.

Your PGP key is imported OK into Thunderbird - check via the PGP Key manager under Tools. Make sure your key is there, as that first line indicates that RNP couldn’t export your key to autocrypt.

I’d also double-check that this profile is set up to use your valid openPGP key - Account Setting, End-to-End encryption.

Is thunderbird installed from a Flatpak or Snap - I’m also wondering if it can even see your key and have permission to export that key for RNP, thanks to some funky Snap/Flatpak permissions being a bit too tight.

Checked PGP Key Management, all good.

Checked Account Settings / End to End, all good.

Not Flatpak or Snap, we’re pure RPM.

I’m at a loss then. “Should work”, as they say.

Do you have any other contacts who use gpg/pgp for which you could try with - that would rule out an issue with the recipient’s public key… however as it works outside of Thunderbird I’d be surprised if it was an issue.

1 Like

For what it’s worth, I am facing the same issue on OpenSUSE

I still have not found a solution.
I will update to Fedora 42 in a week or two and report back then.