{"id":207,"date":"2017-08-16T22:56:40","date_gmt":"2017-08-16T22:56:40","guid":{"rendered":"http:\/\/info.ffteixeira.net\/2017\/08\/16\/quick-tip-fix-gpg-cant-connect-to-the-agent-ipc-connect-call-failed-error\/"},"modified":"2017-08-16T22:56:40","modified_gmt":"2017-08-16T22:56:40","slug":"quick-tip-fix-gpg-cant-connect-to-the-agent-ipc-connect-call-failed-error","status":"publish","type":"post","link":"https:\/\/blog.ffteixeira.net\/?p=207","title":{"rendered":"Quick Tip \u2013 Fix gpg: can\u2019t connect to the agent: IPC connect call failed error"},"content":{"rendered":"<p>I was configuring GPG renderers on&nbsp; and I ran into the following error while generating the PGP key (pair) that would be used to encrypt secrets before adding them their respective pillars:<br \/><em>gpg: can&#039;t connect to the agent: IPC connect call failed<br \/>gpg: problem with the agent: No agent running<br \/>gpg: can&#039;t connect to the agent: IPC connect call failed<br \/>gpg: problem with the agent: No agent running<br \/>gpg: Key generation canceled.<\/em><\/p>\n<p>Eventually, this error was being caused by a GPG agent that was already running , which my GPG command was unable to access. To fix this error kill the running agent with the following command:<br \/><strong><em>kill -9 gpg-agent<\/em><\/strong><\/p>\n<p>Next, restart the agent with the following command:<br \/><em><strong>source &amp;lt;(gpg-agent &#8211;daemon)<\/strong><\/em><\/p>\n<p>You should now be able to re-run the GPG command you&rsquo;re using to generate the key-pair and connect to the curses version of pinentry to input your passphrase.<\/p>\n<p><a href=\"http:\/\/joshbolling.com\/blog\/index.php\/2017\/05\/21\/quick-tip-fix-gpg-cant-connect-to-the-agent-ipc-connect-call-failed-error\/\" target=\"_blank\" rel=\"noopener noreferrer\">Credits<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was configuring GPG renderers on&nbsp; and I ran into the following error while generating the PGP key (pair) that would be used to encrypt secrets before adding them their respective pillars:gpg: can&#039;t connect to the agent: IPC connect call &hellip; <a href=\"https:\/\/blog.ffteixeira.net\/?p=207\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11,18,19],"class_list":["post-207","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-enigmail","tag-gpg","tag-ipc"],"_links":{"self":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=207"}],"version-history":[{"count":0,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=\/wp\/v2\/posts\/207\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ffteixeira.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}