i am using chef version chef-13.8.5-1.el7.x86_64 and weblogic cookbook 2.1.5 and trying to install oracle weblogic 12.1.3, but facing the following issue:
The installer tries to execute the following command which is not correct, the .rsp file should be used by 12.1.3 version, not the xml:
java -jar /var/chef/cache/weblogic-12.1.3/fmw_12.1.3.0.0_wls.jar -silent -responseFile /var/chef/cache/weblogic-12.1.3/silent.xml
` Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received '1'
---- Begin output of java -jar /var/chef/cache/weblogic-12.1.3/fmw_12.1.3.0.0_wls.jar -silent -responseFile /var/chef/cache/weblogic-12.1.3/silent.xml ----
STDOUT: Launcher log file is /tmp/OraInstall2018-05-14_10-20-30AM/launcher2018-05-14_10-20-30AM.log.
Extracting files......
Starting Oracle Universal Installer
Checking if CPU speed is above 300 MHz. Actual 2197.455 MHz Passed
Checking swap space: must be greater than 512 MB. Actual 4194300 MB Passed
Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required)
Checking temp space: must be greater than 300 MB. Actual 3677 MB Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-05-14_10-20-30AM
Log: /tmp/OraInstall2018-05-14_10-20-30AM/install2018-05-14_10-20-30AM.log
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
**Reading response file..**
**Parse Error at line number:2
<domain-template-descriptor>**
Variables must be defined in a section in the format:VARIABLE_NAME=VALUE. No "="found!
Error in reading response file. Aborting Install.
`
` Compiled Resource:
# Declared in /var/chef/cache/cookbooks/xxxx_weblogic/recipes/install.rb:13:in `from_file'
weblogic("12.1.3") do
action [:create]
updated true
updated_by_last_action true
default_guard_interpreter :default
declared_type :weblogic
cookbook_name "xxxx_weblogic"
recipe_name "install"
ownername "weblogic"
groupname "weblogic"
home "/u01/app/weblogic/mw1213/wlserver"
oracle_jdk "8"
cache_path "/var/chef/cache/weblogic-12.1.3"
installer_file "fmw_12.1.3.0.0_wls.jar"
installer_path "/var/chef/cache/weblogic-12.1.3/fmw_12.1.3.0.0_wls.jar"
installer_url "https://artifactory.xxxx.de/artifactory/inst-it-local/chef02/oracle/weblogic-server/12.1.3/fmw_12.1.3.0.0_wls.jar"
silent_file "silent.xml"
silent_path "/var/chef/cache/weblogic-12.1.3/silent.xml"
component_paths "WebLogic Server/Core Application Server|WebLogic Server/Administration Console|WebLogic Server/Configuration Wizard and Upgrade Framework|WebLogic Server/Web 2.0 HTTP Pub-Sub Server|WebLogic Server/WebLogic JDBC Drivers|WebLogic Server/Third Party JDBC Drivers|WebLogic Server/WebLogic Server Clients|WebLogic Server/WebLogic Web Server Plugins|WebLogic Server/UDDI and Xquery Support|WebLogic Server/Server Examples"
silent_cmd "-silent -responseFile "
inventory_path "/u01/app/weblogic/mw1213/wlserver/oraInventory"
end
System Info:
------------
chef_version=13.8.5
platform=redhat
platform_version=7.2
ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
program_name=chef-client worker: ppid=31540;start=10:18:45;
executable=/opt/chef/bin/chef-client
`
I found the following files in the chef cache directory (/var/chef/cache/weblogic-12.1.3), the silent.rsp file is not there:
total 901552
-rw-r--r--. 1 weblogic weblogic 923179081 May 9 09:46 fmw_12.1.3.0.0_wls.jar
-rw-r--r--. 1 weblogic weblogic 855 May 9 10:45 silent.xml
This code from resources/weblogic.rb is responsible to choose the response file and the installation command:
`property :silent_file, String, default: lazy {
if Gem::Version.new(@version) < Gem::Version.new('12.1.2.0.0')
'silent.xml'
else
'silent.rsp'
end
}
property :silent_path, String, default: lazy { ::File.join(cache_path, silent_file) }
property :silent_cmd, String, default: lazy {
if Gem::Version.new(version) < Gem::Version.new('12.1.2.0.0')
'-mode=silent -silent_xml='
else
'-silent -responseFile '
end
}
`
silent_file: not correct (here is @version instance variable used by comparing the versions)
silent_cmd: correct (here is version local variable used by comparing the versions)
Hi all,
i am using chef version chef-13.8.5-1.el7.x86_64 and weblogic cookbook 2.1.5 and trying to install oracle weblogic 12.1.3, but facing the following issue:
The installer tries to execute the following command which is not correct, the .rsp file should be used by 12.1.3 version, not the xml: java -jar /var/chef/cache/weblogic-12.1.3/fmw_12.1.3.0.0_wls.jar -silent -responseFile /var/chef/cache/weblogic-12.1.3/silent.xml
` Mixlib::ShellOut::ShellCommandFailed
`
` Compiled Resource:
`
I found the following files in the chef cache directory (/var/chef/cache/weblogic-12.1.3), the silent.rsp file is not there:
total 901552 -rw-r--r--. 1 weblogic weblogic 923179081 May 9 09:46 fmw_12.1.3.0.0_wls.jar -rw-r--r--. 1 weblogic weblogic 855 May 9 10:45 silent.xml
This code from resources/weblogic.rb is responsible to choose the response file and the installation command: `property :silent_file, String, default: lazy { if Gem::Version.new(@version) < Gem::Version.new('12.1.2.0.0') 'silent.xml' else 'silent.rsp' end } property :silent_path, String, default: lazy { ::File.join(cache_path, silent_file) }
property :silent_cmd, String, default: lazy { if Gem::Version.new(version) < Gem::Version.new('12.1.2.0.0') '-mode=silent -silent_xml=' else '-silent -responseFile ' end } `
silent_file: not correct (here is @version instance variable used by comparing the versions) silent_cmd: correct (here is version local variable used by comparing the versions)
Could you please investigate it?
Thank you in advance, sneeeee