# Error installing certbot with apache

**URL:** <https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192>\
**Category:** Help\
**Created:** [October 1, 2021, 1:10am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192 "2021-10-01T01:10:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseJavierCB](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/josejaviercb/32/53649_2.png) [@JoseJavierCB](https://community.letsencrypt.org/u/JoseJavierCB)\
**Post date:** [October 1, 2021, 1:10am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192/1 "2021-10-01T01:10:25Z")

</div>

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](https://certbot.eff.org/lets-encrypt/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:

 ![error](https://global.discourse-cdn.com/letsencrypt/original/3X/5/3/537e8d74c8425080705264b2a71b6c0a95a313e4.jpeg)

An unexpected error occurred:  
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='[acme-v02.api.letsencrypt.org](http://acme-v02.api.letsencrypt.org)', 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 [https://community.letsencrypt.org](https://community.letsencrypt.org). 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.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [October 1, 2021, 6:22am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192/2 "2021-10-01T06:22:25Z")

</div>

Split this topic on October 1, 2021, 6:22am UTC

3 posts were merged into an existing topic: [Error al instalar certbot en apache](https://community.letsencrypt.org/t/error-al-instalar-certbot-en-apache/161191)

---

<div class="post-metadata">

**Author:** ![JoseJavierCB](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/josejaviercb/32/53649_2.png) [@JoseJavierCB](https://community.letsencrypt.org/u/JoseJavierCB)\
**Post date:** [October 1, 2021, 6:21am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192/4 "2021-10-01T06:21:55Z")

</div>

> [@Error al instalar certbot en apache](https://community.letsencrypt.org/t/error-al-instalar-certbot-en-apache/161191/5):
>
> certbot --version

Hi, this shows me when running the commands

 ![error4](https://global.discourse-cdn.com/letsencrypt/original/3X/4/7/477074b9e0b86e13cc8d5665146e22baa8fbafa7.jpeg)

---

<div class="post-metadata">

**Author:** ![JoseJavierCB](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/josejaviercb/32/53649_2.png) [@JoseJavierCB](https://community.letsencrypt.org/u/JoseJavierCB)\
**Post date:** [October 1, 2021, 6:23am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192/5 "2021-10-01T06:23:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [October 31, 2021, 6:24am UTC](https://community.letsencrypt.org/t/error-installing-certbot-with-apache/161192/6 "2021-10-31T06:24:42Z")

</div>

Closed on October 31, 2021, 6:24am UTC

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