H
I wonder if anyone can help - I’ve a recurring issue where certbot fails to restart the web server.
( I’m running Debian Stretch, Apache2 web server )
It seems random, doesn’t happen every day, and doesn’t even seem to be related to the time certbot is scheduled to run, but the times in the logs correlate
The run starts in letsencrypt.log as follows:
2018-08-15 12:31:08,589:INFO:certbot.hooks:Running pre-hook command: apachectl -k stop
2018-08-15 12:31:08,708:ERROR:certbot.hooks:Error output from apachectl:
[Wed Aug 15 12:31:08.650940 2018] [alias:warn] [pid 27477] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
The final lines in letsencrypt.log are as follows:
2018-08-15 12:31:14,247:DEBUG:certbot.renewal:no renewal failures
2018-08-15 12:31:14,247:INFO:certbot.hooks:Running post-hook command: apachectl -k start
2018-08-15 12:31:14,326:ERROR:certbot.hooks:Error output from apachectl:
[Wed Aug 15 12:31:14.303140 2018] [alias:warn] [pid 27491] AH00671: The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
The apache error.log shows this:
[Wed Aug 15 12:31:08.741571 2018] [mpm_prefork:notice] [pid 17154] AH00169: caught SIGTERM, shutting down
[Wed Aug 15 12:31:14.433358 2018] [mpm_prefork:notice] [pid 27492] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Wed Aug 15 12:31:14.433424 2018] [core:notice] [pid 27492] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 15 12:31:14.567663 2018] [mpm_prefork:notice] [pid 27492] AH00169: caught SIGTERM, shutting down
And finally, this is when I performed a manual apachectl start which worked fine.
[Wed Aug 15 19:12:39.401637 2018] [mpm_prefork:notice] [pid 11062] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Wed Aug 15 19:12:39.401690 2018] [core:notice] [pid 11062] AH00094: Command line: '/usr/sbin/apache2'
The cron entry is as follows - I can’t even understand why it ran at 12:31!?
00 22 * * * certbot renew --renew-hook "systemctl restart apache2"
Any assistance gratefuly received