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: spinsjoy-lp.com
I ran this command: certbot certonly --nginx -d spinsjoy-lp.com,www.spinsjoy-lp.com --dry-run
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for spinsjoy-lp.com
http-01 challenge for www.spinsjoy-lp.com
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. www.spinsjoy-lp.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.spinsjoy-lp.com/.well-known/acme-challenge/u7dYFihzZSgjFF7wXF7xcIVdUSrsN3LEaNkG4AEg9Fo [107.154.249.223]: "<html style="height:100%"><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone", spinsjoy-lp.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://spinsjoy-lp.com/.well-known/acme-challenge/IcPvV5auOXjjU2tYgEHf3qCpLRDzI6BPGyVJvgV-efM [107.154.212.223]: "<html style="height:100%"><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta name="format-detection" content="telephone"
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: www.spinsjoy-lp.com
Type: unauthorized
Detail: Invalid response from
http://www.spinsjoy-lp.com/.well-known/acme-challenge/u7dYFihzZSgjFF7wXF7xcIVdUSrsN3LEaNkG4AEg9Fo
[107.154.249.223]: "<html style="height:100%"><META
NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta
name="format-detection" content="telephone"Domain: spinsjoy-lp.com
Type: unauthorized
Detail: Invalid response from
http://spinsjoy-lp.com/.well-known/acme-challenge/IcPvV5auOXjjU2tYgEHf3qCpLRDzI6BPGyVJvgV-efM
[107.154.212.223]: "<html style="height:100%"><META
NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"><meta
name="format-detection" content="telephone"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.
My web server is (include version): nginx/1.18.0
The operating system my web server runs on is (include version): Debian Buster
My hosting provider, if applicable, is: GCP
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 0.31.0
Very strange because I found here that some of people had that issue already. For example here
But it all seems goes to one point. Wrong DNS entry. Which in my case isn't the problem, my DNS is showing correct IP's
dig +short A spinsjoy-lp.com @pdns05.domaincontrol.com. ; dig +short A spinsjoy-lp.com @pdns06.domaincontrol.com.
107.154.212.223
107.154.248.223
107.154.212.223
107.154.248.223
I don't know how he get that 107.154.249.223 which is the issue here. From link above from other thread there is information that it uses our DNS from server where we run that command. But it seems that's not true.