I have followed the instruction here How to integrate free SSL certificate into AWS instance with Let’s Encrypt | by Tarikul Islam | Oceanize Lab Geeks | Medium, successfully, on several occasions. Today, I ran into a problem – certbot-auto failed to install, details follow.
My domain is: pairofdocs.net
I ran this command: sudo ./certbot-auto --debug -v --server https://acme-v01.api.letsencrypt.org/directory certonly --webroot -w /var/www/html -d pairofdocs.net -d www.pairofdocs.net.
My web server is (include version): Apache/2.4.37 (Amazon)
The operating system my web server runs on is (include version): Amazon Linux AMI release 2018.03
My hosting provider, if applicable, is: Amazon AWS
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site: no
The version of my client is (e.g. output of certbot-auto --version
):
FATAL: Amazon Linux support is very experimental at present... if you would like to work on improving it, please ensure you have backups and then run this script again with the --debug flag! Alternatively, you can install OS dependencies yourself and run this script again with --no-bootstrap. [NOTE: The --no-bootstrap did not resolve the issue.]
Other notes:
- There was a ‘traditional’ SSL certificate previously installed on this server that recently expired.
- The PATH variable is /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin and python is located in /usr/bin
- After the failure, I did a ls –R /opt/eff-org and found nothing other than the certbot folder.
It produced this output (I had to remove most of the output because this BBS is telling me that I can only post 20 links):
Bootstrapping dependencies for Amazon... (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
yum is hashed (/usr/bin/yum)
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00:00
amzn-updates | 2.5 kB 00:00:00
Package gcc-4.8.5-1.22.amzn1.noarch already installed and latest version
Package augeas-libs-1.0.0-5.7.amzn1.x86_64 already installed and latest version
Package 1:openssl-1.0.2k-16.146.amzn1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-16.146.amzn1.x86_64 already installed and latest version
Package libffi-devel-3.0.13-16.5.amzn1.x86_64 already installed and latest version
Package system-rpm-config-9.0.3-42.28.amzn1.noarch already installed and latest version
Package ca-certificates-2017.2.14-65.0.1.17.amzn1.noarch already installed and latest version
Package python27-devel-2.7.15-1.124.amzn1.x86_64 already installed and latest version
Package python27-virtualenv-15.1.0-1.14.amzn1.noarch already installed and latest version
Package python27-tools-2.7.15-1.124.amzn1.x86_64 already installed and latest version
Package python27-pip-9.0.3-1.26.amzn1.noarch already installed and latest version
Nothing to do
Creating virtual environment...
Already using interpreter /usr/bin/python2.7
New python executable in /opt/eff.org/certbot/venv/bin/python2.7
Also creating executable in /opt/eff.org/certbot/venv/bin/python
Installing setuptools, pip, wheel...done.
Installing Python packages...
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting argparse==1.4.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
[various downloads and installs not reported]
Collecting zope.component==4.2.2 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 161))
Downloading https://files.pythonhosted.org/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
100% |████████████████████████████████| 552kB 50.6MB/s
Collecting zope.event==4.1.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 164))
Downloading https://files.pythonhosted.org/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
100% |████████████████████████████████| 481kB 49.5MB/s
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 167))
Downloading https://files.pythonhosted.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
100% |████████████████████████████████| 143kB 49.0MB/s
Collecting requests-toolbelt==0.8.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 185))
Downloading https://files.pythonhosted.org/packages/97/8a/d710f792d6f6ecc089c5e55b66e66c3f2f35516a1ede5a8f54c13350ffb0/requests_toolbelt-0.8.0-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 43.0MB/s
Collecting chardet==3.0.2 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 188))
Downloading https://files.pythonhosted.org/packages/b8/74/54fdc2fcfdd46b6c486964b64c5bb7db9a3664033ab25cf11aab06dd2a5d/chardet-3.0.2-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 49.0MB/s
Collecting urllib3==1.24.1 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 191))
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
100% |████████████████████████████████| 122kB 50.0MB/s
Collecting certifi==2017.4.17 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 194))
Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB)
100% |████████████████████████████████| 378kB 49.9MB/s
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 205))
Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==0.30.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 209))
Downloading https://files.pythonhosted.org/packages/e0/5e/9881564f386c1294d6cf387d5c754d7eb3277507b46afac1c646d6ae6de6/certbot-0.30.0-py2.py3-none-any.whl (317kB)
100% |████████████████████████████████| 327kB 50.4MB/s
Collecting acme==0.30.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 212))
Downloading https://files.pythonhosted.org/packages/df/a7/fc6114c715233ab53c9571d3b710d596bc80446eac14e0906362fa69e4b1/acme-0.30.0-py2.py3-none-any.whl (85kB)
100% |████████████████████████████████| 92kB 44.2MB/s
Collecting certbot-apache==0.30.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 215))
Downloading https://files.pythonhosted.org/packages/37/37/46433ff4358e12d1caf4101308411bf1dad0df3e27e2e62c5037ca75d2e0/certbot_apache-0.30.0-py2.py3-none-any.whl (228kB)
100% |████████████████████████████████| 235kB 50.7MB/s
Collecting certbot-nginx==0.30.0 (from -r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 218))
Downloading https://files.pythonhosted.org/packages/ad/15/7f42f31ba068f837816647135a0704a8c89aad685df160407e92870c0277/certbot_nginx-0.30.0-py2.py3-none-any.whl (90kB)
100% |████████████████████████████████| 92kB 44.0MB/s
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.1.0->-r /tmp/tmp.U39lxIK4BG/letsencrypt-auto-requirements.txt (line 95)) (40.6.3)
Exception:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
session=session, autobuilding=True
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 848, in build
assert building_is_possible
AssertionError
Had a problem while installing Python packages.