Certbot renewal error

I ran the command ./certbot-auto renew and it produced the output:

An unexpected error occurred:
ContextualVersionConflict: (rsa 4.5 (/opt/eff.org/certbot/venv/lib/python2.7/site-packages), Requirement.parse(‘rsa<4.1; python_version < “3”’), set([‘google-auth’]))
Please see the logfile ‘/tmp/tmpvGJndE/log’ for more details.

looking at the log file:

2020-07-30 21:39:04,357:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/bin/certbot”, line 11, in
sys.exit(main())
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/main.py”, line 15, in main
return internal_main.main(cli_args)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/main.py”, line 1323, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py”, line 215, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/plugins/disco.py”, line 56, in init
self.plugin_cls = entry_point.load()
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 2345, in load
self.require(*args, **kwargs)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 2368, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pkg_resources/init.py”, line 789, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (rsa 4.5 (/opt/eff.org/certbot/venv/lib/python2.7/site-packages), Requirement.parse(‘rsa<4.1; python_version < “3”’), set([‘google-auth’]))
2020-07-30 21:39:04,357:ERROR:certbot._internal.log:An unexpected error occurred:
2020-07-30 21:39:04,358:ERROR:certbot._internal.log:ContextualVersionConflict: (rsa 4.5 (/opt/eff.org/certbot/venv/lib/python2.7/site-packages), Requirement.parse(‘rsa<4.1; python_version < “3”’), set([‘google-auth’]))

my OS is: Ubuntu 16.04.3 LTS
My Webserver version is: Server version: Apache/2.4.18 (Ubuntu)

1 Like

If you remove the certbot-auto virtual environment and try it again, does it still happen?

sudo rm -rf /opt/eff.org/certbot/
2 Likes

Thank you _az!!! That worked!! I removed the venv and was able to renew the certs!!

1 Like