My domain is: backyardbowl.ca (failing with multiple certifcates though).
I ran this command:
sudo certbot renew
It produced this output:
Failed to renew certificate backyardbowl.ca with error: list index out of range
My web server is (include version):
Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-204-generic x86_64) (yes I know it is old)
My hosting provider, if applicable, is:
Digital Ocean
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):
3.3.0
Rerverting to 3.2.0 fixed the issue.
Error in the logs;
2025-03-27 13:14:52,929:DEBUG:acme.client:Storing nonce: 3u7v6Bm_lirtOMayx3q47JBl50Z4NebfCiJy0yD3EPE1buktLEo
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:Performing the following challenges:
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:http-01 challenge for backyardbowl.ca
2025-03-27 13:14:52,946:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot/_internal/auth_handler.py", line 88, in handle_authorizations
resps = self.auth.perform(achalls)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 1240, in perform
http_response = http_doer.perform()
^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 63, in perform
self._mod_config()
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 134, in _mod_config
config = [self._make_or_mod_server_block(achall) for achall in self.achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 223, in _make_or_mod_server_block
http_vhosts, https_vhosts = self.configurator.choose_auth_vhosts(achall.domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 581, in choose_auth_vhosts
vhosts = [m['vhost'] for m in self._get_ranked_matches(target_name) if m and 'vhost' in m]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 460, in _get_ranked_matches
vhost_list = self.parser.get_vhosts()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/parser.py", line 165, in get_vhosts
parsed_server = _parse_server_raw(server)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/parser.py", line 821, in _parse_server_raw
end_index = [i for i, param in enumerate(params) if param.startswith('\n')][0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2025-03-27 13:14:52,929:DEBUG:acme.client:Storing nonce: 3u7v6Bm_lirtOMayx3q47JBl50Z4NebfCiJy0yD3EPE1buktLEo
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:Performing the following challenges:
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:http-01 challenge for backyardbowl.ca
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:http-01 challenge for wp.metalsforhumanity.com
2025-03-27 13:14:52,930:INFO:certbot._internal.auth_handler:http-01 challenge for www.backyardbowl.ca
2025-03-27 13:14:52,946:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot/_internal/auth_handler.py", line 88, in handle_authorizations
resps = self.auth.perform(achalls)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 1240, in perform
http_response = http_doer.perform()
^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 63, in perform
self._mod_config()
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 134, in _mod_config
config = [self._make_or_mod_server_block(achall) for achall in self.achalls]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/http_01.py", line 223, in _make_or_mod_server_block
http_vhosts, https_vhosts = self.configurator.choose_auth_vhosts(achall.domain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 581, in choose_auth_vhosts
vhosts = [m['vhost'] for m in self._get_ranked_matches(target_name) if m and 'vhost' in m]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/configurator.py", line 460, in _get_ranked_matches
vhost_list = self.parser.get_vhosts()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/parser.py", line 165, in get_vhosts
parsed_server = _parse_server_raw(server)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/snap/certbot/4482/lib/python3.12/site-packages/certbot_nginx/_internal/parser.py", line 821, in _parse_server_raw
end_index = [i for i, param in enumerate(params) if param.startswith('\n')][0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range