谷歌搜索未找到该错误信息。
我试图在以前成功运行过的服务器上运行 chef-client。我不知道是什么发生了变化导致产生此错误。以下是我能想到的最详细的输出:
> chef-client -l debug
[2014-10-09T17:50:19-05:00] INFO: Forking chef instance to converge...
[2014-10-09T17:50:19-05:00] DEBUG: Fork successful. Waiting for new chef pid: 17823
[2014-10-09T17:50:19-05:00] DEBUG: Forked instance now converging
Starting Chef Client, version 11.16.4
[2014-10-09T17:50:19-05:00] INFO: *** Chef 11.16.4 ***
[2014-10-09T17:50:19-05:00] INFO: Chef-client pid: 17823
[2014-10-09T17:50:19-05:00] DEBUG: Chef-client request_id: 8ebe3de0-1e0a-4647-b2bb-d48aa020b815
[2014-10-09T17:50:19-05:00] WARN: [DEPRECATION] Plugin at /etc/chef/ohai_plugins/dpkg.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.opscode.com/ohai_custom.html
[2014-10-09T17:50:19-05:00] WARN: [DEPRECATION] Plugin at /etc/chef/ohai_plugins/network_addr.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.opscode.com/ohai_custom.html
[2014-10-09T17:50:19-05:00] WARN: [DEPRECATION] Plugin at /etc/chef/ohai_plugins/ipmi.rb is a version 6 plugin. Version 6 plugins will not be supported in future releases of Ohai. Please upgrade your plugin to version 7 plugin syntax. For more information visit here: docs.opscode.com/ohai_custom.html
[2014-10-09T17:50:19-05:00] DEBUG: Skipping provides 'linux/dpkg' for plugin 'dpkg'
[2014-10-09T17:50:20-05:00] DEBUG: Skipping provides 'network' for plugin 'network_addr'
[2014-10-09T17:50:20-05:00] DEBUG: Can not find any v7 plugin that provides linux/network
[2014-10-09T17:50:20-05:00] DEBUG: Re-raising exception: Ohai::Exceptions::DependencyNotFound - Can not find a plugin for dependency linux::network
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:55:in `require_plugin'
(eval):21:in `block in collect_contents'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `block in collect_contents'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin.rb:98:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin.rb:169:in `safe_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/runner.rb:59:in `run_v6_plugin'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/runner.rb:45:in `run_plugin'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:83:in `block in run_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:82:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:82:in `run_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:73:in `all_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:292:in `run_ohai'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:414:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:213:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:236:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:338:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:327:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:327:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:55:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:23:in `load'
/usr/bin/chef-client:23:in `<main>'
[2014-10-09T17:50:20-05:00] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out
[2014-10-09T17:50:20-05:00] DEBUG: Ohai::Exceptions::DependencyNotFound: Can not find a plugin for dependency linux::network
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:55:in `require_plugin'
(eval):21:in `block in collect_contents'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `instance_eval'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin/versionvi.rb:47:in `block in collect_contents'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin.rb:98:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/dsl/plugin.rb:169:in `safe_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/runner.rb:59:in `run_v6_plugin'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/runner.rb:45:in `run_plugin'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:83:in `block in run_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:82:in `each'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:82:in `run_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-7.4.0/lib/ohai/system.rb:73:in `all_plugins'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:292:in `run_ohai'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:414:in `do_run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:213:in `block in run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `fork'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/client.rb:207:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:236:in `run_chef_client'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:338:in `block in run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:327:in `loop'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application/client.rb:327:in `run_application'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/lib/chef/application.rb:55:in `run'
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4/bin/chef-client:26:in `<top (required)>'
/usr/bin/chef-client:23:in `load'
/usr/bin/chef-client:23:in `<main>'
Chef Client failed. 0 resources updated in 0.66186153 seconds
[2014-10-09T17:50:20-05:00] ERROR: Can not find a plugin for dependency linux::network
[2014-10-09T17:50:20-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
我尝试使用来自 getchef.com 的 .deb 包将我的 chef 从 11.16.0 更新到 11.16.4,但无济于事。
答案1
看来您正在尝试加载一些 Ohai 插件,通常是为了扩充默认 Ohai 插件提供的当前数据。
以下是我要做的事情:
检查任何自定义 Ohai 插件是否依赖于
linux::network
或linux/network
- 因为这是正在查找的命名空间。 中的任何内容可能/etc/chef/ohai_plugins/*.rb
都是不错的选择。检查任何配方代码以查找
linux::network
并读取该属性的来源,因为默认的 Ohai 命名空间是network
并且可以通过 查看sudo ohai network
。
再次强调,这不是默认的 Ohai 命名空间,因此要么是另一个插件试图错误地提供详细信息,要么是配方错误地试图引用它们。前者更有可能。