Linode/Ubuntu 16.04 LTS/nginx certonly error

I tried to issue this in my Linode box:

letsencrypt certonly --webroot -w /var/www/findmytutor -d findmytutor.co -d www.findmytutor.co

and I get the following error:

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/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ImportError: No module named letsencrypt.cli

Can anyone please tell me what the problem is and what I should do to resolve this? Thanks!

how was the client installed

I have the same issue.

Client was installed using digitalocean's instructions for ubuntu 16.04 and nginx:

sudo apt-get update
sudo apt-get install letsencrypt

Any clues on what's going on? My full log is:

letsencrypt renew
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/pkg_resources/init.py", line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2569, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2229, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2235, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/lib/python2.7/dist-packages/letsencrypt/cli.py", line 34, in
from letsencrypt import client
File "/usr/lib/python2.7/dist-packages/letsencrypt/client.py", line 27, in
from letsencrypt import storage
File "/usr/lib/python2.7/dist-packages/letsencrypt/storage.py", line 7, in
import configobj
EOFError: EOF read where object expected

It sounds like your letsencrypt and ConfigObj (a popular Python library for parsing configuration files, used by letsencrypt) installs are damaged.

I might suggest reinstalling those two packages with “apt install --reinstall python-configobj python-letsencrypt” – and any other affected packages – but this is above my pay grade.

I’m curious to know if there were any issues when they were installed, if anything happened later (e.g. some sort of botched pip upgrade), or if your systems is having other issues, but even if you told me, i don’t know what to do.

2 Likes

That definetely solved it, thanks!

I did not have pip installed "pip returned command not found", and I haven't messed intentionally with python libraries. No clue how they got corrupted, but it's back and working :slight_smile:

2 Likes

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