Hello,
I have a cron job for renewing certificates on my server. I have many vhost on this server.
Here is the script :
certbot renew --pre-hook "/etc/init.d/apache2 stop" --post-hook "/etc/init.d/apache2 start"
Here is the configuration example for all vhost :
“/etc/letsencrypt/renewal/www.mydomain.com.conf” :
[renewalparams]
authenticator = standalone
installer = apache
account = XXXX
When I run the renew job, first certificate is renewed without any issue, but other following up fails with this error :
2018-09-07 07:21:42,223:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/certbot/auth_handler.py", line 111, in _solve_challenges
resp = self.auth.perform(self.achalls)
File "/usr/lib/python2.7/dist-packages/certbot/plugins/standalone.py", line 234, in perform
self._verify_ports_are_available(achalls)
File "/usr/lib/python2.7/dist-packages/certbot/plugins/standalone.py", line 231, in _verify_ports_are_available
"At least one of the required ports is already taken.")
MisconfigurationError: At least one of the required ports is already taken.
Any idea on what is wrong here ?
This lead to crash my apache2 has it didn’t start apache2 after that.
certbot version is 0.10.2-1~bpo8+1 on Debian 8.11