Hello - I am getting a "Redirect loop detected" error when I run the "certbot renew --dry-run" command.
Any ideas on what is causing this error?
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: rpiweather.net
I ran this command: sudo certbot renew --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Processing /etc/letsencrypt/renewal/rpiweather.net.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Simulating renewal of an existing certificate for rpiweather.net and www.rpiweather.net
Performing the following challenges:
http-01 challenge for rpiweather.net
http-01 challenge for www.rpiweather.net
Using the webroot path /var/www/rpiweather.net for all unmatched domains.
Waiting for verification...
Challenge failed for domain rpiweather.net
Challenge failed for domain www.rpiweather.net
http-01 challenge for rpiweather.net
http-01 challenge for www.rpiweather.net
Cleaning up challenges
Failed to renew certificate rpiweather.net with error: Some challenges have failed.
All simulated renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/rpiweather.net/fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: rpiweather.net
Type: connection
Detail: 96.233.51.171: Fetching
https://rpiweather.net/.well-known/acme-challenge/Td8fs1s-5z1ZKFqpplUXxw4b2Ts_gKvcmgAhSKUwd8g:
Redirect loop detectedDomain: www.rpiweather.net
Type: connection
Detail: 96.233.51.171: Fetching
https://www.rpiweather.net/.well-known/acme-challenge/mPhOSf2byq0ZapGkWcKcwK131pdTHFc91Z4qPa1_owo:
Redirect loop detectedTo 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): nginx version: nginx/1.18.0
The operating system my web server runs on is (include version):PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
My hosting provider, if applicable, is: dynu.com
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):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.12.0