Can't (dry-run) renew domain with dns-cloudflare (dns-01) challenge, unauthorized


#1

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. https://crt.sh/?q=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:
ztjuh.tk

I ran this command:
sudo certbot renew --dry-run --agree-tos

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/ztjuh.tk.conf


Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator dns-cloudflare, Installer None
Renewing an existing certificate
Performing the following challenges:
dns-01 challenge for i.ztjuh.tk
dns-01 challenge for invicius.nl
dns-01 challenge for nextcloud.ztjuh.tk
dns-01 challenge for plex.ztjuh.tk
dns-01 challenge for server.ztjuh.tk
dns-01 challenge for sinusbot.ztjuh.tk
dns-01 challenge for www.invicius.nl
dns-01 challenge for www.ztjuh.tk
dns-01 challenge for ztjuh.tk
Waiting 10 seconds for DNS changes to propagate
Waiting for verification…
Cleaning up challenges
Attempting to renew cert (ztjuh.tk) from /etc/letsencrypt/renewal/ztjuh.tk.conf produced an unexpected error: Failed authorization procedure.

nextcloud.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.nextcloud.ztjuh.tk,
www.invicius.nl (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.www.invicius.nl,
server.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.server.ztjuh.tk,
plex.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.plex.ztjuh.tk,
invicius.nl (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.invicius.nl,
sinusbot.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.sinusbot.ztjuh.tk,
www.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.www.ztjuh.tk,
ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.ztjuh.tk,
i.ztjuh.tk (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: No TXT record found at _acme-challenge.i.ztjuh.tk. Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ztjuh.tk/fullchain.pem (failure)
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ztjuh.tk/fullchain.pem (failure)


** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates below have not been saved.)

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ztjuh.tk/fullchain.pem (failure)
** DRY RUN: simulating ‘certbot renew’ close to cert expiry
** (The test certificates above have not been saved.)


1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: invicius.nl
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.invicius.nl

    Domain: i.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.i.ztjuh.tk

    Domain: www.invicius.nl
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.www.invicius.nl

    Domain: www.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.www.ztjuh.tk

    Domain: plex.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.plex.ztjuh.tk

    Domain: server.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.server.ztjuh.tk

    Domain: ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.ztjuh.tk

    Domain: nextcloud.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.nextcloud.ztjuh.tk

    Domain: sinusbot.ztjuh.tk
    Type: unauthorized
    Detail: No TXT record found at _acme-challenge.sinusbot.ztjuh.tk

    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): apache 2.4.38

The operating system my web server runs on is (include version): Arch Linux

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.31.0


#2

Nevermind I found the problem, cloudflare changed my Account-ID.

Changed the account = xxxxxxxxxxxxxxxxxxxxx in /etc/letsencrypt/renewal/domain.tld.conf and it renewed.