On a setup with Ubuntu 16.04, Certbot 0.28.0, and nginx 1.10.3, I can't use Certbot to renew an existing certificate.
When I run
sudo certbot renew
, it fails and I get these errors:Hook command "nginx -s stop" returned error code 1 Error output from nginx: nginx: [error] invalid PID number "" in "/run/nginx.pid"
And when I run
sudo certbot --nginx
, it fails with this error:certbot.errors.MisconfigurationError: nginx restart failed: