我试图在运行Ubuntu12.04的数字海洋液滴上生成一个证书,遵循以下指南:https://certbot.eff.org/#ubuntuother-other
我看到以下错误:
./certbot-仅限自动证书 ..。创造虚拟环境..。安装Python软件包..。..。复制src/cryptography/hazmat/backends/commoncrypto/hmac.py build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto复制src/cryptography/hazmat/backends/commoncrypto/__init__.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto复制src/cryptography/hazmat/backends/commoncrypto/ciphers.py -> build/lib.linux-x86_64-2.7/cryptography/hazmat/backends/commoncrypto运行egg_info写入要求src/crypgraphy.info/requres.txt编写src/crypgraphy.info/PKG-info-将顶级名称写入src/crypgraphy.g-info/top_level.top,将dependency_links写入src/crypgraphy.g-info/ entry _points.txt,警告: manifest_maker:标准文件'-c‘未找到读取清单文件src/crypgraphy.g-info/SOURCES.txt’读取清单模板'MANIFEST.in‘以前没有-包含与“docs/_build”匹配的目录警告:以前没有包含匹配“*”目录下的文件“向量”下的写入清单文件src/crypgraphy.g-info/SOURCES.txt‘正在运行build_ext生成cffi模块’build/tem.linux-x86_64-2.7/_padding.c‘创建构建/tem.linux-x86_64-2.7生成cffi模块build_ext生成cffi模块’build/tem.linux-x86-x86_64-2.7/_openssl.c‘_openssl’扩展创建build /tem.linux-x86_64-2.7/build创建_openssl gcc -pthread -fno-严格-混叠-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict原型-fPIC -I/usr/include/python2.7 -c build/tem.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:内部编译器错误:已终止(程序cc1)请提交完整的错误报告,在适当的情况下使用预处理的源。有关说明,请参见file:///usr/share/doc/gcc-4.6/README.Bugs。错误:命令'gcc‘失败,退出状态4__file__(.read().replace(‘',’'),__file__,‘'exec'))“安装-记录/tmp/ pip -sdFAkd-记录/安装-记录.tmp单版本-外部管理-编译-安装- /root/.local/share/letsencrypt/include/site/python2.7/cryptography”失败,错误代码1在/tmp/pip-构建-7RK5lP/密码您正在使用pip版本8.0.3,但是版本8.1.2是可用的。您应该考虑通过'pip安装-升级pip‘命令进行升级。
我已经成功地运行在其他两个类似的服务器上,没有任何问题。有什么想法吗?
编辑
找到相关的Github问题:https://github.com/certbot/certbot/issues/1081
似乎与内存有关,而不是Python。试图停止apache服务以释放内存,但发现了相同的错误。
发布于 2016-07-26 18:59:18
我成功地在certbot上运行的服务器有2GB内存,这个内存只有512 MB,这似乎是问题所在。添加了一个交换文件,certbot成功地运行了。
--
与Certbot相关的问题:https://github.com/certbot/certbot/issues/1081
python-密码学显然试图编译一个相当大的C绑定,gcc由于缺乏空闲内存而崩溃。
使用本指南创建交换空间:https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04
https://stackoverflow.com/questions/38597326
复制相似问题