My domain is:
[redacted]
I ran this command:
certbot renew
It produced this output:
Yesterday it was reporting the file was not a symlink:
2018-07-16 06:00:05,614:DEBUG:certbot.main:certbot version: 0.25.1
2018-07-16 06:00:05,614:DEBUG:certbot.main:Arguments: ['-q']
2018-07-16 06:00:05,614:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-07-16 06:00:05,764:DEBUG:certbot.log:Root logging level set at 30
2018-07-16 06:00:05,764:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-07-16 06:00:05,842:WARNING:certbot.renewal:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/certbot/renewal.py", line 63, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python2.7/site-packages/certbot/storage.py", line 434, in __init__
self._check_symlinks()
File "/usr/lib/python2.7/site-packages/certbot/storage.py", line 493, in _check_symlinks
"expected {0} to be a symlink".format(link))
CertStorageError: expected /etc/letsencrypt/live/[redacted]/cert.pem to be a symlink
2018-07-16 06:00:05,862:WARNING:certbot.renewal:Renewal configuration file /etc/letsencrypt/renewal/[redacted].conf is broken. Skipping.
2018-07-16 06:00:05,862:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/certbot/renewal.py", line 63, in _reconstitute
renewal_candidate = storage.RenewableCert(full_path, config)
File "/usr/lib/python2.7/site-packages/certbot/storage.py", line 434, in __init__
self._check_symlinks()
File "/usr/lib/python2.7/site-packages/certbot/storage.py", line 493, in _check_symlinks
"expected {0} to be a symlink".format(link))
CertStorageError: expected /etc/letsencrypt/live/[redacted]/cert.pem to be a symlink
2018-07-16 06:00:05,928:DEBUG:certbot.plugins.selection:Requested authenticator <certbot.cli._Default object at 0x7fdff4d8a4d0> and installer <certbot.cli._Default object at 0x7fdff4d8a4d0>
2018-07-16 06:00:05,987:INFO:certbot.renewal:Cert not yet due for renewal
2018-07-16 06:00:05,988:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2018-07-16 06:00:06,078:DEBUG:certbot.plugins.util:Can't find apachectl, attempting PATH mitigation by adding /usr/sbin:/usr/local/bin:/usr/local/sbin
2018-07-16 06:00:12,172:DEBUG:certbot_apache.configurator:Apache version is 2.4.6
2018-07-16 06:20:00,478:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
Initialized: <certbot_apache.override_centos.CentOSConfigurator object at 0x7fdff4dc2850>
Prep: True
2018-07-16 06:20:00,479:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
Initialized: <certbot_apache.override_centos.CentOSConfigurator object at 0x7fdff4dc2850>
Prep: True
2018-07-16 06:20:00,479:DEBUG:certbot.plugins.selection:Selected authenticator <certbot_apache.override_centos.CentOSConfigurator object at 0x7fdff4dc2850> and installer <certbot_apache.override_centos.CentOSConfigurator object at 0x7fdff4dc2850>
2018-07-16 06:20:00,480:INFO:certbot.plugins.selection:Plugins selected: Authenticator apache, Installer apache
2018-07-16 06:20:00,537:INFO:certbot.renewal:Cert not yet due for renewal
2018-07-16 06:20:00,538:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2018-07-16 06:20:04,214:DEBUG:certbot_apache.configurator:Apache version is 2.4.6
2018-07-16 06:39:50,466:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
Description: Apache Web Server plugin - Beta
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
Initialized: <certbot_apache.override_centos.CentOSConfigurator object at 0x7fdff4dc2410>
Prep: True
... other certificates beyond here doing just fine and repeats the above success lines
I updated the files it complained about not being a symlink and now it just hangs whenever I try and run certbot
, certbot --apache
, certbot renew
, etc. I’ve let this run up to an hour, but the contents of the log file are the same.
2018-07-17 15:06:55,616:DEBUG:certbot.main:certbot version: 0.25.1
2018-07-17 15:06:55,616:DEBUG:certbot.main:Arguments: ['--apache']
2018-07-17 15:06:55,616:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-07-17 15:06:55,771:DEBUG:certbot.log:Root logging level set at 20
2018-07-17 15:06:55,772:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-07-17 15:06:55,872:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2018-07-17 15:07:01,753:DEBUG:certbot_apache.configurator:Apache version is 2.4.6
2018-07-17 15:10:24,958:ERROR:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 9, in <module>
load_entry_point('certbot==0.25.1', 'console_scripts', 'certbot')()
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 1323, in main
return config.func(config, plugins)
File "/usr/lib/python2.7/site-packages/certbot/main.py", line 1073, in run
installer, authenticator = plug_sel.choose_configurator_plugins(config, plugins, "run")
File "/usr/lib/python2.7/site-packages/certbot/plugins/selection.py", line 195, in choose_configurator_plugins
authenticator = installer = pick_configurator(config, req_inst, plugins)
File "/usr/lib/python2.7/site-packages/certbot/plugins/selection.py", line 25, in pick_configurator
(interfaces.IAuthenticator, interfaces.IInstaller))
File "/usr/lib/python2.7/site-packages/certbot/plugins/selection.py", line 77, in pick_plugin
verified.prepare()
File "/usr/lib/python2.7/site-packages/certbot/plugins/disco.py", line 246, in prepare
return [plugin_ep.prepare() for plugin_ep in six.itervalues(self._plugins)]
File "/usr/lib/python2.7/site-packages/certbot/plugins/disco.py", line 127, in prepare
self._initialized.prepare()
File "/usr/lib/python2.7/site-packages/certbot_apache/configurator.py", line 237, in prepare
self.vhosts = self.get_virtual_hosts()
File "/usr/lib/python2.7/site-packages/certbot_apache/configurator.py", line 813, in get_virtual_hosts
(vhost_path, parser.case_i("VirtualHost"))))
File "/usr/lib/python2.7/site-packages/augeas.py", line 413, in match
ctypes.byref(array))
KeyboardInterrupt
My web server is (include version):
Server version: Apache/2.4.6 (CentOS)
Server built: Jun 27 2018 13:48:59
The operating system my web server runs on is (include version):
centos-release-7-5.1804.el7.centos.2.x86_64
My hosting provider, if applicable, is:
Rackspace
I can login to a root shell on my machine (yes or no, or I don’t know):
Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
No
So did I screw things up by changing the symlink manually? Because changing everything back doesn’t seem to help. And if so, how can I fix this? I’ve reinstalled Certbot (using python2-certbot-apache
v. 0.25.1-1.el7), and that hasn’t cleared up the issue.