Until yesterday my chef-client was working great. But today after forcing an install with
$ sudo chef-client
I get the error below, which looks like the sudo recipe is the main reason.
Btw, until yesterday I was running chef client 12.8, so maybe there is something here that I need to check.
I just updated from sudo cookbook 2.3 to 2.11 but I'm getting the same thing.
$ sudo -V
tells me that sudo is already installed so I'm not sure where is the error
sudo chef-client
Starting Chef Client, version 12.13.37
resolving cookbooks for run list: ["demo::app"]
...
Recipe: sudo::default
* apt_package[sudo] action install
================================================================================
Error executing action `install` on resource 'apt_package[sudo]'
================================================================================
Errno::ENOMEM
-------------
Cannot allocate memory - fork(2)
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/sudo/recipes/default.rb
22: package 'sudo' do
23: not_if 'sudo -V'
24: end
25:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/sudo/recipes/default.rb:22:in `from_file'
apt_package("sudo") do
package_name "sudo"
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :package
cookbook_name "sudo"
recipe_name "default"
not_if "sudo -V"
end
Platform:
---------
x86_64-linux