Error when running le-renew-webroot script


#1

When running the le-renew-webroot script on my server, it fails with the following error.

Command "/root/.local/share/letsencrypt/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-Uq9O9J/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('
', '
'), __file__, 'exec'))" install --record /tmp/pip-NOGsrE-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-Uq9O9J/cryptography
You are using pip version 8.0.3, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Reloading nginx
Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
Renewal process finished for domain xxx.craig-russell.co.uk

I can see it’s complaining about the version of Python PIP I’m running, but I already have the requested version.

> sudo pip -V
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)

Running the suggested command confirms this:

> sudo pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages

So I’m not sure what’s going on.

I’m on Debian 8 (Jessie).


#2

:+1: got the same problem, anybody a clue?

Update:
The solution for me was rather simple. Upgrading to pip requires a server reboot. After that pip v8.1.2 was used and the script works fine.


#3

Thanks, yes restarting the box fixed it for me too.
Seems odd that a pip update would need a restart, but there you go.


#4

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