厨师 - ubuntu 14.04上的sudo chef-client

时间:2016-08-27 16:15:07

标签: chef chef-recipe

直到昨天,我的厨师 - 客户工作得很好。 但今天强迫安装后

$ sudo chef-client

我收到以下错误,看起来sudo食谱是主要原因。

是的,直到昨天我还在运行厨师客户端12.8,所以也许这里有一些我需要检查的东西。

我刚刚从sudo食谱2.3更新到2.11,但我得到了相同的内容。

$ sudo -V

告诉我sudo已经安装,所以我不确定错误在哪里

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

1 个答案:

答案 0 :(得分:1)

原因是你没有足够的内存。检查其他流程。

Errno::ENOMEM
-------------
Cannot allocate memory - fork(2)
相关问题