Hello everyone! I have recently upgraded my server to Ubuntu 16.04 LTS and installed letsencrypt from the apt repository.
I would like to automate the renewal of certificates, but letsencrypt renew --force-renewal
does not work using the new command. If I use the git folder that I cloned, the renewal works fine, but the new command fails with this:
2016-05-12 21:44:10,504:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/dev.cencam.org.conf produced an unexpected error: 'server'. Skipping.
Here is the log from /var/log/letsencrypt/letsencrypt.log
:
2016-05-13 01:33:39,459:WARNING:letsencrypt.cli:Attempting to renew cert from /etc/letsencrypt/renewal/dev.cencam.org.conf produced an unexpected error: 'server'. Skipping.
2016-05-13 01:33:39,460:DEBUG:letsencrypt.cli:Traceback was:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/letsencrypt/cli.py", line 1017, in renew
obtain_cert(lineage_config, plugins, renewal_candidate)
File "/usr/lib/python2.7/dist-packages/letsencrypt/cli.py", line 706, in obtain_cert
_, action = _auth_from_domains(le_client, config, domains, lineage)
File "/usr/lib/python2.7/dist-packages/letsencrypt/cli.py", line 453, in _auth_from_domains
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'
2016-05-13 01:33:39,460:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/letsencrypt", line 9, in <module>
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 1034, in renew
len(renew_failures), len(parse_failures)))
Error: 1 renew failure(s), 0 parse failure(s)
Here is the log from /etc/letsencrypt/renewal/dev.cencam.org.conf
:
# renew_before_expiry = 30 days
cert = /etc/letsencrypt/live/dev.cencam.org/cert.pem
privkey = /etc/letsencrypt/live/dev.cencam.org/privkey.pem
chain = /etc/letsencrypt/live/dev.cencam.org/chain.pem
fullchain = /etc/letsencrypt/live/dev.cencam.org/fullchain.pem
# Options and defaults used in the renewal process
[renewalparams]
installer = apache
authenticator = apache
account = d20ff480e306444e985e04848839da21
apache_ctl = apache2ctl
Letsencrypt command in apt: letsencrypt 0.4.1
Letsencrypt command in git: letsencrypt 0.6.0
The version in apt appears to be much older, is this the problem, or am I doing something wrong here? I also tried the to renew the certificate from the graphical interface, and the same issue occurs.
Any help would be appreciated, thanks!
EDIT 1:
I forgot to mention that I installed it by following the instructions on certbot.eff.org.
EDIT 2:
To fix it I deleted the newer configuration file from 0.6.0
, and copied the old configuration file. After than I replaced the lines with the domain information.