Puppet fails with : Cannot allocate memory - fork(2)

linux, puppet, ruby, unzip, vagrant

Solution

Maybe overcommit is disabled in your system, try:

echo 1 > /proc/sys/vm/overcommit_memory

Problem

Here is my puppet command: ``` exec { 'unzip Data.zip': command => '/usr/bin/unzip -qq -o /vagrant/modules/wls/files/Data.zip -d /weblogic/app', group => 'vagrant', user => 'vagrant', require => File['/weblogic/app/WEB-INF'], } ``` Here is the error message: Error: /Stage[main]/Deploy_webapp/Exec[unzip Data.zip]/returns: change from notrun to 0 failed: Cannot allocate memory - fork(2) SLES 11SP3 on Virtual Box managed by Vagrant - 1 Processor 4GB RAM ( works with 6GB ) `# Use VBoxManage to customize the VM. For example to change memory:` `vb.customize ["modifyvm", :id, "--memory", "4096"]`

Original source

Related problems