I'm trying to renew nutthause.com certificate with certbot manual dns challenge/validation using acme-dns-auth.py but errors out with dns challenges failed for nutthause.com, incorrect txt records, and:
Running manual-auth-hook command: /etc/letsencrypt/acme-dns-auth.py
manual-auth-hook command "/etc/letsencrypt/acme-dns-auth.py" returned error code 1
Error output from manual-auth-hook command acme-dns-auth.py:
Traceback (most recent call last):
File "/etc/letsencrypt/acme-dns-auth.py", line 4, in
import requests
ImportError: No module named requests
I have renewed nutthause.com domain successfully for the past two years running with same dns challenge for these subdomains, " -d helios.nutthause.com -d media.nutthause.com -d media2.nutthause.com -d silo-omv.nutthause.com -d silo2-omv.nutthause.com -d www.nutthause.com -d nutthause.com", and with a wildcard dns challenge renewal " -d *.nutthause.com -d nutthause.com"- so I don't have to add a new subdomain for each new host. Yet I pretty much get the same errors listed below and above. I have CNAME/Alias records created for the domain and its subdomains, but no txt records. It keeps complaining about invalid txt records yet in the past I did not have txt records, do I need txt records? I created txt records in the domain tools at Zone Edit ( @ nutthause.com _acme-challenge.nutthause.com=8rw3dccMTTIbI_YJ8hgYgpw_eF_iSiQ8PdS24Or0Dfc , and .nutthause.com _acme-challenge.nutthause.com=8rw3dccMTTIbI_YJ8hgYgpw_eF_iSiQ8PdS24Or0Dfc ) ran the same command as below with the same results, and thus deleted the txt records.
I was running Mint 19.3 and did an inplace update to Mint 20 April 2023 and afterwords the errors occured. Did these have any bearing on the errors I'm getting now? Perhaps there is a problem with acme-dns-auth.py as there are errors regarding acme-dns-auth.py in the output below. I don't know the root cause or causes for the failed renewal, so I'm asking for help!
DNS quires:
nslookup nutthause.com dns0.zoneedit.com
Server: dns0.zoneedit.com
Address: 64.68.198.83#53
Name: nutthause.com
Address: 184.179.76.127
nslookup -q=TXT nutthause.com dns0.zoneedit.com
Server: dns0.zoneedit.com
Address: 64.68.198.83#53
nutthause.com text = "_acme-challenge.nutthause.com=8rw3dccMTTIbI_YJ8hgYgpw_eF_iSiQ8PdS24Or0Dfc"
My domain is:
nutthause.com
I ran this command:
sudo /usr/bin/certbot certonly --manual --manual-auth-hook /etc/letsencrypt/acme-dns-auth.py --preferred-challenges dns --debug-challenges -d *.nutthause.com -d nutthause.com
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for nutthause.com
dns-01 challenge for nutthause.com
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.
Are you OK with your IP being logged?
(Y)es/(N)o: Y
Running manual-auth-hook command: /etc/letsencrypt/acme-dns-auth.py
manual-auth-hook command "/etc/letsencrypt/acme-dns-auth.py" returned error code 1
Error output from manual-auth-hook command acme-dns-auth.py:
Traceback (most recent call last):
File "/etc/letsencrypt/acme-dns-auth.py", line 4, in
import requests
ImportError: No module named requests
Running manual-auth-hook command: /etc/letsencrypt/acme-dns-auth.py
manual-auth-hook command "/etc/letsencrypt/acme-dns-auth.py" returned error code 1
Error output from manual-auth-hook command acme-dns-auth.py:
Traceback (most recent call last):
File "/etc/letsencrypt/acme-dns-auth.py", line 4, in
import requests
ImportError: No module named requests
Waiting for verification...
Challenges loaded. Press continue to submit to CA. Pass "-v" for more info about
challenges.
Press Enter to Continue -v
Challenge failed for domain nutthause.com
Challenge failed for domain nutthause.com
dns-01 challenge for nutthause.com
dns-01 challenge for nutthause.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
-
The following errors were reported by the server:
Domain: nutthause.com
Type: unauthorized
Detail: Incorrect TXT record
"8rw3dccMTTIbI_YJ8hgYgpw_eF_iSiQ8PdS24Or0Dfc" (and 1 more) found at
_acme-challenge.nutthause.comDomain: nutthause.com
Type: unauthorized
Detail: Incorrect TXT record
"8rw3dccMTTIbI_YJ8hgYgpw_eF_iSiQ8PdS24Or0Dfc" (and 1 more) found at
_acme-challenge.nutthause.comTo 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 -v
nginx version: nginx/1.18.0 (Ubuntu)
The operating system my web server runs on is (include version):
Linux Mint 20 Ulyana
My hosting provider, if applicable, is:
ZoneEdit Domains
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, linux cmd
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot --version
certbot 0.40.0
Any help here to resolve this and allow me to renew the nutthause.com certificates would be appreciated