Certbot has problem setting up the virtual environment

When I use the ./certbot-auto command to update the certificate, the following exception message appears:
Bootstrapping dependencies for RedHat-based OSes… (you can skip this with --no-bootstrap)
yum 是 /usr/bin/yum
yum 已被哈希 (/usr/bin/yum)
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 9.1 kB 00:00:01

  • base: mirrors.aliyun.com
  • elrepo: mirrors.neusoft.edu.cn
  • epel: mirrors.aliyun.com
  • extras: mirrors.ustc.edu.cn
  • updates: mirrors.njupt.edu.cn
    base | 3.6 kB 00:00:00
    elrepo | 2.9 kB 00:00:00
    extras | 2.9 kB 00:00:00
    updates | 2.9 kB 00:00:00
    软件包 gcc-4.8.5-39.el7.x86_64 已安装并且是最新版本
    软件包 augeas-libs-1.4.0-9.el7.x86_64 已安装并且是最新版本
    软件包 1:openssl-1.0.2k-19.el7.x86_64 已安装并且是最新版本
    软件包 1:openssl-devel-1.0.2k-19.el7.x86_64 已安装并且是最新版本
    软件包 libffi-devel-3.0.13-18.el7.x86_64 已安装并且是最新版本
    软件包 redhat-rpm-config-9.1.0-88.el7.centos.noarch 已安装并且是最新版本
    软件包 ca-certificates-2019.2.32-76.el7_7.noarch 已安装并且是最新版本
    软件包 python-devel-2.7.5-86.el7.x86_64 已安装并且是最新版本
    软件包 python-virtualenv-15.1.0-2.el7.noarch 已安装并且是最新版本
    软件包 python-tools-2.7.5-86.el7.x86_64 已安装并且是最新版本
    软件包 python2-pip-8.1.2-10.el7.noarch 已安装并且是最新版本
    无须任何处理
    Creating virtual environment…
    Installing Python packages…
    Had a problem while installing Python packages.

pip prints the following errors:

Collecting ConfigArgParse==0.14.0 (from -r /tmp/tmp.0ND8k7tnef/letsencrypt-auto-requirements.txt (line 12))
Exception:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/commands/install.py”, line 324, in run
requirement_set.prepare_files(finder)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/req/req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py”, line 821, in unpack_url
hashes=hashes
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py”, line 659, in unpack_http_url
hashes)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py”, line 853, in _download_http_url
stream=True,
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 488, in get
return self.request(‘GET’, url, **kwargs)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/download.py”, line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 475, in request
resp = self.send(prep, **send_kwargs)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 596, in send
r = adapter.send(request, **kwargs)
File “/opt/eff.org/certbot/venv/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py”, line 497, in send
raise SSLError(e, request=request)
SSLError: EOF occurred in violation of protocol (_ssl.c:618)

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip
output.

Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .

Hi,

Do you by any chance run this program on MacOS?
If not, please do complete the below form:

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Also, update your Python version might help

Thank you

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.