Allow encryption without interface problems

I am on AWS Ec2 Amazon Linux and am trying to use Let Encrypt. When I first installed Let Encrypt a couple of months ago, I had no problems updating certificates. But now I get this error and cannot update it.

# ./certbot-auto --debug Error: couldn't get currently installed version for /opt/eff.org/certbot/venv/bin/letsencrypt: Traceback (most recent call last): File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in <module> from certbot.main import main File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 7, in <module> import zope.component File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/zope/component/__init__.py", line 16, in <module> from zope.interface import Interface ImportError: No module named interface 

I tried to disable PYTHON_INSTALL_LAYOUT and update pip, virtualenv. Bad luck.

It looks like this is a Letsencrypt ImportError question : there is no module named interface on amazon linux when updating But the dirctory is different. Not sure I want rm /opt/eff.org/certbot/venv/bin/letsencrypt

+7
lets-encrypt
source share
3 answers

I just hit just this problem with Amazon Linux. The fix that worked for me is detailed in the certbot GitHub release

I had the same problem due to poor installation of certbot. I fixed it by doing the following:

 unset PYTHON_INSTALL_LAYOUT /root/.local/share/letsencrypt/bin/pip install --upgrade certbot 

I did not have a pip installed separately on the server, it was only available as part of the certbot installation, so this was the only way I could use pip to install the installation correctly.

+16
source share

I was able to solve this problem with

 sudo rm -rf /root/.local/share/letsencrypt/ sudo rm -rf /opt/eff.org/certbot/ 

Then restart certbot-auto in user mode (ec2-user).

 ./certbot-auto renew -v --debug 
+18
source share

If you have pip installed on your EC2 instance like me, you can simply do this:

 rm -rf /opt/eff.org/* pip install -U certbot certbot renew --debug 

Downloading certbot-auto via wget always caused problems for me, so the preferred method is higher.

0
source share

All Articles