Encountered exception during recovery: certbot.errors.MisconfigurationError: nginx restart failed

@j2bd Welcome to the community!

This is a coincidence. We resolved a problem like this just yesterday. Hopefully yours is caused by a similar reason. In that case an nginx server got stuck and could not be stopped. We had to restart the server.

Show results of these commands. Please put three backticks ``` before and after to format nice (or use the preformatted text menu option).

sudo netstat -pant | grep -Ei ':80|listen'
sudo systemctl stop nginx
sudo netstat -pant | grep -Ei ':80|listen'

We want to see what nginx is currently listening (the first netstat command) and then if it remains listening after stopping it. If it remains listening after the stop, try restarting your server. If it did stop then we will investigate more - please post the results of the commands then.

2 Likes