Renew problem with certbot renew --dry-run

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: jthome.thioulouse.fr

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

It produced this output:
Failed to renew certificate jthome.thioulouse.fr with error: HTTPSConnectionPool(host='acme-staging-v02.api.letsencrypt.org', port=443): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xb2fc1d18>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

My web server is (include version): nginx/1.18.0 (Ubuntu)

The operating system my web server runs on is (include version):
Ubuntu 21.04 (GNU/Linux 5.11.0-1023-raspi armv7l)

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 1.29.0

Hi @JT69V, and welcome to the LE community forum :slight_smile:

That's a DNS issue.

Please check:
cat /etc/resolv.conf
dig acme-staging-v02.api.letsencrypt.org +short
dig acme-staging-v02.api.letsencrypt.org +short @8.8.8.8

4 Likes

Thanks, it was indeed a DNS problem (unknown problem with systemd-resolved, so I replaced resolv.conf by a static file).

Is there anything else I should do now ?

sudo certbot renew --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log


Processing /etc/letsencrypt/renewal/jthome.thioulouse.fr.conf


Simulating renewal of an existing certificate for jthome.thioulouse.fr


Congratulations, all simulated renewals succeeded:
/etc/letsencrypt/live/jthome.thioulouse.fr/fullchain.pem (success)


1 Like

Probably do an actual renewal instead of just the --dry-run :wink:

3 Likes

Yes of course, thanks a lot !
:smiley:

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.