Letsencrypt Certbot错误 [英] Letsencrypt Certbot error

查看:250
本文介绍了Letsencrypt Certbot错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在按照此指南在运行Ubuntu 12.04的Digital Ocean Droplet上生成证书: https ://certbot.eff.org/#ubuntuother-other

I'm trying to generate a certificate on a Digital Ocean droplet running Ubuntu 12.04 following this guide: https://certbot.eff.org/#ubuntuother-other

我看到以下错误:

./certbot-auto certonly

./certbot-auto certonly

...

Creating virtual environment... 
Installing Python packages...

...

copying src/cryptography/hazmat/backends/commoncrypto/hmac.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
copying src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto
running egg_info
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing entry points to src/cryptography.egg-info/entry_points.txt
warning: manifest_maker: standard file '-c' not found

reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-2.7/_padding.c'
creating build/temp.linux-x86_64-2.7
generating cffi module 'build/temp.linux-x86_64-2.7/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-2.7/_openssl.c'
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 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -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
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
error: command 'gcc' failed with exit status 4

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

我已经在其他2台类似的服务器上成功运行了此服务器,没有任何问题.有什么想法吗?

I have successfully run this on 2 other similar servers with no issues. Any ideas?

发现了与Github相关的问题: https://github.com/certbot/certbot/issues/1081

Found related Github issue: https://github.com/certbot/certbot/issues/1081

似乎与内存有关,而不是Python.尝试停止apache服务以释放内存,但看到相同的错误.

Appears to be memory related rather than Python. Attempted to stop apache service to free up memory but seeing same error.

推荐答案

我已成功在其上运行certbot的服务器具有2 GB内存,而该服务器只有512 MB,这似乎是问题所在. 添加了交换文件,certbot成功运行.

The servers that I had successfully run certbot on had 2 GB memory, this one only has 512 MB, which seems to be the issue. Added a swap file and certbot runs successfully.

-

Certbot相关问题: https://github.com/certbot/certbot/issues/1081

Certbot related issue: https://github.com/certbot/certbot/issues/1081

python-cryptography显然试图编译一个很大的C绑定,由于缺少可用内存,gcc崩溃了.

python-cryptography apparently tries to compile a pretty big C binding, and gcc crashes due to lack of free memory.

使用本指南来创建交换空间: https://www.digitalocean.com /community/tutorials/how-to-to-add-swap-on-ubuntu-14-04

Used this guide to create swap space: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

这篇关于Letsencrypt Certbot错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆