# Certbot failed to parse 'acme-v02.api.letsencrypt.org/directory'

**URL:** <https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915>\
**Category:** Help\
**Created:** [November 6, 2023, 7:02pm UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915 "2023-11-06T19:02:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tryall](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/tryall/32/74636_2.png) [@Tryall](https://community.letsencrypt.org/u/Tryall)\
**Post date:** [November 6, 2023, 7:02pm UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915/1 "2023-11-06T19:02:07Z")

</div>

I received an email telling me certbot could not renew my domain automatically (it did successfully for the past 4 years). When trying to do it manually with `certbot renew` I get this error :

My domain is: [formation.comptoirdesredacteurs.fr](http://formation.comptoirdesredacteurs.fr)

I ran this command: certbot renew

It produced this output: `Cert is due for renewal, auto-renewing... Plugins selected: Authenticator apache, Installer apache Attempting to renew cert (formation.comptoirdesredacteurs.fr) from /etc/letsencrypt/renewal/formation.comptoirdesredacteurs.fr.conf produced an unexpected error: Failed to parse: https://acme-v02.api.letsencrypt.org/directory. Skipping. All renewal attempts failed. The following certs could not be renewed: /etc/letsencrypt/live/formation.comptoirdesredacteurs.fr/fullchain.pem (failure) `

My web server is (include version): Server version: Apache/2.4.29 (Ubuntu) Server built: 2023-03-08T17:34:33

The operating system my web server runs on is (include version): Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-164-generic x86\_64)

My hosting provider, if applicable, is: DigitalOcean (droplet)

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

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [November 6, 2023, 7:12pm UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915/2 "2023-11-06T19:12:54Z")

</div>

> [@Tryall](#):
>
> Failed to parse: [https://acme-v02.api.letsencrypt.org/directory](https://acme-v02.api.letsencrypt.org/directory)

Did you recently change your Python version?

I think your problem would be resolved by updating to the latest Certbot using snap (or pip venv if you must).

See this post for similar problem (which is rare)

> [@Problem renewal certificates](https://community.letsencrypt.org/t/problem-renewal-certificates/154388):
>
> H…

And here for instructions to use snap on Ubuntu 18

> **[Certbot](https://certbot.eff.org)**
>
> Tagline

---

<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:** [November 6, 2023, 8:36pm UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915/3 "2023-11-06T20:36:03Z")

</div>

Hi @Tryall, and welcome to the LE community forum 🙂

> [@Tryall](#):
>
> ... successfully for the past 4 years ...
> 
> `certbot 0.40.0`

Time for an update.  
See: [Certbot (eff.org)](https://certbot.eff.org/)

---

<div class="post-metadata">

**Author:** ![Tryall](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/tryall/32/74636_2.png) [@Tryall](https://community.letsencrypt.org/u/Tryall)\
**Post date:** [November 8, 2023, 1:46am UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915/4 "2023-11-08T01:46:40Z")

</div>

The solution you pointed worked for me ! Thanks a lot !

(I ran `sudo apt install --reinstall python3-six`)

---

<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:** [December 8, 2023, 1:47am UTC](https://community.letsencrypt.org/t/certbot-failed-to-parse-acme-v02-api-letsencrypt-org-directory/207915/5 "2023-12-08T01:47:26Z")

</div>

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