Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'server' #2842

Closed
hryamzik opened this issue Apr 14, 2016 · 4 comments
Closed

KeyError: 'server' #2842

hryamzik opened this issue Apr 14, 2016 · 4 comments

Comments

@hryamzik
Copy link

2016-04-14 04:14:01,645:INFO:letsencrypt.cli:Auto-renewal forced with --force-renewal...
2016-04-14 04:14:01,645:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
  File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module>
    sys.exit(main())
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1993, in main
    return config.func(config, plugins)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 707, in obtain_cert
    _, action = _auth_from_domains(le_client, config, domains, lineage)
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 454, in _auth_from_domains
    original_server = lineage.configuration["renewalparams"]["server"]
  File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)
KeyError: 'server'

I get this error when running:

/root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot --webroot-path /var/www/letsencrypt -d example.org --renew-by-default 

My version is 9d7519c

@bmw
Copy link
Member

bmw commented Apr 14, 2016

If you look in your letsencrypt configuration directory (which is in /etc/letsencrypt by default), you should see a directory named renewal. In that directory, you should see a file example.com.conf. Can you post the contents of this file? Feel free to redact whatever values you'd like.

@hryamzik
Copy link
Author

hryamzik commented Apr 14, 2016

Here you are:

cert = /etc/letsencrypt/live/example.org/cert.pem
privkey = /etc/letsencrypt/live/example.org/privkey.pem
chain = /etc/letsencrypt/live/example.org/chain.pem
fullchain = /etc/letsencrypt/live/example.org/fullchain.pem

# Options used in the renewal process
[renewalparams]
authenticator = webroot
installer = None
account = ***************
webroot_path = /var/www/letsencrypt,
[[webroot_map]]
example.org = /var/www/letsencrypt

P.S.: Here;s the code I use for initial generation.

@bmw
Copy link
Member

bmw commented Apr 15, 2016

It looks like you're still on an old release of letsencrypt. If you run letsencrypt-auto again, you'll be updated a newer version which does not suffer from this problem.

@hryamzik
Copy link
Author

Yep, update and change /root/.local/share/letsencrypt/bin/letsencrypt to /opt/letsencrypt/letsencrypt-auto fixed the issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants