Nginx certbot call limit
Does this error appear because of a certbot call limit? Should we not renew it with every provisioning?
TASK [coopdevs.certbot_nginx : Force generation of a new certificate] *********************************************************************************************************************************************
Tuesday 22 June 2021 14:08:50 +0200 (0:00:00.067) 0:00:51.138 **********
fatal: [erp.domain.coop, erptest.domain.coop]: FAILED! => {"changed": true, "cmd": "certbot certonly --force-renewal --nginx --email 'info@coopdevs.org' --agree-tos -d 'erp.domain.coop' --cert-name 'erp.domain.coop' --non-interactive \n", "delta": "0:00:07.370917", "end": "2021-06-22 12:08:58.995692", "msg": "non-zero return code", "rc": 1, "start": "2021-06-22 12:08:51.624775", "stderr": "Saving debug log to /var/log/letsencrypt/letsencrypt.log\nPlugins selected: Authenticator nginx, Installer nginx\nRenewing an existing certificate\nPerforming the following challenges:\nhttp-01 challenge for erp.domain.coop\nhttp-01 challenge for erptest.domain.coop\nnginx: [warn] the \"ssl\" directive is deprecated, use the \"listen ... ssl\" directive instead in /etc/nginx/sites-enabled/odoo.ssl.conf:18\nnginx: [error] invalid PID number \"\" in \"/var/run/nginx.pid\"\nCleaning up challenges\nnginx: [warn] the \"ssl\" directive is deprecated, use the \"listen ... ssl\" directive instead in /etc/nginx/sites-enabled/odoo.ssl.conf:18\nnginx: [error] invalid PID number \"\" in \"/var/run/nginx.pid\"\nEncountered exception during recovery: \nTraceback (most recent call last):\n File \"/usr/lib/python3/dist-packages/certbot/auth_handler.py\", line 70, in handle_authorizations\n resps = self.auth.perform(achalls)\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1134, in perform\n self.restart()\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 919, in restart\n nginx_restart(self.conf('ctl'), self.nginx_conf)\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1202, in nginx_restart\n raise errors.MisconfigurationError(\ncertbot.errors.MisconfigurationError: nginx restart failed:\nb''\nb''\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/usr/lib/python3/dist-packages/certbot/error_handler.py\", line 124, in _call_registered\n self.funcs[-1]()\n File \"/usr/lib/python3/dist-packages/certbot/auth_handler.py\", line 243, in _cleanup_challenges\n self.auth.cleanup(achalls)\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1152, in cleanup\n self.restart()\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 919, in restart\n nginx_restart(self.conf('ctl'), self.nginx_conf)\n File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1202, in nginx_restart\n raise errors.MisconfigurationError(\ncertbot.errors.MisconfigurationError: nginx restart failed:\nb''\nb''\nnginx restart failed:\nb''\nb''", "stderr_lines": ["Saving debug log to /var/log/letsencrypt/letsencrypt.log", "Plugins selected: Authenticator nginx, Installer nginx", "Renewing an existing certificate", "Performing the following challenges:", "http-01 challenge for erp.domain.coop", "http-01 challenge for erptest.domain.coop", "nginx: [warn] the \"ssl\" directive is deprecated, use the \"listen ... ssl\" directive instead in /etc/nginx/sites-enabled/odoo.ssl.conf:18", "nginx: [error] invalid PID number \"\" in \"/var/run/nginx.pid\"", "Cleaning up challenges", "nginx: [warn] the \"ssl\" directive is deprecated, use the \"listen ... ssl\" directive instead in /etc/nginx/sites-enabled/odoo.ssl.conf:18", "nginx: [error] invalid PID number \"\" in \"/var/run/nginx.pid\"", "Encountered exception during recovery: ", "Traceback (most recent call last):", " File \"/usr/lib/python3/dist-packages/certbot/auth_handler.py\", line 70, in handle_authorizations", " resps = self.auth.perform(achalls)", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1134, in perform", " self.restart()", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 919, in restart", " nginx_restart(self.conf('ctl'), self.nginx_conf)", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1202, in nginx_restart", " raise errors.MisconfigurationError(", "certbot.errors.MisconfigurationError: nginx restart failed:", "b''", "b''", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", " File \"/usr/lib/python3/dist-packages/certbot/error_handler.py\", line 124, in _call_registered", " self.funcs[-1]()", " File \"/usr/lib/python3/dist-packages/certbot/auth_handler.py\", line 243, in _cleanup_challenges", " self.auth.cleanup(achalls)", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1152, in cleanup", " self.restart()", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 919, in restart", " nginx_restart(self.conf('ctl'), self.nginx_conf)", " File \"/usr/lib/python3/dist-packages/certbot_nginx/configurator.py\", line 1202, in nginx_restart", " raise errors.MisconfigurationError(", "certbot.errors.MisconfigurationError: nginx restart failed:", "b''", "b''", "nginx restart failed:", "b''", "b''"], "stdout": "", "stdout_lines": []}
Edited by Administrator