GPG Keychain: Unable to send pulblic key to server

Saurabh Bajaj's Avatar

Saurabh Bajaj

17 Apr, 2018 01:16 PM

Send keys failed! (Server indicated a failure)
Code = 219
Error text:
gpg: sending key 33C8D9C072C30BE7 to hkps://
gpg: keyserver send failed: Server indicated a failure
gpg: keyserver send failed: Server indicated a failure

The public key must get uploaded to public server.

Additional info
Also, I am not able to search any keys on public server.

macOS                   10.13.4     17E199
GPG Suite               2018.1      2083    (9658b70)
GPGMail                 3.0b4       1272    (461cda15)
GPG Keychain            1.4.2       1403    (128637e)
GPGServices             1.11.2      969     (e5438f7)
MacGPG                  2.2.3       900     (cead4f9)
GPG Suite Preferences   2.1.1       993     (05eb1a6)
Libmacgpg               0.8.2       829     (943132e)
pinentry           9       (db18340)
  1. Support Staff 1 Posted by Steve on 17 Apr, 2018 09:25 PM

    Steve's Avatar

    Hi Saurabh,

    welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.

    This problem can have various causes.

    Please open, paste the following command and post the output into this discussion.


    Then execute the following command:

     echo "debug-level guru" >> ~/.gnupg/dirmngr.conf
     echo "debug-all" >> ~/.gnupg/dirmngr.conf
     echo "log-file /tmp/dirmngr.log" >> ~/.gnupg/dirmngr.conf
     killall dirmngr
     gpg --keyserver hkps:// --search-keys [email blocked]

    After running these commands, please send us the /tmp/dirmngr.log file

    1. open finder and press ⇧⌘G
    2. paste /tmp/dirmngr.log

    Once you are done, let's remove the debugging option:

    1. open finder and press ⇧⌘G
    2. paste ~/.gnupg/dirmngr.conf
    3. open that file with TextEdit
    4. remove the following lines
        * debug-level guru
        * debug-all
        * log-file /tmp/dirmngr.log

    Now open again and execute the following commands:

    rm /tmp/dirmngr.log
    killall dirmngr

    Another question: Are you using Little Snitch or any other firewall-like software on your mac? If so, please temporarily disable that software and repeat the process. Can you then connect to the key servers as expected?


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • 2018-04-17_13-16_DebugInfo.gpg 15.2 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac