Dear friends,
Please help me to resolve it. I have tried many ways but with no success
I ran this command: sudo certbot --apache -d my domain -d www.my domain
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Cert not yet due for renewal
You have an existing certificate that has exactly the same domains or certificate name you requested and isnât close to expiry.
(ref: /etc/letsencrypt/renewal/av.gds.vn-0001.conf)
What would you like to do?
1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (may be subject to CA rate limits)
Select the appropriate number [1-2] then [enter] (press âcâ to cancel): 1
Keeping the existing certificate
Deploying Certificate to VirtualHost /etc/httpd/conf.d/nextcloud-le-ssl.conf
Error while running apachectl graceful.
Job for httpd.service invalid.
Unable to restart apache using [âapachectlâ, âgracefulâ]
Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See âsystemctl status httpd.serviceâ and âjournalctl -xeâ for details.
Rolling back to previous server configurationâŚ
Error while running apachectl graceful.
Job for httpd.service invalid.
Unable to restart apache using [âapachectlâ, âgracefulâ]
Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See âsystemctl status httpd.serviceâ and âjournalctl -xeâ for details.
Encountered exception during recovery:
Traceback (most recent call last):
File â/usr/lib/python2.7/site-packages/certbot/_internal/error_handler.pyâ, line 125, in _call_registered
self.funcs-1
File â/usr/lib/python2.7/site-packages/certbot/_internal/client.pyâ, line 630, in _rollback_and_restart
self.installer.restart()
File â/usr/lib/python2.7/site-packages/certbot_apache/_internal/configurator.pyâ, line 2410, in restart
self._reload()
File â/usr/lib/python2.7/site-packages/certbot_apache/_internal/configurator.pyâ, line 2437, in _reload
raise errors.MisconfigurationError(error)
MisconfigurationError: Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See âsystemctl status httpd.serviceâ and âjournalctl -xeâ for details.
Error while running apachectl restart.
Job for httpd.service failed because the control process exited with error code. See âsystemctl status httpd.serviceâ and âjournalctl -xeâ for details.
IMPORTANT NOTES:
- An error occurred and we failed to restore your config and restart
your server. Please post to
https://community.letsencrypt.org/c/help with details about your
configuration and this error you received. - Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/av.gds.vn-0001/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/av.gds.vn-0001/privkey.pem
Your cert will expire on 2020-12-15. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the âcertonlyâ option. To non-interactively renew all of
your certificates, run âcertbot renewâ