An unexpected error occurred:
ContextualVersionConflict: (pyOpenSSL 0.13.1 (/usr/lib64/python2.7/site-packages), Requirement.parse(‘pyOpenSSL>=0.14; extra == “security”’), set([‘requests’]))
Please see the logfile ‘/tmp/tmpCDQugx’ for more details.
My web server is (include version):apache
The operating system my web server runs on is (include version):centos7.6
My hosting provider, if applicable, is: Ali cloud
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, or provide the name and version of the control panel):no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):certbot-0.30.2-1.el7.noarch
But the use of certbot --apache
An unexpected error occurred:
UnknownExtra: requests 2.6.0 has no such extra feature ‘security’
Please see the logfile ‘/tmp/tmpWysFLh’ for more details.
I didn't mean for you to run those commands immediately, just to check whether you have been installing Python packages outside of yum (which causes conflicts).
Regarding this issue, I believe this could help:
yum -y reinstall python2-acme certbot
But if not, you might try giving certbot-auto a go. It's hard to know what state your Python packages are in, but certbot-auto runs in a way that isolates its dependencies and should work around any issues that you are having.
But the use of certbot --apache
Traceback (most recent call last):
File “/usr/bin/certbot”, line 5, in
from pkg_resources import load_entry_point
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3138, in @_call_aside
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3122, in _call_aside
f(*args, **kwargs)
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 3151, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 666, in _build_master
return cls._build_from_requirements(requires)
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 679, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 867, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘certbot==0.30.2’ distribution was not found and is required by the application
But the use of rpm -qa |grep certbot python2-certbot-0.30.2-1.el7.noarch python2-certbot-apache-0.30.2-1.el7.noarch certbot-0.30.2-1.el7.noarch
I found this version–certbot-0.30.2-1.el7.noarch
Do you want me to use certbot-auto? But certbot-auto is not centos6 version of the command?
I used certbot-auto -apache but bash popped up: certbot-auto: command not found
but apper gpg: Signature made Fri 08 Feb 2019 05:26:55 AM CST using RSA key ID CD9775F2 gpg: Can’t check signature: No public key
I need to create the key myself?
but apper Unable to find a virtual host listening on port 80 which is currently needed for Certbot to prove to the CA that you control your domain. Please add a virtual host for port 80.