{"id":7063,"date":"2020-11-27T07:26:43","date_gmt":"2020-11-26T22:26:43","guid":{"rendered":"https:\/\/jg7sfr.mydns.jp\/?p=7063"},"modified":"2021-02-27T13:08:10","modified_gmt":"2021-02-27T04:08:10","slug":"certbot-renew","status":"publish","type":"post","link":"https:\/\/jg7sfr.mydns.jp\/?p=7063","title":{"rendered":"certbot renew"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>certbot renew<br>\u66f4\u65b0\u3067\u304d\u307e\u305b\u3093\u3002<\/strong><br>pkg_resources.DistributionNotFound: The &#8216;acme&gt;=1.6.0&#8217; distribution was not found and is required by certbot<br><br>\u305d\u308c\u3068\u3001\u6642\u3005python\u304c\u5b9f\u884c\u3067\u304d\u306a\u304f\u306a\u308b\u554f\u984c\u3082\u3042\u308a\u307e\u3059\u3002<br><br>\u305d\u306e\u5f8c<br>pkg install py37-acme<br>\u3053\u308c\u3067certbot rewnew\u304c\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br>\u305f\u3060\u3001\u30a8\u30e9\u30fc\u306e\u70ba\u66f4\u65b0\u3067\u304d\u305a\u3002<br><br># certbot renew<br>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>Processing \/usr\/local\/etc\/letsencrypt\/renewal\/jg7sfr.mydns.jp.conf<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>Cert is due for renewal, auto-renewing&#8230;<br>Plugins selected: Authenticator webroot, Installer None<br>Renewing an existing certificate<br>Performing the following challenges:<br>http-01 challenge for jg7sfr.mydns.jp<br>Using the webroot path \/***wordpress\u306e\u30d1\u30b9*** for all unmatched domains.<br>Waiting for verification&#8230;<br>Challenge failed for domain jg7sfr.mydns.jp<br>http-01 challenge for jg7sfr.mydns.jp<br>Cleaning up challenges<br>Attempting to renew cert (jg7sfr.mydns.jp) from<br>\/usr\/local\/etc\/letsencrypt\/renewal\/jg7sfr.mydns.jp.conf produced an<br>unexpected error: Some challenges have failed.. Skipping.<br>All renewal attempts failed. The following certs could not be renewed:<br>&nbsp; \/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem (failure)<br><br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br><br>All renewal attempts failed. The following certs could not be renewed:<br>\/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem (failure)<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>1 renew failure(s), 0 parse failure(s)<br><br>IMPORTANT NOTES:<br>&nbsp;&#8211; The following errors were reported by the server:<br><br>Domain: jg7sfr.mydns.jp<br>Type:&nbsp;&nbsp; connection<br>Detail: Fetching<br><br>https:\/\/jg7sfr.mydns.jp\/.well-known\/acme-challenge\/JCn9OrF01gGTjd-bm7RJaTT_P2LFBqxQz1hAXD8L75U:<br>Timeout during connect (likely firewall problem)<br><br>To fix these errors, please make sure that your domain name was<br>entered correctly and the DNS A\/AAAA record(s) for that domain<br>contain(s) the right IP address. Additionally, please check that<br>your computer has a publicly routable IP address and that no<br>firewalls are preventing the server from communicating with the<br>client. If you&#8217;re using the webroot plugin, you should also verify<br>that you are serving files from the webroot path you provided.<br>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br><br>certbot renew &#8211;dry-run<br>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<br><br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>Processing \/usr\/local\/etc\/letsencrypt\/renewal\/jg7sfr.mydns.jp.conf<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>Cert is due for renewal, auto-renewing&#8230;<br>Plugins selected: Authenticator webroot, Installer None<br>Renewing an existing certificate<br>Performing the following challenges:<br>http-01 challenge for jg7sfr.mydns.jp<br>Using the webroot path \/***wordpres\u306e\u30d1\u30b9*** for all unmatched domains.<br>Waiting for verification&#8230;<br>Cleaning up challenges<br><br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>new certificate deployed without reload, fullchain is<br>\/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br>** DRY RUN: simulating &#8216;certbot renew&#8217; close to cert expiry<br>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (The test certificates below have not been saved.)<br><br>Congratulations, all renewals succeeded. The following certs have been<br>renewed:<br>&nbsp; \/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem (success)<br>** DRY RUN: simulating &#8216;certbot renew&#8217; close to cert expiry<br>**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (The test certificates above have not been saved.)<br>&#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211; &#8211;<br>&#8211; &#8211; &#8211; &#8211;<br><a href=\"mailto:root@jg7sfr\">root@jg7sfr<\/a>:\/***wordpress\u306e\u30d1\u30b9***<br><br><br><strong>\u66f4\u306b\u305d\u306e\u5f8c\u3001\u3042\u308c\u3053\u308c\u3068\u8abf\u3079\u3066<\/strong><br>\u30dd\u30fc\u30c880\u756a\u304c\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3067\u906e\u65ad\u3055\u308c\u3066\u3044\u308b\u3068\u304b\u305d\u306e\u3088\u3046\u306a\u60c5\u5831\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306e\u306f\u5c11\u3057\u7570\u306a\u3063\u3066\u30fb\u30fb\u30fb\u30fb<br>\u4e0a\u8a18\u30a8\u30e9\u30fc\u3067\u306f<br>https:\/\/jg7sfr.mydns.jp\/.well-known\/acme-challenge\/JCn9OrF01gGTjd-bm7RJaTT_P2LFBqxQz1hAXD8L75U:<br>Timeout during connect (likely firewall problem)<br>\u3068\u66f8\u304b\u308c\u3066\u3044\u307e\u3057\u305f\u306e\u3067<br>.htaccess\u3067https\u306b\u7f6e\u304d\u63db\u3048\u3059\u308b\u51e6\u7406\u304c\u3042\u308a\u52d5\u4f5c\u3067\u304d\u306a\u304b\u3063\u305f\u6a21\u69d8\u3002<br>\u4e00\u6642\u7684\u306b.htaccess\u3092\u7121\u304f\u3057\u3066<br><br>#certbot renew<br>Saving debug log to \/var\/log\/letsencrypt\/letsencrypt.log<br><br>Processing \/usr\/local\/etc\/letsencrypt\/renewal\/jg7sfr.mydns.jp.conf<br><br>Cert is due for renewal, auto-renewing\u2026<br>Plugins selected: Authenticator webroot, Installer None<br>Renewing an existing certificate<br>Performing the following challenges:<br>http-01 challenge for jg7sfr.mydns.jp<br>Using the webroot path ************  for all unmatched domains.<br>Waiting for verification\u2026<br>Cleaning up challenges<br><br>new certificate deployed without reload, fullchain is<br>\/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem<br><br>Congratulations, all renewals succeeded. The following certs have been renewed:<br>\/usr\/local\/etc\/letsencrypt\/live\/jg7sfr.mydns.jp\/fullchain.pem (success)<br>#<br># service apache24 restart<br>Performing sanity check on apache24 configuration:<br>Syntax OK<br>Stopping apache24.<br>Waiting for PIDS: 2071.<br>Performing sanity check on apache24 configuration:<br>Syntax OK<br>Starting apache24.<br>#<br><br>\u3053\u308c\u3067\u3084\u3063\u3068\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"198\" height=\"67\" src=\"https:\/\/jg7sfr.mydns.jp\/wp-content\/uploads\/2020\/11\/image.png\" alt=\"\" class=\"wp-image-7066\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">.htaccess\u3067\u306e\u7ba1\u7406\u3002\u5c11\u3057\u8003\u3048\u305f\u307b\u3046\u304c\u826f\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<br>\u66f4\u65b0\u306e\u81ea\u52d5\u5316\u304c\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3002<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>certbot renew\u66f4\u65b0\u3067\u304d\u307e\u305b\u3093\u3002pkg_resources.DistributionNotFound: The &#8216;acme&gt;=1.6.0&#8217; distribution was not&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"image","meta":{"footnotes":""},"categories":[4],"tags":[351,353,350,403,352],"class_list":["post-7063","post","type-post","status-publish","format-image","hentry","category-bsd","tag-htaccess","tag-353","tag-certbot-renew","tag-lets-encrypt","tag-letsencrypt","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7063"}],"version-history":[{"count":6,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7063\/revisions"}],"predecessor-version":[{"id":7170,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/7063\/revisions\/7170"}],"wp:attachment":[{"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jg7sfr.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}