{"id":8887,"date":"2022-04-24T20:30:01","date_gmt":"2022-04-25T01:30:01","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=8887"},"modified":"2022-04-25T10:59:03","modified_gmt":"2022-04-25T15:59:03","slug":"certbot-plugin-not-found","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=8887","title":{"rendered":"Certbot &#8212; Plugin Not Found"},"content":{"rendered":"<p>I got a certificate expiry warning this morning &#8212; an oddity because I&#8217;ve had a cron task renewing our certificates for quite some time. Running the cron&#8217;d command manually &#8230; well, that would do it! The plug-in for my DNS registrar isn&#8217;t found.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=8888\" rel=\"attachment wp-att-8888\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8888\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand.png\" alt=\"\" width=\"1355\" height=\"174\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand.png 1355w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand-300x39.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand-1024x131.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand-768x99.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-unrecognizedcommand-750x96.png 750w\" sizes=\"auto, (max-width: 1355px) 100vw, 1355px\" \/><\/a><\/p>\n<p>Checking the registered plugins, well &#8230; it&#8217;s <em>not<\/em> there.<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=8889\" rel=\"attachment wp-att-8889\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8889\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-listplugins.png\" alt=\"\" width=\"649\" height=\"223\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-listplugins.png 649w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-listplugins-300x103.png 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/a><\/p>\n<p>Except it&#8217;s <em>there<\/em> &#8212; running &#8220;pip install certbot-dns-porkbun&#8221; (and even trying pip3 <em>just to make sure<\/em>) tells me it&#8217;s already installed. Looking around for the files, this turns out to be one of those things that there&#8217;s obviously a <em>right<\/em> way to solve and a <em>quick<\/em> way to solve. For some reason, \/usr\/local\/lib is not being searched for packages even though it&#8217;s included in my PYTHONPATH. The right thing to do is figure out why this is happening. Quick solution? Symlink the things into where they need to be<\/p>\n<pre>ln -s \/usr\/local\/lib\/python3.10\/site-packages\/certbot_dns_porkbun \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/pkb_client \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/filelock \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.7\/site-packages\/tldextract \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/requests_file \/usr\/lib\/python3.10\/site-packages\/\r\n\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/certbot_dns_porkbun-0.2.1.dist-info \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/filelock-3.6.0.dist-info \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/pkb_client-1.2.dist-info \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.7\/site-packages\/tldextract-3.0.2.dist-info\/ \/usr\/lib\/python3.10\/site-packages\/\r\nln -s \/usr\/local\/lib\/python3.10\/site-packages\/requests_file-1.5.1.dist-info \/usr\/lib\/python3.10\/site-packages\/\r\n\r\n<\/pre>\n<p>Voila, the plug-in exists again (and my cron task successfully renews the certificate)<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=8890\" rel=\"attachment wp-att-8890\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8890\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-pluginNowHere.png\" alt=\"\" width=\"640\" height=\"302\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-pluginNowHere.png 640w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2022\/04\/certbot-pluginNowHere-300x142.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a certificate expiry warning this morning &#8212; an oddity because I&#8217;ve had a cron task renewing our certificates for quite some time. Running the cron&#8217;d command manually &#8230; well, that would do it! The plug-in for my DNS registrar isn&#8217;t found. Checking the registered plugins, well &#8230; it&#8217;s not there. Except it&#8217;s there &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[1176,752,664],"class_list":["post-8887","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-certbot","tag-pip","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8887"}],"version-history":[{"count":4,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8887\/revisions"}],"predecessor-version":[{"id":8894,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/8887\/revisions\/8894"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}