Failed with "/tmp/pip-build-NISEZn/cryptography"

Hi,

I try to install and get certificats from Beta invite :

In home directory, with user rights :
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory certonly

and I get :
Updating letsencrypt and virtual environment dependencies…Command “/home/xxxxxx/.local/share/letsencrypt/bin/python2 -c “import setuptools, tokenize;file=’/tmp/pip-build-NISEZn/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-s2dkRD-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/xxxxxxxxxx/.local/share/letsencrypt/include/site/python2.7/cryptography” failed with error code 1 in /tmp/pip-build-NISEZn/cryptography

Somethings wrong ?

Thanks !

That looks like it fails to install the cryptography package though I have no idea why that would be happening.
Can you please run

./letsencrypt-auto -v -h

and post the output?

Thanks for this quick reply

I delete .cache and .local/share/letsencrypt directory, then restart the installation from the beginning and it works well ! I can’t explain why.

However,I run your command (should be less interesting) :

Updating letsencrypt and virtual environment dependencies…
Requirement already up-to-date: setuptools in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages
Requirement already up-to-date: pip in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages
Requirement already up-to-date: letsencrypt in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages
Requirement already up-to-date: letsencrypt-apache in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages
Requirement already up-to-date: zope.interface in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: setuptools in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: python2-pythondialog>=3.2.2rc1 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: PyOpenSSL in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: requests in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: ConfigArgParse in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: parsedatetime in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: configobj in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: pytz in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: psutil>=2.1.0 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: six in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: cryptography>=0.7 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: zope.component in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: mock in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: acme==0.0.0.dev20151104 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: pyrfc3339 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt)
Requirement already up-to-date: python-augeas in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from letsencrypt-apache)
Requirement already up-to-date: idna>=2.0 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: pyasn1>=0.1.8 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: enum34 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: ipaddress in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: cffi>=1.1.0 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography>=0.7->letsencrypt)
Requirement already up-to-date: zope.event in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from zope.component->letsencrypt)
Requirement already up-to-date: funcsigs in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from mock->letsencrypt)
Requirement already up-to-date: pbr>=0.11 in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from mock->letsencrypt)
Requirement already up-to-date: ndg-httpsclient in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from acme==0.0.0.dev20151104->letsencrypt)
Requirement already up-to-date: werkzeug in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from acme==0.0.0.dev20151104->letsencrypt)
Requirement already up-to-date: pycparser in /home/xxxxxxxx/.local/share/letsencrypt/lib/python2.7/site-packages (from cffi>=1.1.0->cryptography>=0.7->letsencrypt)
Running with virtualenv: sudo /home/xxxxxxxx/.local/share/letsencrypt/bin/letsencrypt -v -h

Thanks

Hi,

My previous reply is marked as spam …

I delete letsencrypt, .cache and .local/shared/letsencrypt directories and run again the installation from the beginning. It’s work fine. I can’t explain why.

My private keys is in /ets/letsencrypt. I’m now looking for my certificate …

Thanks

Hi, sorry for the late reply.
Your private key should be in /etc/letsencrypt/live/yourdomain/privkey.pem and the certificate should be in /etc/letsencrypt/live/yourdomain/cert.pem.
If the private key is there but the certificate is missing, the authorization most likely failed. You’ll need to read letsencrypt’s log messages to determine the exact reason.

Hi,

Thanks, I finally get the certificat restarting the request

Thanks a lot

I had the same problem on a DigitalOcean Centos7 droplet with only 512MB of memory, which was not enough:

Dec 23 13:16:06 jfranklin9000-centos-7-1 yum[26220]: Installed: dialog-1.2-4.20130523.el7.x86_64
Dec 23 13:16:58 jfranklin9000-centos-7-1 kernel: cc1 invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0

Retrying with:

./letsencrypt-auto -v -h

worked.