Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: themusthaves.co.uk
I ran this command: certbot --nginx -d themusthaves.co.uk
It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.
nginx: configuration file /etc/nginx/nginx.conf test failed
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
My web server is (include version): nginx version: nginx/1.25.4
The operating system my web server runs on is (include version): PRETTY_NAME="AlmaLinux 9.3 (Shamrock Pampas Cat)"
My hosting provider, if applicable, is: ANS (ans.co.uk)
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 3.1.0
For about a year certbot worked fine on several servers we are hosting. Now from one moment to the next, about 4 weeks ago, certbot has stopped on all four machines. The four machines all have the same installations of Alma Linux, Nginx etc.
The thing is, when I run 'nginx -t' or 'service nginx reload' it works fine. I am quite sure there are no problems with the Nginx configuration.
Yet when I try to renew certbot certificates things fail. Things also fail when the daily cron runs to update the certificates. Certbot is installed with the appropriate nginx package and with snap.
Does anyone have an idea what the actual problem here can be?
Kind regards,
Sebastiaan