直到昨天,我的厨师 - 客户工作得很好。 但今天强迫安装后
$ sudo chef-client
我收到以下错误,看起来sudo
食谱是主要原因。
我刚刚从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
答案 0 :(得分:1)
原因是你没有足够的内存。检查其他流程。
Errno::ENOMEM
-------------
Cannot allocate memory - fork(2)