AWS Opswork Chef致命错误

时间:2014-07-15 11:00:25

标签: amazon-web-services chef aws-opsworks

我们正在尝试使用OpsWork安装python。安装过程正确,但最后得到的信息是:

Ran“bash”“/ tmp / chef-script20140715-9783-k2dw6u”返回2 [2014-07-15T10:29:19 + 00:00]致命:Chef :: Exceptions :: ChildConvergeError:Chef run process退出失败(退出代码1)

我们可以做错什么?

输出的最终片段如下:

Compiling /usr/local/lib/python2.7/xml/sax/__init__.py ...
Compiling /usr/local/lib/python2.7/xml/sax/_exceptions.py ...
Compiling /usr/local/lib/python2.7/xml/sax/expatreader.py ...
Compiling /usr/local/lib/python2.7/xml/sax/handler.py ...
Compiling /usr/local/lib/python2.7/xml/sax/saxutils.py ...
Compiling /usr/local/lib/python2.7/xml/sax/xmlreader.py ...
Compiling /usr/local/lib/python2.7/xmllib.py ...
Compiling /usr/local/lib/python2.7/xmlrpclib.py ...
Compiling /usr/local/lib/python2.7/zipfile.py ...
STDERR: configure: WARNING:

By default, distutils will build C++ extension modules with "g++".
If this is not intended, then set CXX on the configure command line.

libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
/var/lib/aws/opsworks/cache/Python-2.7.1/./Modules/posixmodule.c:7346: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'
libpython2.7.a(posixmodule.o): In function `posix_tempnam':
/var/lib/aws/opsworks/cache/Python-2.7.1/./Modules/posixmodule.c:7301: warning: the use of `tempnam' is dangerous, better use `mkstemp'
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_master
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.7/crypt.so: undefined symbol: crypt
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_master
make: *** [libinstall] Error 1
---- End output of "bash"  "/tmp/chef-script20140715-9783-k2dw6u" ----
Ran "bash"  "/tmp/chef-script20140715-9783-k2dw6u" returned 2
[2014-07-15T10:29:19+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

1 个答案:

答案 0 :(得分:0)

我之前发生过这样的错误。

解决方案1 ​​ - 我需要升级make工具。还需要确保python尚未安装。

解决方案2 - (可怕的)如果一切都失败了,只需将该行添加到BASH节中:

bash "install python...." do
  ..
  ignore_failure true
  ..
end