Letsencrypt Certificate. I receive "Validation failed: Challenge failed for this domain(s)"

I have try three installs of 7.9.2009 with a domain name that points to the Neth Server on ports 80 and 443 all looks fine but I can not get a Letsencrypt Certificate. I receive “Validation failed: Challenge failed for this domain(s)”

I have followed the documentation and the tools recommended for checking online to see if the domain name is right for Letsencrypt.

Has anyone any pointer on what to look for next?

Unfortunately, Neth is even worse than Apple at telling you what the actual error is. But you can find the certbot logs in /var/log/letsencrypt/. What does the last one say?

Thanks Dan

2021-03-19 12:29:58,750:WARNING:certbot._internal.auth_handler:Challenge failed for domain (removed for this post)
2021-03-19 12:29:58,750:INFO:certbot._internal.auth_handler:http-01 challenge for (removed for this post)
2021-03-19 12:29:58,751:DEBUG:certbot._internal.reporter:Reporting to user: The following errors were reported by the server:

Domain: (removed for this post)
Type: caa
Detail: CAA record for (removed for this post) prevents issuance
2021-03-19 12:29:58,752:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/certbot/_internal/auth_handler.py”, line 91, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File “/usr/lib/python2.7/site-packages/certbot/_internal/auth_handler.py”, line 180, in _poll_authorizations
raise errors.AuthorizationError(‘Some challenges have failed.’)
AuthorizationError: Some challenges have failed.

2021-03-19 12:29:58,752:DEBUG:certbot._internal.error_handler:Calling registered functions
2021-03-19 12:29:58,752:INFO:certbot._internal.auth_handler:Cleaning up challenges
2021-03-19 12:29:58,752:DEBUG:certbot._internal.plugins.webroot:Removing /var/www/html/.well-known/acme-challenge/y8oxQex-9x4tG-Qu-ekr6M_woAK843DwocTJs9ucuAA
2021-03-19 12:29:58,752:DEBUG:certbot._internal.plugins.webroot:All challenges cleaned up
2021-03-19 12:29:58,752:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 9, in
load_entry_point(‘certbot==1.11.0’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/site-packages/certbot/main.py”, line 15, in main
return internal_main.main(cli_args)
File “/usr/lib/python2.7/site-packages/certbot/_internal/main.py”, line 1421, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/site-packages/certbot/_internal/main.py”, line 1294, in certonly
lineage = _get_and_save_cert(le_client, config, domains, certname, lineage)
File “/usr/lib/python2.7/site-packages/certbot/_internal/main.py”, line 135, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python2.7/site-packages/certbot/_internal/client.py”, line 441, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python2.7/site-packages/certbot/_internal/client.py”, line 374, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/lib/python2.7/site-packages/certbot/_internal/client.py”, line 421, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/lib/python2.7/site-packages/certbot/_internal/auth_handler.py”, line 91, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File “/usr/lib/python2.7/site-packages/certbot/_internal/auth_handler.py”, line 180, in _poll_authorizations
raise errors.AuthorizationError(‘Some challenges have failed.’)
AuthorizationError: Some challenges have failed.
2021-03-19 12:29:58,758:ERROR:certbot._internal.log:Some challenges have failed.

There’s your problem. Fix your CAA record.

Thank Dan that worked.

Penny has now dropped on CAA records error.