We updated Ubuntu 18.04 server and now we’re facing the same issue on ssl certificate renewal. Before we had faced many issues which we manually solved, like libssl was upgraded too, wkhtml2pdf was also upgraded.
Now only issue let is ssl certificate renewal. when I run sudo service nginx stop && sudo /opt/certbot-auto renew && sudo service nginx start
I get the following error.
sudo service nginx stop && sudo /opt/certbot-auto renew && sudo service nginx start
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/site-packages/certbot/main.py", line 6, in <module>
import logging.handlers
File "/usr/lib/python2.7/logging/__init__.py", line 26, in <module>
import sys, os, time, cStringIO, traceback, warnings, weakref, collections
File "/usr/lib/python2.7/weakref.py", line 14, in <module>
from _weakref import (
ImportError: cannot import name _remove_dead_weakref