The certificate can not be postponed successfully, and the following error is reported

Bootstrapping dependencies for RedHat-based OSes… (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
Package python-devel-2.6.6-66.el6_8.x86_64 already installed and latest version
Package python-virtualenv-1.10.1-1.el6.noarch already installed and latest version
Package python-tools-2.6.6-66.el6_8.x86_64 already installed and latest version
Package python-pip-7.1.0-1.el6.noarch already installed and latest version
Nothing to do
Creating virtual environment…
Installing Python packages…
Had a problem while installing Python packages.

pip prints the following errors:

DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Requirement already satisfied: argparse==1.4.0 in /opt/eff.org/certbot/venv/lib/python2.6/site-packages (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 11))
Collecting pycparser==2.14 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 17))
/opt/eff.org/certbot/venv/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/opt/eff.org/certbot/venv/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading pycparser-2.14.tar.gz (223kB)
Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 21))
Downloading asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
Collecting cffi==1.10.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 24))
Downloading cffi-1.10.0-cp26-cp26mu-manylinux1_x86_64.whl (392kB)
Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 61))
Downloading ConfigArgParse-0.12.0.tar.gz (41kB)
Collecting configobj==5.0.6 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 63))
Downloading configobj-5.0.6.tar.gz
Collecting cryptography==2.0.2 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 65))
Downloading cryptography-2.0.2-cp26-cp26mu-manylinux1_x86_64.whl (2.2MB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 96))
Downloading enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 99))
Downloading funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.5 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 102))
Downloading idna-2.5-py2.py3-none-any.whl (55kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 105))
Downloading ipaddress-1.0.16.tar.gz
Collecting linecache2==1.0.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 108))
Downloading linecache2-1.0.0-py2.py3-none-any.whl
Collecting ordereddict==1.1 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 111))
Downloading ordereddict-1.1.tar.gz
Collecting packaging==16.8 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 113))
Downloading packaging-16.8-py2.py3-none-any.whl
Collecting parsedatetime==2.1 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 116))
Downloading parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 119))
Downloading pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 122))
Downloading pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 125))
Downloading pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 134))
Downloading pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 137))
Downloading python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2015.7 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 139))
Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.12.1 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 153))
Downloading requests-2.12.1-py2.py3-none-any.whl (574kB)
Collecting six==1.10.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 156))
Downloading six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 159))
Downloading traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 162))
Downloading unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 165))
Downloading zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 167))
Downloading zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 169))
Downloading zope.interface-4.1.3.tar.gz (141kB)
Collecting mock==2.0.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 187))
Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 198))
Downloading letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==0.19.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 202))
Downloading certbot-0.19.0-py2.py3-none-any.whl (279kB)
Collecting acme==0.19.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 205))
Downloading acme-0.19.0-py2.py3-none-any.whl (99kB)
Collecting certbot-apache==0.19.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 208))
Downloading certbot_apache-0.19.0-py2.py3-none-any.whl (141kB)
Collecting certbot-nginx==0.19.0 (from -r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 211))
Downloading certbot_nginx-0.19.0-py2.py3-none-any.whl (65kB)
Requirement already satisfied: setuptools in /opt/eff.org/certbot/venv/lib/python2.6/site-packages (from zope.component==4.2.2->-r /tmp/tmp.93zYvB1ocV/letsencrypt-auto-requirements.txt (line 165))
Installing collected packages: pycparser, asn1crypto, cffi, ordereddict, ConfigArgParse, six, configobj, idna, ipaddress, enum34, cryptography, funcsigs, linecache2, pyparsing, packaging, parsedatetime, pbr, pyOpenSSL, pytz, pyRFC3339, python-augeas, requests, traceback2, unittest2, zope.interface, zope.event, zope.component, mock, acme, certbot, letsencrypt, certbot-apache, certbot-nginx
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status ‘error’
Complete output from command /opt/eff.org/certbot/venv/bin/python2 -u -c "import setuptools, tokenize;file=’/tmp/pip-build-hswpBC/pycparser/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))" install --record /tmp/pip-NmGe8t-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.6/pycparser:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pycparser
copying pycparser/init.py -> build/lib/pycparser
copying pycparser/ast_transforms.py -> build/lib/pycparser
copying pycparser/yacctab.py -> build/lib/pycparser
copying pycparser/c_ast.py -> build/lib/pycparser
copying pycparser/_ast_gen.py -> build/lib/pycparser
copying pycparser/_build_tables.py -> build/lib/pycparser
copying pycparser/plyparser.py -> build/lib/pycparser
copying pycparser/c_lexer.py -> build/lib/pycparser
copying pycparser/lextab.py -> build/lib/pycparser
copying pycparser/c_parser.py -> build/lib/pycparser
copying pycparser/c_generator.py -> build/lib/pycparser
creating build/lib/pycparser/ply
copying pycparser/ply/init.py -> build/lib/pycparser/ply
copying pycparser/ply/cpp.py -> build/lib/pycparser/ply
copying pycparser/ply/yacc.py -> build/lib/pycparser/ply
copying pycparser/ply/lex.py -> build/lib/pycparser/ply
copying pycparser/ply/ctokens.py -> build/lib/pycparser/ply
copying pycparser/_c_ast.cfg -> build/lib/pycparser
running install_lib
creating /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/init.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/ast_transforms.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/yacctab.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/_c_ast.cfg -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/c_ast.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/_ast_gen.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/_build_tables.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/plyparser.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/c_lexer.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/lextab.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
creating /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/ply/init.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/ply/cpp.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/ply/yacc.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/ply/lex.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/ply/ctokens.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply
copying build/lib/pycparser/c_parser.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
copying build/lib/pycparser/c_generator.py -> /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/init.py to init.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ast_transforms.py to ast_transforms.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/yacctab.py to yacctab.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/c_ast.py to c_ast.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/_ast_gen.py to _ast_gen.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/_build_tables.py to _build_tables.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/plyparser.py to plyparser.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/c_lexer.py to c_lexer.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/lextab.py to lextab.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply/init.py to init.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply/cpp.py to cpp.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply/yacc.py to yacc.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply/lex.py to lex.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/ply/ctokens.py to ctokens.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/c_parser.py to c_parser.pyc
byte-compiling /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser/c_generator.py to c_generator.pyc
running install_egg_info
running egg_info
writing pycparser.egg-info/PKG-INFO
writing top-level names to pycparser.egg-info/top_level.txt
writing dependency_links to pycparser.egg-info/dependency_links.txt
warning: manifest_maker: standard file ‘-c’ not found
reading manifest file 'pycparser.egg-info/SOURCES.txt’
reading manifest template 'MANIFEST.in
warning: no previously-included files matching ‘yacctab.’ found under directory 'tests’
warning: no previously-included files matching 'lextab.
’ found under directory 'tests’
warning: no previously-included files matching ‘yacctab.’ found under directory 'examples’
warning: no previously-included files matching 'lextab.
’ found under directory 'examples’
writing manifest file 'pycparser.egg-info/SOURCES.txt’
Copying pycparser.egg-info to /opt/eff.org/certbot/venv/lib/python2.6/site-packages/pycparser-2.14-py2.6.egg-info
running install_scripts
writing list of installed files to '/tmp/pip-NmGe8t-record/install-record.txt’
Build the lexing/parsing tables
error: Cannot allocate memory

----------------------------------------

Command “/opt/eff.org/certbot/venv/bin/python2 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-hswpBC/pycparser/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-NmGe8t-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.6/pycparser” failed with error code 1 in /tmp/pip-build-hswpBC/pycparser/

Certbot has problem setting up the virtual environment.

Based on your pip output, the problem can likely be fixed by
increasing the available memory.

Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .

When I upgrade PIP and python,and the following error is reported:

[root@shici ~]# pip -V
pip 9.0.1 from /usr/local/python3/lib/python3.5/site-packages (python 3.5)
[root@shici ~]#
[root@shici ~]# /root/certbot-auto renew --no-bootstrap --disable-hook-validation --renew-hook “/s reload nginx”;
Traceback (most recent call last):
File “/tmp/tmp.PMLwsGruPj/fetch.py”, line 23, in
from urllib2 import build_opener, HTTPHandler, HTTPSHandler
ImportError: No module named 'urllib2’
WARNING: unable to check for updates.
Creating virtual environment…
Traceback (most recent call last):
File “/usr/bin/virtualenv”, line 2, in
import virtualenv
ImportError: No module named ‘virtualenv’
[root@shici ~]#

After increasing the memory capacity, the problem has been solved!!!

1 Like

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