Renew error : 'ascii' codec can't decode byte 0xe2

With ./letsencrypt-auto renew --force-renewal i have this error :

Attempting to renew cert ( from /etc/letsencrypt/renewal/ onf produced an unexpected error: ‘ascii’ codec can’t decode byte 0xe2 in positi on 42: ordinal not in range(128). Skipping.
All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/ (failure)

Thank you for help.

1 Like

Hi @belallioui

0xe2 is â. Do you have a typo (typed ^, then a) in your config file?

What says

./letsencrypt-auto --version

Check this file

1 Like


Version : certbot 0.30.0
grep -nRP ‘[\x80-\xFF]’ /etc/letsencrypt/renewal/ : it gave nothing

Check the file manual. May be uft-8 encoding, utf-16 or something else.

Here is the contents of the file :
renew_before_expiry = 30 days
version = 0.27.1
archive_dir = /etc/letsencrypt/archive/
cert = /etc/letsencrypt/live/
privkey = /etc/letsencrypt/live/
chain = /etc/letsencrypt/live/
fullchain = /etc/letsencrypt/live/

Options used in the renewal process

authenticator = nginx
account = 93b1c86da40696885370f4eefcf1894a
server =

Maybe it’s somewhere in your nginx configuration, rather than the renewal conf file itself?

1 Like

It can also be triggered by actual filenames.

find /etc/nginx -type f

One way to pin it down exactly is to find the error stack trace in /var/log/letsencrypt/letsencrypt.log which will show what code path in Certbot triggered the error.

1 Like

Thanks of everyone
I find the error in /etc/nginx/sites-available : one lettre ’

1 Like

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