Date: Tue, 29 Jan 2019 11:15:04 +0000 From: Gerard Seibert <gerard_seibert@outlook.com> To: "python@FreeBSD.org" <python@FreeBSD.org>, Gerard Seibert <gerard_seibert@outlook.com> Subject: Followup on [Bug 235277] www/apache24: py36-certbot failing after updating apache24 Message-ID: <BN6PR2201MB1524B76B165D5CBD33B1DAB6FA970@BN6PR2201MB1524.namprd22.prod.outlook.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
I filed BUG 235277 yesterday. That bug was shown as fixed, I updated my
ports tree last night and updated the port. My system now shows:
~ $ uname -a
FreeBSD scorpio.seibercom.net 12.0-RELEASE-p2 FreeBSD 12.0-RELEASE-p2 GENERIC amd64
~ $ freebsd-version
12.0-RELEASE-p2
~ $ pkg info py36-certbot
py36-certbot-0.30.2_2,1
Name : py36-certbot
Version : 0.30.2_2,1
~ $ pkg info py36-certbot-apache
py36-certbot-apache-0.30.2_1
Name : py36-certbot-apache
Version : 0.30.2_1
~ $ pkg info apache24
apache24-2.4.38
Name : apache24
Version : 2.4.38
~ $ pkg info python36
python36-3.6.8
Name : python36
Version : 3.6.8
When attempting to run certbot to update my certificates, this command
line message is displayed:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /usr/local/etc/letsencrypt/renewal/seibercom.net.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Non-interactive renewal: random delay of 111 seconds
Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',)
Attempting to renew cert (seibercom.net) from /usr/local/etc/letsencrypt/renewal/seibercom.net.conf produced an unexpected error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/usr/local/etc/letsencrypt/live/seibercom.net/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewal attempts failed. The following certs could not be renewed:
/usr/local/etc/letsencrypt/live/seibercom.net/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
This is the actual command that is being issued via CRON:
/usr/local/bin/certbot renew --apache --deploy-hook "service dovecot restart" --deploy-hook "/usr/home/gerard/Scripts/Monit_SSL_Updater.sh"
I have attached the letsencrypt log file.
What I want to know is if this is a problem on my side or is there
still a bug with certbot?
Thanks!
--
Gerard
[-- Attachment #2 --]
2019-01-29 00:00:09,072:DEBUG:certbot.main:certbot version: 0.30.2
2019-01-29 00:00:09,075:DEBUG:certbot.main:Arguments: ['--apache', '--deploy-hook', 'service dovecot restart', '--deploy-hook', '/usr/home/gerard/Scripts/Monit_SSL_Updater.sh']
2019-01-29 00:00:09,077:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2019-01-29 00:00:09,148:DEBUG:certbot.log:Root logging level set at 20
2019-01-29 00:00:09,150:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2019-01-29 00:00:09,271:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2019-01-29 00:00:09,272:DEBUG:certbot.cli:Var authenticator=apache (set by user).
2019-01-29 00:00:09,389:DEBUG:certbot.storage:Should renew, less than 30 days before certificate expiry 2019-02-25 09:26:20 UTC.
2019-01-29 00:00:09,389:INFO:certbot.renewal:Cert is due for renewal, auto-renewing...
2019-01-29 00:00:09,389:INFO:certbot.renewal:Non-interactive renewal: random delay of 111 seconds
2019-01-29 00:02:00,392:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2019-01-29 00:02:02,887:DEBUG:certbot_apache.configurator:Apache version is 2.4.38
2019-01-29 00:02:02,895:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#apache): Could not find configuration root
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/certbot/plugins/disco.py", line 132, in prepare
self._initialized.prepare()
File "/usr/local/lib/python3.6/site-packages/certbot_apache/configurator.py", line 252, in prepare
self.parser = self.get_parser()
File "/usr/local/lib/python3.6/site-packages/certbot_apache/configurator.py", line 299, in get_parser
self.version, configurator=self)
File "/usr/local/lib/python3.6/site-packages/certbot_apache/parser.py", line 50, in __init__
self.loc = {"root": self._find_config_root()}
File "/usr/local/lib/python3.6/site-packages/certbot_apache/parser.py", line 797, in _find_config_root
raise errors.NoInstallationError("Could not find configuration root")
certbot.errors.NoInstallationError: Could not find configuration root
2019-01-29 00:02:02,980:DEBUG:certbot.plugins.selection:No candidate plugin
2019-01-29 00:02:02,981:DEBUG:certbot.plugins.selection:No candidate plugin
2019-01-29 00:02:02,981:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
2019-01-29 00:02:02,981:INFO:certbot.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',)
2019-01-29 00:02:02,985:WARNING:certbot.renewal:Attempting to renew cert (seibercom.net) from /usr/local/etc/letsencrypt/renewal/seibercom.net.conf produced an unexpected error: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',). Skipping.
2019-01-29 00:02:03,051:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/certbot/renewal.py", line 452, in handle_renewal_request
main.renew_cert(lineage_config, plugins, renewal_candidate)
File "/usr/local/lib/python3.6/site-packages/certbot/main.py", line 1186, in renew_cert
installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
File "/usr/local/lib/python3.6/site-packages/certbot/plugins/selection.py", line 237, in choose_configurator_plugins
diagnose_configurator_problem("authenticator", req_auth, plugins)
File "/usr/local/lib/python3.6/site-packages/certbot/plugins/selection.py", line 341, in diagnose_configurator_problem
raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The apache plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError('Could not find configuration root',)
2019-01-29 00:02:03,052:ERROR:certbot.renewal:All renewal attempts failed. The following certs could not be renewed:
2019-01-29 00:02:03,075:ERROR:certbot.renewal: /usr/local/etc/letsencrypt/live/seibercom.net/fullchain.pem (failure)
2019-01-29 00:02:03,076:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.30.2', 'console_scripts', 'certbot')()
File "/usr/local/lib/python3.6/site-packages/certbot/main.py", line 1364, in main
return config.func(config, plugins)
File "/usr/local/lib/python3.6/site-packages/certbot/main.py", line 1271, in renew
renewal.handle_renewal_request(config)
File "/usr/local/lib/python3.6/site-packages/certbot/renewal.py", line 477, in handle_renewal_request
len(renew_failures), len(parse_failures)))
certbot.errors.Error: 1 renew failure(s), 0 parse failure(s)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BN6PR2201MB1524B76B165D5CBD33B1DAB6FA970>
