Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install/compile fails of letsencrypt-auto #1151

Closed
lexpierce opened this issue Oct 27, 2015 · 12 comments
Closed

Install/compile fails of letsencrypt-auto #1151

lexpierce opened this issue Oct 27, 2015 · 12 comments

Comments

@lexpierce
Copy link

Updated to a (newer than 2.7.5) python27. CentOS 7.

Command "/root/.local/share/letsencrypt/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-3jmPLD/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tgril0-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-3jmPLD/cryptography

SELinux is disabled in this environment.

@kuba
Copy link
Contributor

kuba commented Oct 27, 2015

Can you try ./letsencrypt-auto -v and paste the full log here?

@kuba kuba added the more-info label Oct 27, 2015
@azmifarih
Copy link

Have you solved the problem? Because I face same problem and did like this article. https://mediatemple.net/community/products/dv/204645250/noexec-and--tmp-troubleshooting#dv_40 . Please run your installation after chroot /root/chroot.

@lexpierce
Copy link
Author

gcc error! Strange...

    building '_openssl' extension
    creating build/temp.linux-x86_64-2.7/build
    creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    {standard input}: Assembler messages:
    {standard input}:48921: Warning: end of file not at end of a line; newline inserted
    {standard input}:50383: Error: unknown pseudo-op: `.cfi_resto'
    {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
    gcc: internal compiler error: Killed (program cc1)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    error: command 'gcc' failed with exit status 4

    ----------------------------------------
Command "/home/alex/.local/share/letsencrypt/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-53SP66/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eNoaCA-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/alex/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-53SP66/cryptography
/home/alex/.local/share/letsencrypt/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: 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

@lexpierce
Copy link
Author

Memory restrictions.. Had to stop my mysql instance to compile.

@dud3
Copy link

dud3 commented Nov 18, 2015

Same here, stopping mysql for a while did the job.

@thunderw
Copy link

Stopping mysql worked for me, too on my 512M memory box.

@aamnah
Copy link

aamnah commented Jun 11, 2016

Same here, was looking into upgrading Python and what not when i came across this issue. Stopped MySQL and Apache, ran the command again, worked perfectly with no issues at all. This on a DO 512MB server with Ubuntu 14.04 and Python 2.7.6.

@NinoSkopac
Copy link

Killing nodejs, mongod and nginx made me able to install as well.

@alswl
Copy link

alswl commented Aug 18, 2016

Do not stop nodejs / mysql, you need use swap.

Simple way add a swapfile:

dd if=/dev/zero of=/tmp/swapfile bs=1024 count=500000
swapon /tmp/swapfile

Use free -m test memory swap file, it use display:

free -m
              total        used        free      shared  buff/cache   available
Mem:            487         184         106          21         197         253
Swap:           488          10         477

@undermink
Copy link

yes same here... stopping mysql did the trick :)

@agwidarsito
Copy link

FYI, I found I need around 300/400 Mb of memory spare; once you have this it works

@micron
Copy link

micron commented May 20, 2017

@alswl don't forget to run mkswap /tmp/swapfile before running swapon /tmp/swapfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests