ERROR: Mixlib::ShellOut::ShellCommandFailed


#1

Hi

I am trying to execute jar file from window 2012 r2 chef-workstation to chef-node using below recipe:

execute 'eam-hotfix-8.6.0.20.jar' do
   cwd "C:\Software"
   command "java -jar eam-hotfix-8.6.0.20.jar"
   action :run
end

But I am getting below error:

[2018-08-29T18:54:41-07:00] ERROR: Remote chef-client error follows:
[2018-08-29T18:54:41-07:00] ERROR: Mixlib::ShellOut::ShellCommandFailed: execute[eam-hotfix-8.6.0.20.jar] (install_EAM::run_hotfix line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of java -jar eam-hotfix-8.6.0.20.jar ----
STDOUT: Error occurred during initialization of VM
Could not reserve enough space for object heap
STDERR: 
---- End output of java -jar eam-hotfix-8.6.0.20.jar ----
Ran java -jar eam-hotfix-8.6.0.20.jar returned 1