【问题标题】:Oracle db client silent installation failing when running through Chef通过 Chef 运行时,Oracle db 客户端静默安装失败
【发布时间】:2016-06-21 16:53:11
【问题描述】:

我需要通过 chef 安装 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 静默安装成功。

寻找建议/解决方案。

【问题讨论】:

    标签: chef-infra chef-solo silent-installer oracleclient


    【解决方案1】:

    正如错误所说,检查日志并查看失败的原因:

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

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

    【讨论】:

    • 感谢您的检查。这是一个失败的可忽略/可选的先决条件。通过 bash 运行静默安装时,它不会因此而失败。有没有办法在运行 chef-solo 时也可以忽略这个特定的先决条件。
    • 先决条件错误如下所述: INFO: Expected Value:14.5742GB (1.5282164E7KB) INFO: Actual Value:7.3984GB (7757820.0KB) INFO: Error Message:PRVF-7573 : Sufficient swap size is在节点“主机”上不可用 [必需 = 14.5742GB (1.5282164E7KB) ; Found = 7.3984GB (7757820.0KB)] INFO: Cause: 找到的交换大小不满足最低要求。信息:行动:增加交换大小以至少满足最小交换空间要求。
    猜你喜欢
    • 2022-06-10
    • 1970-01-01
    • 2014-09-10
    • 2019-06-24
    • 1970-01-01
    • 1970-01-01
    • 2012-04-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多