SSL certificate not updating

I installed an ssl certifictae few months ago and now its expired. When i am trying to update it using certbot renew
it give me a follwoing error. Any help will be greatly appreciated. Thanks
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Processing /etc/letsencrypt/renewal/www.bureaubureau.dk.conf

Cert is due for renewal, auto-renewing…
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Traceback (most recent call last):
File “/usr/lib/python2.7/logging/ init .py”, line 859, in emit
msg = self.format(record)
File “/usr/lib/python2.7/dist-packages/certbot/colored logging.py”, line 41, i n format
else super(StreamHandler, self).format(record))
File “/usr/lib/python2.7/logging/
init .py”, line 732, in format
return fmt.format(record)
File “/usr/lib/python2.7/logging/
init .py”, line 471, in format
record.message = record.getMessage()
File “/usr/lib/python2.7/logging/
init .py”, line 335, in getMessage
msg = msg % self.args
TypeError: str
_ returned non-string (type Error)
Logged from file renewal.py, line 420
Traceback (most recent call last):
File “/usr/lib/python2.7/logging/handlers.py”, line 76, in emit
if self.shouldRollover(record):
File “/usr/lib/python2.7/logging/handlers.py”, line 156, in shouldRollover
msg = “%s\n” % self.format(record)
File “/usr/lib/python2.7/logging/ init .py”, line 732, in format
return fmt.format(record)
File “/usr/lib/python2.7/logging/ init .py”, line 471, in format
record.message = record.getMessage()
File “/usr/lib/python2.7/logging/ init .py”, line 335, in getMessage
msg = msg % self.args
TypeError: str returned non-string (type Error)
Logged from file renewal.py, line 420

Processing /etc/letsencrypt/renewal/bureaubureau.dk.conf

Cert is due for renewal, auto-renewing…
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Traceback (most recent call last):
File “/usr/lib/python2.7/logging/ init .py”, line 859, in emit
msg = self.format(record)
File “/usr/lib/python2.7/dist-packages/certbot/colored logging.py”, line 41, i n format
else super(StreamHandler, self).format(record))
File “/usr/lib/python2.7/logging/
init .py”, line 732, in format
return fmt.format(record)
File “/usr/lib/python2.7/logging/
init .py”, line 471, in format
record.message = record.getMessage()
File “/usr/lib/python2.7/logging/
init .py”, line 335, in getMessage
msg = msg % self.args
TypeError: str
_ returned non-string (type Error)
Logged from file renewal.py, line 420
Traceback (most recent call last):
File “/usr/lib/python2.7/logging/handlers.py”, line 76, in emit
if self.shouldRollover(record):
File “/usr/lib/python2.7/logging/handlers.py”, line 156, in shouldRollover
msg = “%s\n” % self.format(record)
File “/usr/lib/python2.7/logging/ init .py”, line 732, in format
return fmt.format(record)
File “/usr/lib/python2.7/logging/ init .py”, line 471, in format
record.message = record.getMessage()
File “/usr/lib/python2.7/logging/ init .py”, line 335, in getMessage
msg = msg % self.args
TypeError: str returned non-string (type Error)
Logged from file renewal.py, line 420

All renewal attempts failed. The following certs could not be renewed:
/etc/letsencrypt/live/www.bureaubureau.dk/fullchain.pem (failure)
/etc/letsencrypt/live/bureaubureau.dk/fullchain.pem (failure)
2 renew failure(s), 0 parse failure(s)

Can anyone tell me how to fix this issue. I have gone through similar questions but nothing helped. So please have a look!

Hi @awaisweb

that's a curious error.

Perhaps first step: Update your certbot.

If that doesn't help:

Check the options

https://certbot.eff.org/docs/using.html

Make a backup of your config files

/etc/letsencrypt/renewal

then delete these, then start new.

certbot -d www.bureaubureau.dk -d bureaubureau.dk.conf

so Certbot should ask.

I followed your tips and removed the certbot and i receive the following trace after executing the below command:
sudo /usr/local/bin/certbot-auto --apache
Err http://ftp.debian.org/debian/ jessie-backports/main libssl1.0.0 amd64 1.0.2l-1~bpo8+1
404 Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ jessie-backports/main linux-libc-dev amd64 4.9.88-1+deb9u1~bpo8+1
404 Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ jessie-backports/main libssl-dev amd64 1.0.2l-1~bpo8+1
404 Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ jessie-backports/main openssl amd64 1.0.2l-1~bpo8+1
404 Not Found [IP: 130.89.148.12 80]
Err http://ftp.debian.org/debian/ jessie-backports/main python3-pkg-resources all 33.1.1-1~bpo8+1
404 Not Found [IP: 130.89.148.12 80]
E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.2l-1~bpo8+1_amd64.deb 404 Not Found [IP: 130.89.148.12 80]

E: Failed to fetch http://ftp.debian.org/debian/pool/main/l/linux/linux-libc-dev_4.9.88-1+deb9u1~bpo8+1_amd64.deb 404 Not Found [IP: 130.89.148.12 80]

E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/openssl/libssl-dev_1.0.2l-1~bpo8+1_amd64.deb 404 Not Found [IP: 130.89.148.12 80]

E: Failed to fetch http://ftp.debian.org/debian/pool/main/o/openssl/openssl_1.0.2l-1~bpo8+1_amd64.deb 404 Not Found [IP: 130.89.148.12 80]

E: Failed to fetch http://ftp.debian.org/debian/pool/main/p/python-setuptools/python3-pkg-resources_33.1.1-1~bpo8+1_all.deb 404 Not Found [IP: 130.89.148.12 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Looks like this debian - version isn't longer supported.

There is a switch to supress the auto-update. Check the documentation.

Which documentation?

Please guide me to solve this issue. I am stuck. Your help will be greatly appreciated.

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