SumoLogic/sumologic-collector-chef-cookbook

Mixlib::ShellOut::ShellCommandFailed

sunil-r opened this issue · 5 comments

getting he below error when i run it form the chef server, but in the client machine it works fine. i tried by setting the env varible as set JAVA_OPTS="-Xms512M -Xmx1024M" but still no luck.

STDOUT: Preparing JRE ...
Copy-mode.
Copy-mode.
The installation directory has been set to C:\sumo.
Extracting files...

[error occurred during error reporting (null), id 0xc0000005]

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate

An error report file with more information is saved as:

zl4bv commented

Hi @sunil-r, would you mind clarifying a couple of things:

  • What operating system is the client machine?
  • Aside running the cookbook locally versus running it from Chef Server, was anything else different that made the install work fine?

Hi Ben,
The client machine is “windows server 2010r2” ,
there is no difference, I am using the same cook book and the same run list and same parameters.

Hi Ben,

I think this is more to do with the SumoCollector_windows-x64.exe, which is trying to run the java to install sumologic, and it is running out of memory since it has not set the min max memory for running java.

Regards,
Sunil.R
From: Ben Vidulich [mailto:notifications@github.com]
Sent: Sunday, July 31, 2016 9:54 AM
To: SumoLogic/sumologic-collector-chef-cookbook sumologic-collector-chef-cookbook@noreply.github.com
Cc: Raju, Sunil Sunil.Raju@Aspect.com; Mention mention@noreply.github.com
Subject: Re: [SumoLogic/sumologic-collector-chef-cookbook] Mixlib::ShellOut::ShellCommandFailed (#91)

Hi @sunil-rhttps://github.com/sunil-r, would you mind clarifying a couple of things:

  • What operating system is the client machine?
  • Aside running the cookbook locally versus running it from Chef Server, was anything else different that made the install work fine?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/91#issuecomment-236409069, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATQTB6N9hkH_-tLiaxZEjlqLpLnU6PRGks5qbCNagaJpZM4JYM3H.

This email (including any attachments) is proprietary to Aspect Software, Inc. and may contain information that is confidential. If you have received this message in error, please do not read, copy or forward this message. Please notify the sender immediately, delete it from your system and destroy any copies. You may not further disclose or distribute this email or its attachments.

I think this might help: #128

closing due to lack of response