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\nnginx/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\nnginx/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?