{"id":934,"date":"2016-07-09T10:38:32","date_gmt":"2016-07-09T01:38:32","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=934"},"modified":"2017-02-13T14:22:58","modified_gmt":"2017-02-13T05:22:58","slug":"ec2%e3%81%aelets-encrypt%e3%81%ae%e8%a8%bc%e6%98%8e%e6%9b%b8%e6%9b%b4%e6%96%b0%e3%81%8cimporterror%e3%81%a7%e5%a4%b1%e6%95%97%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/934","title":{"rendered":"EC2\u306eLet&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u66f4\u65b0\u304cImportError\u3067\u5931\u6557\u3059\u308b"},"content":{"rendered":"<p>AWS\u306eEC2(Amazon Linux)\u306b\u304a\u3044\u3066\u3001Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u66f4\u65b0\u304cImportError\u3067\u5931\u6557\u3059\u308b<\/p>\n<h3>=== \u75c7\u72b6 ===<\/h3>\n<pre class=\"lang:sh decode:true \" >$ \/usr\/local\/letsencrypt\/certbot-auto renew\r\nCreating virtual environment...\r\nInstalling Python packages...\r\nInstallation succeeded.\r\nRequesting root privileges to run certbot...\r\n  \/home\/ec2-user\/.local\/share\/letsencrypt\/bin\/letsencrypt renew\r\nTraceback (most recent call last):\r\n  File \"\/home\/ec2-user\/.local\/share\/letsencrypt\/bin\/letsencrypt\", line 7, in &lt;module&gt;\r\n    from certbot.main import main\r\n  File \"\/home\/ec2-user\/.local\/share\/letsencrypt\/local\/lib\/python2.7\/dist-packages\/certbot\/main.py\", line 12, in &lt;module&gt;\r\n    import zope.component\r\n  File \"\/home\/ec2-user\/.local\/share\/letsencrypt\/local\/lib\/python2.7\/dist-packages\/zope\/component\/__init__.py\", line 16, in &lt;module&gt;\r\n    from zope.interface import Interface\r\nImportError: No module named interface<\/pre>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<h3>=== \u89e3\u6c7a\u7b56 ===<\/h3>\n<h4>1. \u74b0\u5883\u5909\u6570 PYTHON_INSTALL_LAYOUT \u3092unset\u3059\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ unset PYTHON_INSTALL_LAYOUT<\/pre>\n<h4>2. letsencrypt\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ sudo \/usr\/local\/letsencrypt\/certbot-auto -v<\/pre>\n<h4>3. \u8a3c\u660e\u66f8\u3092\u66f4\u65b0\u3059\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ sudo \/usr\/local\/letsencrypt\/certbot-auto renew<\/pre>\n<h4>4. Apache2\u3092\u518d\u8d77\u52d5\u3059\u308b<\/h4>\n<pre class=\"lang:sh decode:true \" >$ sudo \/etc\/init.d\/httpd restart<\/pre>\n<p>&nbsp;<\/p>\n<h3>=== \u6ce8\u610f ===<\/h3>\n<p>2016\u5e745\u6708\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u540d\u304c &quot;letsencrypt-auto&quot; \u304b\u3089 &quot;certbot-auto&quot; \u3078\u5909\u66f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS\u306eEC2(Amazon Linux)\u306b\u304a\u3044\u3066\u3001Let&#8217;s Encrypt\u306e\u8a3c\u660e\u66f8\u66f4\u65b0\u304cImportError\u3067\u5931\u6557\u3059\u308b === \u75c7\u72b6 === $ \/usr\/local\/letsencrypt\/certb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[37],"class_list":["post-934","post","type-post","status-publish","format-standard","hentry","category-memo","tag-lets-encrypt"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=934"}],"version-history":[{"count":6,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/934\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/934\/revisions\/939"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}