Certbot renew failed

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:
windglass.dyndns.org
I ran this command:
certbot renew
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /usr/local/etc/letsencrypt/renewal/windglass.dyndns.org.conf

Cert is due for renewal, auto-renewing…
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for windglass.dyndns.org
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (windglass.dyndns.org) from /usr/local/etc/letsencrypt/ renewal/windglass.dyndns.org.conf produced an unexpected error: Failed authoriza tion procedure. windglass.dyndns.org (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching https:/ /windglass.dyndns.org/.well-known/acme-challenge/7PXO4XmjZq-_VbZ0u5W2SQEAPrM208y eUjbsTnR25EI: dns :: DNS problem: query timed out looking up A for windglass.dyn dns.org. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/usr/local/etc/letsencrypt/live/windglass.dyndns.org/fullchain.pem (failure)


All renewal attempts failed. The following certs could not be renewed:
/usr/local/etc/letsencrypt/live/windglass.dyndns.org/fullchain.pem (failure)

1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: windglass.dyndns.org
    Type: connection
    Detail: Fetching
    https://windglass.dyndns.org/.well-known/acme-challenge/7PXO4XmjZq-_VbZ0u5W2S QEAPrM208yeUjbsTnR25EI:
    dns :: DNS problem: query timed out looking up A for
    windglass.dyndns.org

    To fix these errors, please make sure that your domain name was
    entered correctly and the DNS A/AAAA record(s) for that domain
    contain(s) the right IP address. Additionally, please check that
    your computer has a publicly routable IP address and that no
    firewalls are preventing the server from communicating with the
    client. If you’re using the webroot plugin, you should also verify
    that you are serving files from the webroot path you provided.

My web server is (include version):

The operating system my web server runs on is (include version):
freebsd
My hosting provider, if applicable, is:

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):0.25.1

Domain: windglass.dyndns.org
Type: connection
Detail: unknownHost :: No valid IP addresses found for windglass.dyndns.org

To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address. Additionally, please check that your computer has a publicly routable IP address and that no firewalls are preventing the server from communicating with the client. If you’re using the webroot plugin, you should also verify that you are serving files from the webroot path you provided.
2019-06-11 09:11:51,960:DEBUG:certbot.error_handler:Encountered exception:
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
FailedChallenges: Failed authorization procedure. windglass.dyndns.org (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: unknownHost :: No valid IP addresses found for windglass.dyndns.org

2019-06-11 09:11:51,960:DEBUG:certbot.error_handler:Calling registered functions
2019-06-11 09:11:51,960:INFO:certbot.auth_handler:Cleaning up challenges
2019-06-11 09:11:51,960:DEBUG:certbot.plugins.webroot:Removing /usr/local/www/apache24/data/.well-known/acme-challenge/PdsbmiY983u1LoEx6AhTkEPtTcZIgbXLgbmVGmgdGKo
2019-06-11 09:11:51,961:DEBUG:certbot.plugins.webroot:All challenges cleaned up
2019-06-11 09:11:51,961:WARNING:certbot.renewal:Attempting to renew cert (windglass.dyndns.org) from /usr/local/etc/letsencrypt/renewal/windglass.dyndns.org.conf produced an unexpected error: Failed authorization procedure. windglass.dyndns.org (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: unknownHost :: No valid IP addresses found for windglass.dyndns.org. Skipping.
2019-06-11 09:11:51,961:DEBUG:certbot.renewal:Traceback was:
Traceback (most recent call last):
File “/usr/local/lib/python2.7/site-packages/certbot/renewal.py”, line 429, in handle_renewal_request
main.renew_cert(lineage_config, plugins, renewal_candidate)
File “/usr/local/lib/python2.7/site-packages/certbot/main.py”, line 1156, in renew_cert
renewed_lineage = _get_and_save_cert(le_client, config, lineage=lineage)
File “/usr/local/lib/python2.7/site-packages/certbot/main.py”, line 115, in _get_and_save_cert
renewal.renew_cert(config, domains, le_client, lineage)
File “/usr/local/lib/python2.7/site-packages/certbot/renewal.py”, line 304, in renew_cert
new_cert, new_chain, new_key, _ = le_client.obtain_certificate(domains, new_key)
File “/usr/local/lib/python2.7/site-packages/certbot/client.py”, line 326, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/local/lib/python2.7/site-packages/certbot/client.py”, line 362, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 82, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 155, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/local/lib/python2.7/site-packages/certbot/auth_handler.py”, line 226, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
FailedChallenges: Failed authorization procedure. windglass.dyndns.org (http-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: unknownHost :: No valid IP addresses found for windglass.dyndns.org

2019-06-11 09:11:51,961:ERROR:certbot.renewal:All renewal attempts failed. The following certs could not be renewed:
2019-06-11 09:11:51,962:ERROR:certbot.renewal: /usr/local/etc/letsencrypt/live/windglass.dyndns.org/fullchain.pem (failure)
2019-06-11 09:11:51,962:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/local/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.25.1’, ‘console_scripts’, ‘certbot’)()
File “/usr/local/lib/python2.7/site-packages/certbot/main.py”, line 1323, in main
return config.func(config, plugins)
File “/usr/local/lib/python2.7/site-packages/certbot/main.py”, line 1235, in renew
renewal.handle_renewal_request(config)
File “/usr/local/lib/python2.7/site-packages/certbot/renewal.py”, line 454, in handle_renewal_request
len(renew_failures), len(parse_failures)))
Error: 1 renew failure(s), 0 parse failure(s)

Hi @reoficiar

looks like you have found a part of the solution.

Your domain name has an ip address ( https://check-your-website.server-daten.de/?q=windglass.dyndns.org ):

Host T IP-Address is auth. ∑ Queries ∑ Timeout
windglass.dyndns.org A 112.205.249.225
Mayamot/Rizal/PH yes 1 0
AAAA yes
www.windglass.dyndns.org Name Error yes 1 0

And you have created a new certificate:

CertSpotter-Id Issuer not before not after Domain names LE-Duplicate next LE
961241893 CN=Let’s Encrypt Authority X3, O=Let’s Encrypt, C=US 2019-06-11 05:05:14 2019-09-09 05:05:14 windglass.dyndns.org - 1 entries duplicate nr. 1
825147190 CN=Let’s Encrypt Authority X3, O=Let’s Encrypt, C=US 2019-03-23 00:51:05 2019-06-21 00:51:05 windglass.dyndns.org - 1 entries

But you don’t use it, instead, you use your older certificate:

CN=windglass.dyndns.org
	23.03.2019
	21.06.2019
expires in 10 days	windglass.dyndns.org - 1 entry

And your chain is wrong:

Chain - duplicate certificates	
	1	CN=windglass.dyndns.org
	2	CN=windglass.dyndns.org
	3	CN=Let's Encrypt Authority X3, O=Let's Encrypt, C=US

Looks like you use cert.pem and fullchain.pem, use only fullchain.pem.

1 Like

hi JuergenAuer

Thank you for your prompt reply. Just type Certbot renew again and received no error. My question now is how to correct my wrong chain .

Thank you

But you don’t use the new certificate. Checked with my browser - expiration in Juny 2019.

Share the apache vHost configuration of that domain.

1 Like