Cannot renew my certificate

Hi,
I try to renew my ssl certificates but when I launch my command, here's the error returns:

2023-10-23 10:58:44,651:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/certbot/_internal/auth_handler.py", line 70, in handle_authorizations
resps = self.auth.perform(achalls)
File "/usr/local/lib/python3.6/site-packages/certbot/plugins/dns_common.py", line 57, in perform
self._perform(domain, validation_domain_name, validation)
File "/usr/local/lib/python3.6/site-packages/certbot_dns_ovh/_internal/dns_ovh.py", line 57, in _perform
self._get_ovh_client().add_txt_record(domain, validation_name, validation)
File "/usr/local/lib/python3.6/site-packages/certbot/plugins/dns_common_lexicon.py", line 46, in add_txt_record
self.provider.create_record(type='TXT', name=record_name, content=record_content)
File "/usr/local/lib/python3.6/site-packages/lexicon/providers/base.py", line 87, in create_record
return self._create_record(rtype, name, content)
File "/usr/local/lib/python3.6/site-packages/lexicon/providers/ovh.py", line 122, in _create_record
self._post("/domain/zone/{0}/refresh".format(domain))
File "/usr/local/lib/python3.6/site-packages/lexicon/providers/base.py", line 162, in _post
return self._request("POST", url, data=data, query_params=query_params)
File "/usr/local/lib/python3.6/site-packages/lexicon/providers/ovh.py", line 253, in _request
return result.json()
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Nothing change from the last renewal, so I really don't understand what's happening now
Thank you for your help and advice.

[root@reverse ~]# certbot --version
certbot 1.7.0

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

You didn't show enough of that log file.
The relevant information is further up.

Also:

The latest version is: 2.7.2
So, it's due for an update.

Not sure if 1.7.0 can handle python3.6...
Maybe your python was updated recently?

3 Likes

Hi @rg305

I verified for the python update and yes, it was done just few days after the last certificat renewal.
So, it seems to be the right direction.

The server is running under Centos 8 and nginx.
If I well understand, I need to remove the old certbot before installing a new one, is it correct?
I try to remove the old one but without any success:

[root@reverse ~]# yum remove certbot
Failed to set locale, defaulting to C.UTF-8
No match for argument: certbot
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!

I checked all the package installed and I didn't find any certbot.

Any ideas?

i've also upload the complete log file.

Thank you in advance.
letsencrypt_log.txt (38.9 KB)

1 Like

Yes.

I don't that much about CentOS.
How else could it have been installed?

3 Likes
  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

  File "/usr/lib64/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2023-10-23 13:51:44,185::certbot._internal.log:json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The error is consistent.
And very likely the python update has all to do with it.

3 Likes

Could you have installed Certbot using pip like described here ...

2 Likes

Changes have been made to the OVH API which are fixed in a more recent version of the dns-lexicon library. If you upgrade to Certbot 2.7.2, this should be fixed.

The /usr/local/lib path suggests using pip indeed, but without a venv, which is recommended according to the Certbot pip instructions. So if pip was used, it was not used "correctly".

2 Likes

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