Certbot Error

this morning I was adding a new site in the panel and when it arrived in the add part of the ssl gave the message of ssl successfully generated but in the site was not valid, I went to check the certbot and giving a simple: “certbot --help” it generates this error:
[root@ ~]# certbot --help
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.21.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 476, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2700, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2318, in load
return self.resolve()
File “/usr/lib/python2.7/site-packages/pkg_resources/init.py”, line 2324, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 11, in
import zope.component
File “/usr/lib/python2.7/site-packages/zope/component/init.py”, line 19, in
from zope.interface import named
ImportError: cannot import name named

Create ticket, will have a look.

I execute: pip install --upgrade pip, pip install --upgrade requests, pip install --upgrade certbot

and now gives this error:

Traceback (most recent call last):
File “/usr/bin/certbot”, line 7, in
from certbot.main import main
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 11, in
import zope.component
File “/usr/lib/python2.7/site-packages/zope/component/init.py”, line 19, in
from zope.interface import named
ImportError: cannot import name named

and when I try to run: pip install --upgrade zope

this error appears:

ZEO requires Python ‘>=2.7.9,!=3.0.,!=3.1.,!=3.2.,!=3.3.’ but the running Python is 2.7.5

[root@ ~]# pip freeze

acme==0.25.1
asn1crypto==0.24.0
backports.ssl-match-hostname==3.5.0.1
Beaker==1.5.4
certbot==0.25.1
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
ConfigArgParse==0.13.0
configobj==5.0.6
cryptography==2.2.2
decorator==3.4.0
deluge==1.3.15
Django==1.11
enum34==1.1.6
fail2ban==0.9.7
fpconst==0.7.3
funcsigs==1.0.2
future==0.16.0
GeoIP-Python==1.2.8
gunicorn==19.8.1
idna==2.7
iniparse==0.4
ipaddress==1.0.16
josepy==1.1.0
M2Crypto==0.21.1
Mako==0.8.1
MarkupSafe==0.11
mock==2.0.0
MySQL-python==1.2.5
nose==1.3.7
numpy==1.7.1
parsedatetime==2.4
Paste==1.7.5.1
pbr==4.0.3
pexpect==4.4.0
psutil==5.4.3
ptyprocess==0.5.2
pycparser==2.18
pycurl==7.19.0
pygame===1.9.1release
pygobject==3.22.0
pygpgme==0.3
pyliblzma==0.5.3
pyOpenSSL==0.13.1
pyRFC3339==1.0
pyserial==2.6
python-libtorrent==1.0.9
pytz==2018.4
pyxattr==0.5.1
pyxdg==0.25
rencode==1.0.5
requests==2.19.1
requests-file==1.4.3
requests-toolbelt==0.8.0
setproctitle==1.1.6
six==1.11.0
slip==0.4.0
slip.dbus==0.4.0
SOAPpy==0.11.6
Tempita==0.5.1
tldextract==2.2.0
Twisted-Core==12.2.0
Twisted-Web==12.1.0
urlgrabber==3.10
urllib3==1.23
yum-metadata-parser==1.1.4
zope.component==4.4.1
zope.event==4.3.0
zope.interface==4.5.0

What did you change just before this error?

before that I had to give a “yum update -y” to install the openvpn server

strange that a short time ago I installed the cyberpanel in another vps, and it did not give this defect and neither the defect of the firewalld

this vps that is giving the defect was installed on 05/24/18

should I reinstall the system and the cyberpanel again?

should I reinstall the system and the cyberpanel again?

You can re-install, if feasible for you.

so I saw in forums, the cyberpanel runs 100% in virtualization kvm, now in openvz the much problem with the firewalld and some python models

because I was just doing the remote backup to another openvz server and gave an error in the middle of the transfer, yesterday I did the same filing for a server in kvm and it did not give any problem …

Should work fine on OpenVZ, KVM, and dedicated server.

I’ll send you the cyberpanel installation log in centos 7.5

https://vpn.phxserver.ml/nohup.out.txt

[06-04-49-Mon-Jun-2018] ###############Failed to start firewalld.service: Unit is masked.
Failed to start firewalld.service: Unit is masked.
Failed to execute operation: Cannot send after transport endpoint shutdown
Failed to execute operation: Cannot send after transport endpoint shutdown
Failed to execute operation: Cannot send after transport endpoint shutdown
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running
FirewallD is not running

On OpenVZ - Centos 7.5 x86_x64

Also paste: /var/log/installLogs.txt

I see Failed to start firewalld.service: Unit is masked`

try run systemctl unmask firewalld and <code class="CodeInline">systemctl enable firewalld before installation

https://vpn.phxserver.ml/installLogs.txt

I see Failed to start firewalld.service: Unit is masked`

try run systemctl unmask firewalld and <code class="CodeInline">systemctl enable firewalld before installation

I’ll test here, thx