通过Chef运行时Oracle数据库客户端静默安装失败

时间:2016-06-21 16:53:12

标签: chef chef-solo silent-installer oracleclient

我需要通过厨师安装oracle 12.1客户端软件。静音安装后,厨师食谱失败。错误详情:

[2016-06-21T11:53:02+00:00] ERROR: Running exception handlers
[2016-06-21T11:53:02+00:00] ERROR: Exception handlers complete
[2016-06-21T11:53:02+00:00] FATAL: Stacktrace dumped to /u01/media/chef- stacktrace.out
[2016-06-21T11:53:02+00:00] ERROR: execute[Install database client]  (rgbu_dbclient::dbclientinstall_12c line 81) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '6'
---- Begin output of /u01/media/dbclient/client/runInstaller -logLevel fine -waitforcompletion -ignoreSysPrereqs -silent -responseFile /u01/media/dbclient_install.rsp ----
STDOUT: Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB.   Actual 22942 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 7492 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-06-21_11-51-31AM. Please wait ...[WARNING] [INS-13014] Target environment does not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/product/oraInventory/logs/installActions2016-06-21_11-51-31AM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/product/oraInventory/logs/installActions2016-06-21_11-51-31AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u01/product/oraInventory/logs/installActions2016-06-21_11-51-31AM.log
The installation of Oracle Client 12c was successful.
Please check '/u01/product/oraInventory /logs/silentInstall2016-06-21_11-51-31AM.log' for more details.
Successfully Setup Software.
STDERR:
---- End output of /u01/media/dbclient/client/runInstaller -logLevel fine -waitforcompletion -ignoreSysPrereqs -silent -responseFile /u01/media/dbclient_install.rsp ----
Ran /u01/media/dbclient/client/runInstaller -logLevel fine        -waitforcompletion -ignoreSysPrereqs -silent -responseFile /u01/media/dbclient_install.rsp returned 6
[2016-06-21T11:53:02+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

厨师食谱使用chef-solo命令运行。 使用相同的命令,从bash成功进行静默安装。

寻找建议/解决方案。

1 个答案:

答案 0 :(得分:0)

如错误所示,请检查日志并查看失败的内容:

  

原因:未满足某些可选先决条件。请参阅日志   细节。   /u01/product/oraInventory/logs/installActions2016-06-21_11-51-31AM.log

     

操作:从日志中识别失败的先决条件检查列表:   /u01/product/oraInventory/logs/installActions2016-06-21_11-51-31AM.log。