"Installing Python packages" hangs at "Running setup.py install for cffi ..."


#1

I ran multiple commands and they all gave the same output and hang at “Installing Python packages” at “Running setup.py install for cffi …”. It stays there for more than an hour.
./certbot-auto renew
./certbot-auto renew --force-renewal --no-binary --verbose
./certbot-auto --no-binary --verbose certonly -n -d example.com -d www.example.com

The output is the same even if I run:
./certbot-auto
./cerbot-auto --version

I hope that someone can provide some guidance if I’m doing something wrong or missing something obvious. I’ve read other posts where people had the same problem of hanging at “Installing Python packages” but none of the fixes made a difference. I have enough space on the device as well. I’m really not sure what the problem is so I would greatly appreciate any help.

It produced this output:

root@stalk:~# Bootstrapping dependencies for Debian-based OSes…
Ign http//us-east-1.ec2.archive.ubuntu.com trusty InRelease
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease
Hit http//us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
Hit http//us-east-1.ec2.archive.ubuntu.com trusty Release
Get:1 http//security.ubuntu.com trusty-security InRelease [65.9 kB]
Hit http//ppa.launchpad.net trusty InRelease
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en
Hit http//us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/main Sources
Hit http//ppa.launchpad.net trusty/main amd64 Packages
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/universe Sources
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en
Hit http//ppa.launchpad.net trusty/main Translation-en
Hit http//us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en
Ign http//us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US
Ign http//us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
Get:2 http://security.ubuntu.com trusty-security/main Sources [120 kB]
Get:3 http://security.ubuntu.com trusty-security/universe Sources [43.7 kB]
Get:4 http://security.ubuntu.com trusty-security/main amd64 Packages [531 kB]
Get:5 http://security.ubuntu.com trusty-security/universe amd64 Packages [138 kB]
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Fetched 899 kB in 46s (19.2 kB/s)
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
dialog is already the newest version.
gcc is already the newest version.
python is already the newest version.
python-dev is already the newest version.
augeas-lenses is already the newest version.
ca-certificates is already the newest version.
libaugeas0 is already the newest version.
libffi-dev is already the newest version.
libssl-dev is already the newest version.
python-virtualenv is already the newest version.
The following packages were automatically installed and are no longer required:
apache2-data linux-headers-3.13.0-48 linux-headers-3.13.0-48-generic
linux-image-3.13.0-48-generic
Use ‘apt-get autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
Creating virtual environment…
Running virtualenv with interpreter /usr/bin/python2.7
New python executable in /home/ubuntu/.local/share/letsencrypt/bin/python2.7
Also creating executable in /home/ubuntu/.local/share/letsencrypt/bin/python
Installing setuptools, pip…done.
Installing Python packages…
Collecting argparse==1.4.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 6))
/home/ubuntu/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/home/ubuntu/.local/share/letsencrypt/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 12))
Downloading pycparser-2.14.tar.gz (223kB)
100% |████████████████████████████████| 225kB 38.5MB/s
Collecting cffi==1.4.2 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 15))
Downloading cffi-1.4.2.tar.gz (365kB)
100% |████████████████████████████████| 368kB 655kB/s
Collecting ConfigArgParse==0.10.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 32))
Downloading ConfigArgParse-0.10.0.tar.gz
Collecting configobj==5.0.6 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 34))
Downloading configobj-5.0.6.tar.gz
Collecting cryptography==1.3.4 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 36))
Downloading cryptography-1.3.4.tar.gz (384kB)
100% |████████████████████████████████| 385kB 25.0MB/s
Collecting enum34==1.1.2 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 59))
Downloading enum34-1.1.2.tar.gz (46kB)
100% |████████████████████████████████| 49kB 31.4MB/s
Collecting funcsigs==0.4 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 62))
Downloading funcsigs-0.4-py2.py3-none-any.whl
Collecting idna==2.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 65))
Downloading idna-2.0-py2.py3-none-any.whl (61kB)
100% |████████████████████████████████| 61kB 35.1MB/s
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 68))
Downloading ipaddress-1.0.16-py27-none-any.whl
Collecting linecache2==1.0.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 71))
Downloading linecache2-1.0.0-py2.py3-none-any.whl
Collecting ndg-httpsclient==0.4.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 74))
Downloading ndg_httpsclient-0.4.0.tar.gz
Collecting ordereddict==1.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 76))
Downloading ordereddict-1.1.tar.gz
Collecting parsedatetime==2.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 78))
Downloading parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 81))
Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
100% |████████████████████████████████| 90kB 1.3MB/s
Collecting pyasn1==0.1.9 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 84))
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting pyopenssl==16.0.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 96))
Downloading pyOpenSSL-16.0.0-py2.py3-none-any.whl (45kB)
100% |████████████████████████████████| 45kB 33.6MB/s
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 99))
Downloading pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 57kB 30.9MB/s
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 108))
Downloading pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 111))
Downloading python-augeas-0.5.0.tar.gz (90kB)
100% |████████████████████████████████| 94kB 636kB/s
Collecting python2-pythondialog==3.3.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 113))
Downloading python2-pythondialog-3.3.0.tar.bz2 (1.8MB)
100% |████████████████████████████████| 1.8MB 31.8MB/s
Collecting pytz==2015.7 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 116))
Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
100% |████████████████████████████████| 479kB 1.3MB/s
Collecting requests==2.9.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 130))
Downloading requests-2.9.1-py2.py3-none-any.whl (501kB)
100% |████████████████████████████████| 503kB 653kB/s
Collecting six==1.10.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 133))
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 136))
Downloading traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 139))
Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB)
100% |████████████████████████████████| 98kB 37.5MB/s
Collecting zope.component==4.2.2 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 142))
Downloading zope.component-4.2.2.tar.gz (546kB)
100% |████████████████████████████████| 548kB 25.8MB/s
Collecting zope.event==4.1.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 144))
Downloading zope.event-4.1.0.tar.gz (476kB)
100% |████████████████████████████████| 479kB 21.2MB/s
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 146))
Downloading zope.interface-4.1.3.tar.gz (141kB)
100% |████████████████████████████████| 143kB 27.8MB/s
Collecting mock==1.0.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 164))
Downloading mock-1.0.1.zip (861kB)
100% |████████████████████████████████| 864kB 654kB/s
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 167))
Downloading letsencrypt-0.7.0-py2-none-any.whl
Collecting acme==0.9.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 173))
Downloading acme-0.9.1-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 98kB 23.0MB/s
Collecting certbot==0.9.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 176))
Downloading certbot-0.9.1-py2-none-any.whl (225kB)
100% |████████████████████████████████| 225kB 1.4MB/s
Collecting certbot-apache==0.9.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 179))
Downloading certbot_apache-0.9.1-py2-none-any.whl (123kB)
100% |████████████████████████████████| 126kB 22.7MB/s
Collecting certbot-nginx==0.9.1 (from -r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 182))
Downloading certbot_nginx-0.9.1-py2-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 26.5MB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools>=11.3 in ./.local/share/letsencrypt/lib/python2.7/site-packages (from cryptography==1.3.4->-r /tmp/tmp.YBWaB8OMmn/letsencrypt-auto-requirements.txt (line 36))
Installing collected packages: argparse, pycparser, cffi, ConfigArgParse, six, configobj, idna, pyasn1, enum34, ipaddress, cryptography, funcsigs, linecache2, pyopenssl, ndg-httpsclient, ordereddict, parsedatetime, pbr, pyparsing, pytz, pyRFC3339, python-augeas, python2-pythondialog, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, mock, acme, certbot, letsencrypt, certbot-apache, certbot-nginx
Found existing installation: argparse 1.2.1
Not uninstalling argparse at /usr/lib/python2.7, outside environment /home/ubuntu/.local/share/letsencrypt
Running setup.py install for pycparser … done
Running setup.py install for cffi … \

My operating system is (include version): Ubuntu 14.04 LTS GNU/Linux 3.13.0-91-generic x86_64

My web server is (include version): Nginx 1.10.1

I can login to a root shell on my machine (yes or no, or I don’t know): Yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No


#2

Turns out it was just a matter of restarting the server…


#3

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