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):
nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04
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): certbot 0.40.0
It seems your site is indeed accessible through port 80 currently. It does however have some issues. For example, your www subdomain on port 80 (HTTP, http://www.codeistalk.com/) doesn’t give a redirect to HTTPS, but returns a 404 file not found error, while your base domain through HTTP on port 80 (http://codeistalk.com/)actually does redirect to HTTPS. I don’t know for sure if this is also hampering your try to renew, but it should be something you should fix.
- The following errors were reported by the server:
Domain: www.example.com
Type: unauthorized
Detail: Invalid response from
http://www.example.com/.well-known/acme-challenge/kFkmrCNvSPYkTqnQhgMepTSLEnuTmKqSzKJMt4yebls
[167.172.136.00]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body>\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx</center>\r\n"
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.
Yes, it most certainly is. The Let's Encrypt validation server gets the same 404 file not found now, just as any other user surfing to http://www.codeistalk.com/.
Did you manually add the www subdomain to this configuration? Possibly around 2020-05-08, when you got the certificate which included the www subdomain for the first time? If so, you forgot to add the redirect for the www subdomain, as the current redirect code only covers the base domain name.
Good to know. It also answers my question about the nginx configuration change indirectly: by using certonly certbot wouldn’t have edited the configuration file, so it must have been done manually.
I recommend to also add a redirect for the www subdomain, make sure it works, and try renewing again.