Certbot breaks when renewing cert


#1

Please fill out the fields below so we can help you better.

My domain is: speakz.ca

I ran this command:sudo letsencrypt --apache

It produced this output:
An unexpected error occurred:
KeyError: 'server’
Please see the logfiles in /var/log/letsencrypt for more details.

log looks like:
2016-09-08 15:41:57,916:DEBUG:letsencrypt.storage:Should renew, less than 30 days before c
ertificate expiry 2016-07-10 12:04:00 UTC.
2016-09-08 15:41:57,916:INFO:letsencrypt.cli:Cert is due for renewal, auto-renewing…
2016-09-08 15:41:57,917:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/letsencrypt”, line 9, in
load_entry_point(‘letsencrypt==0.4.1’, ‘console_scripts’, ‘letsencrypt’)()
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 1986, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 662, in run
lineage, action = _auth_from_domains(le_client, config, domains)
File “/usr/lib/python2.7/dist-packages/letsencrypt/cli.py”, line 453, in _auth_from_doma
ins
original_server = lineage.configuration[“renewalparams”][“server”]
File “/usr/lib/python2.7/dist-packages/configobj.py”, line 554, in getitem
val = dict.getitem(self, key)
KeyError: ‘server’

My operating system is (include version): Ubuntu 16.04.1 LTS

My web server is (include version): Apache/2.4.18

My hosting provider, if applicable, is: n/a

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


#2

Looks like there’s something wrong with the server variable in the appropriate renew configuration (the log should also tell you which renew configuration it’s handeling I think). You should manually check if it’s sound.


#3

I started using letsencrypt in March 2016 and successfully renewed in May. It appears that the package changed just after this. I did respond by following the platform/webserver-specific instructions provided by https://certbot.eff.org/ (sudo apt-get install …). This is when I encountered the issue above. Osiris’s suggestion about configuration seemed odd in this context and so thought that I must be missing something. Some additional searching turned up https://certbot.eff.org/docs/using.html#getting-certbot which suggests something very different. From there, running sudo -H ./certbot-auto -v updated the certs successfully (!).

All is well.


#4

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