nginx-proxy
nginx-proxy copied to clipboard
Configurations are not updated after ssl-cert renew failure
Error Logs
2024-12-10 04:16:52,725 - INFO - trying to create account key /etc/ssl/accounts/docs.formurl.com.account.key
2024-12-10 04:16:53,133 - INFO - trying to register acmev2 account
2024-12-10 04:16:54,101 - INFO - already registered
2024-12-10 04:16:54,101 - INFO - trying to create domain key
2024-12-10 04:16:54,102 - INFO - acmev2 http challenge
2024-12-10 04:16:54,102 - INFO - preparing new order
2024-12-10 04:16:55,821 - DEBUG - {
"status": "pending",
"expires": "2024-12-17T04:16:59Z",
"identifiers": [
{
"type": "dns",
"value": "docs.formurl.com"
}
],
"authorizations": [
"https://acme-v02.api.letsencrypt.org/acme/authz/1944842396/442575882897"
],
"finalize": "https://acme-v02.api.letsencrypt.org/acme/finalize/1944842396/331688118297"
}
2024-12-10 04:16:55,821 - INFO - order created
Exception in thread Thread-1 (update_ssl_certificates):
Traceback (most recent call last):
File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/app/nginx_proxy/post_processors/ssl_certificate_processor.py", line 55, in update_ssl_certificates
self.server.reload()
File "/app/nginx_proxy/WebServer.py", line 153, in reload
self.ssl_processor.process_ssl_certificates(hosts)
File "/app/nginx_proxy/post_processors/ssl_certificate_processor.py", line 82, in process_ssl_certificates
registered = self.ssl.register_certificate_or_selfsign([h.hostname for h in ssl_requests],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/nginx_proxy/SSL.py", line 168, in register_certificate_or_selfsign
obtained = self.register_certificate(filtered_sub_list, no_self_check=no_self_check,ignore_existing=ignore_existing) if filtered_sub_list else []
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/nginx_proxy/SSL.py", line 134, in register_certificate
return domain if acme.solve_http_challenge(directory) else[]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/acme_nginx/AcmeV2.py", line 108, in solve_http_challenge
auth = json.loads(urlopen(url).read().decode('utf8'))
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 519, in open
response = self._open(req, data)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/urllib/request.py", line 1352, in do_open
r = h.getresponse()
^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/http/client.py", line 1374, in getresponse
response.begin()
File "/usr/local/lib/python3.11/http/client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/http/client.py", line 287, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
^C