错误:IOError:厨师Knife的封闭流

时间:2018-01-21 18:08:48

标签: chef chef-recipe knife cookbook

我正在尝试使用redhat机器上的厨师设置SAS办公室分析。问题是安装SAS组件的脚本需要花费太多时间,比如一个多小时。我使用knife bootstrap命令运行cookbook配方。它会运行几分钟然后抛出关闭的流错误。

以下是我用来引导的命令。

knife bootstrap xx.xxx.xx.xxx --ssh-user ec2-user -i sec.pem --bootstrap-version 12.4.3 --sudo  -VVV --use-sudo-password --node-name aws1-node --run-list recipe['SAS::oa'] -y

以下是输出的最后几行。

* execute[setup for sas] action run[2018-01-21T12:52:10-05:00] INFO: Processing execute[setup for sas] action run (SAS::oa line 72)
[2018-01-21T12:52:10-05:00] DEBUG: Providers for generic execute resource enabled on node include: [Chef::Provider::Execute]
[2018-01-21T12:52:10-05:00] DEBUG: Provider for action run on resource execute[setup for sas] is Chef::Provider::Execute
DEBUG: received packet nr 1872 type 94 len 28
INFO: channel_data: 0 2b
DEBUG: received packet nr 1873 type 94 len 60
INFO: channel_data: 0 40b
Preparing the SAS Deployment Wizard...
DEBUG: read 84 bytes
DEBUG: received packet nr 1874 type 94 len 60
INFO: channel_data: 0 40b
Launching the SAS Deployment Wizard...
DEBUG: read 0 bytes
ERROR: IOError: closed stream

跟随被卡住的代码块。

#run install setup from response file
execute "setup for sas" do
  user "root"
  cwd "/home/sas"
  command "su sas -c 'bash /sas/sasdepot/SAS_Software_Depot/setup.sh -quiet -responsefile /sas/response_files/office_analytics_install.properties'"
end

有人可以建议我如何避免这种密切流错误?

感谢

0 个答案:

没有答案