Closed realpixelcode closed 6 months ago
Sometimes mail provider does not work. Can you try a couple of times and see if it can be reproduced?
I tried it from a different network, and now I don't get that error anymore. Instead, half of the time I get this:
2024-02-08 13:04:02,172:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/home/pixelcode/Applications/acme_email/cli.py", line 265, in <module>
main(args)
File "/home/pixelcode/Applications/acme_email/cli.py", line 203, in main
request_cert(args, config)
File "/home/pixelcode/Applications/acme_email/cli.py", line 125, in request_cert
cert_path, chain_path, fullchain_path = certbot_main._csr_get_and_save_cert(config, le_client)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/main.py", line 1521, in _csr_get_and_save_cert
cert_path, chain_path, fullchain_path = le_client.save_certificate(
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/client.py", line 618, in save_certificate
cert_file, abs_cert_path = _open_pem_file(self.config, 'cert_path', cert_path)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/client.py", line 864, in _open_pem_file
if config.set_by_user(cli_arg_path):
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/configuration.py", line 111, in set_by_user
raise RuntimeError(
RuntimeError: NamespaceConfig.set_by_user called without an ArgumentSources dict. See NamespaceConfig.set_argument_sources().
2024-02-08 13:04:02,173:ERROR:certbot._internal.log:An unexpected error occurred:
2024-02-08 13:04:02,173:ERROR:certbot._internal.log:RuntimeError: NamespaceConfig.set_by_user called without an ArgumentSources dict. See NamespaceConfig.set_argument_sources().
And for the other half, I get this:
{"status": "pending", "expires": "2024-02-09T11:59:26.433Z", "identifier": {"type": "dns", "value": "pixelcode@dismail.de"}, "challenges": [{"url": "https://acme.castle.cloud/acme/chall/xxx", "type": "email-reply-00", "token": "xxx", "status": "processing", "from": "acme+xxx@castle.cloud"}]}
2024-02-08 13:01:03,180:DEBUG:acme.client:Storing nonce: xxx
2024-02-08 13:01:03,185:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/auth_handler.py", line 108, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, max_time_mins, best_effort)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/auth_handler.py", line 216, in _poll_authorizations
raise errors.AuthorizationError('All authorizations were not finalized by the CA.')
certbot.errors.AuthorizationError: All authorizations were not finalized by the CA.
2024-02-08 13:01:03,185:DEBUG:certbot._internal.error_handler:Calling registered functions
2024-02-08 13:01:03,185:INFO:certbot._internal.auth_handler:Cleaning up challenges
2024-02-08 13:01:03,186:DEBUG:imapclient.imaplib:> b'LGAP8 LOGOUT'
2024-02-08 13:01:03,203:DEBUG:imapclient.imaplib:< b'* BYE Logging out'
2024-02-08 13:01:03,203:DEBUG:imapclient.imaplib: matched b'\\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => (b'BYE', b' Logging out', b'Logging out')
2024-02-08 13:01:03,203:DEBUG:imapclient.imaplib:untagged_responses[BYE] 0 += ["b'Logging out'"]
2024-02-08 13:01:03,203:DEBUG:imapclient.imaplib:BYE response: b'Logging out'
2024-02-08 13:01:03,204:DEBUG:imapclient.imapclient:Logged out, connection closed
2024-02-08 13:01:03,240:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/home/pixelcode/Applications/acme_email/cli.py", line 265, in <module>
main(args)
File "/home/pixelcode/Applications/acme_email/cli.py", line 203, in main
request_cert(args, config)
File "/home/pixelcode/Applications/acme_email/cli.py", line 125, in request_cert
cert_path, chain_path, fullchain_path = certbot_main._csr_get_and_save_cert(config, le_client)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/main.py", line 1516, in _csr_get_and_save_cert
cert, chain = le_client.obtain_certificate_from_csr(csr)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/client.py", line 334, in obtain_certificate_from_csr
orderr = self._get_order_and_authorizations(csr.data, best_effort=False)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/client.py", line 496, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/auth_handler.py", line 108, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, max_time_mins, best_effort)
File "/home/pixelcode/Applications/acme_email/venv/lib/python3.10/site-packages/certbot/_internal/auth_handler.py", line 216, in _poll_authorizations
raise errors.AuthorizationError('All authorizations were not finalized by the CA.')
certbot.errors.AuthorizationError: All authorizations were not finalized by the CA.
2024-02-08 13:01:03,241:ERROR:certbot._internal.log:All authorizations were not finalized by the CA.
This happens when mail backend fails. It has a kind of throttle. If you retry, at some point it should work.
Closing, as the original issue is resolved.
Here's the terminal command I used:
And here's the error log it produced:
Certbot version:
Version of
acme_email
used:24b2510