Failed to renew - Some challenges have 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. crt.sh | 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:
mydomain.com (not real)

I ran this command:
certbot renew --dry-run

It produced this output:


Processing /usr/local/etc/letsencrypt/renewal/mydomain.com.conf


Certificate is due for renewal, auto-renewing...
Plugins selected: Authenticator standalone, Installer None
Simulating renewal of an existing certificate for mydomain.com and www.mydomain.com
Performing the following challenges:
http-01 challenge for mydomain.com
http-01 challenge for www.mydomain.com
Waiting for verification...
Challenge failed for domain mydomain.com
Challenge failed for domain www.mydomain.com
http-01 challenge for mydomain.com
http-01 challenge for www.mydomain.com

Certbot failed to authenticate some domains (authenticator: standalone). The Certificate Authority reported these problems:
Domain: mydomain.com
Type: unauthorized
Detail: Invalid response from https://www.mydomain.com/.well-known/acme-challenge/qit-QDw_xeHCLQ5H12qey_G9_a91cXz8Ij_Yu_y-0C0 []: "\r\n404 Not Found\r\n\r\n

404 Not Found

\r\n
nginx/1.20.1</ce"

Domain: www.mydomain.com
Type: unauthorized
Detail: Invalid response from https://www.mydomain.com/.well-known/acme-challenge/OEhkPgF2Xbc95ATq1MAxLJEav6lUESPnhGK6jvHis3I []: "\r\n404 Not Found\r\n\r\n

404 Not Found

\r\n
nginx/1.20.1</ce"
My web server is (include version):
nginx/1.20.1

The operating system my web server runs on is (include version):
12.2-RELEASE

My hosting provider, if applicable, is:
me

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):
certbot 1.16.0

It seems certbot can't write the new challenge to my .well-known/acme-challenge folder.
The folder permissions are 755.
I'm logged in as root.
The same error goes for all domains on the same server.

Any idea how can I fix it?

Do you stop nginx before trying the certbot renew? Because you are using the certbot standalone authenticator which needs to listen on port 80.

Something seems wrong as the "Invalid response from" message includes an https URL.

3 Likes

Yes, this is currect.
Thanks :slight_smile:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.