Error installing certbot with apache

I have a Ubuntu 18.04 VPS in which I have a project in Django 2 with python 3.6, which was released in January 2021 with its SSL certificate created with certbot-auto and with auto-renewal through a crontab. Everything worked fine until Sep 28, 2021, the certificate was not renewed and when I try to do so I get a message that certbot-auto is now out of date. I follow the recommendations of the link Certbot - Ubuntubionic Apache I uninstalled the certbot-auto and entering any of the commands ** sudo certbot --apache ** or ** sudo certbot certonly - -apache ** and then enter the mail, the following message appears:

An unexpected error occurred:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='', port=4 43): Max retries exceeded with url: /directory (Caused by NewConnectionError('<urllib3.connection.HT TPSConnection object at 0x7f5679da1af0>: Failed to establish a new connection: [Errno -2] Name or se rvice not known'))
Ask for help or search for solutions at See the logfile /var/log/ letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

I appreciate your comments and help in advance. Greetings.

3 posts were merged into an existing topic: Error al instalar certbot en apache

Hi, this shows me when running the commands

Yes, I applied all the steps and even removed the certbot-auto.

1 Like

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