I checked that log file, it's a similar output to the docker log:
Traceback (most recent call last):
File "/usr/bin/certbot", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 1514, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 237, in find_all
plugin_ep = cls._load_entry_point(entry_point, plugins, with_prefix=False)
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 255, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point, with_prefix)
File "/usr/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 51, in __init__
self.plugin_cls: interfaces.IPluginFactory = entry_point.load()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2449, in load
self.require(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2472, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mock' distribution was not found and is required by the application
2021-07-05 23:10:53,098:ERROR:certbot._internal.log:An unexpected error occurred:
2021-07-05 23:10:53,099:ERROR:certbot._internal.log:pkg_resources.DistributionNotFound: The 'mock' distribution was not foun
d and is required by the application
It's strange though, when i manually run a certbot renew I get this for the output:
The following certificates are not due for renewal yet:
/etc/letsencrypt/live/npm-1/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-10/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-11/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-12/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-13/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-14/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-15/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-16/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-17/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-18/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-4/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-5/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-6/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-7/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-8/fullchain.pem expires on 2021-10-04 (skipped)
/etc/letsencrypt/live/npm-9/fullchain.pem expires on 2021-10-04 (skipped)
Which as far as I can tell are my certs. Certbot is saying they're still good, but NPM and Digicert's certificate checker are saying they're due to expire on the 14th. Seems like certbot is looking at a different set of something than NPM.