【问题标题】:Error while opscode-manage-ctl reconfigure?opscode-manage-ctl 重新配置时出错?
【发布时间】:2017-12-20 13:55:45
【问题描述】:

安装 opscode-manage 版本 1.6.2-1 后,我将执行重新配置命令,即 opscode-manage-ctl reconfigure。它显示了错误。有任何想法吗?我正在使用开源厨师服务器 11.1.6-1。 我正在查看文件 /opt/opscode-manage/embedded/cookbooks/opscode-manage/recipes/default.rb。但是为什么会显示此错误?

Recipe: opscode-manage::default
  * private_chef_addon[opscode-manage] action create (up to date)

================================================================================
Recipe Compile Error in /opt/opscode-manage/embedded/cookbooks/opscode-manage/recipes/default.rb
================================================================================


NoMethodError
-------------
undefined method `[]' for nil:NilClass


Cookbook Trace:
---------------
  /opt/opscode-manage/embedded/cookbooks/opscode-manage/recipes/default.rb:28:in `from_file'


Relevant File Content:
----------------------
/opt/opscode-manage/embedded/cookbooks/opscode-manage/recipes/default.rb:

 21:  private_chef_addon 'opscode-manage' do
 22:    action :nothing
 23:  end.run_action(:create)
 24:  
 25:  #
 26:  # We're gonna check if webui1 is enabled, and bail if it is
 27:  # since we run on the same port
 28>> if node['private_chef']['opscode-webui']['enable']
 29:    Chef::Application.fatal!("opscode-webui is enabled on this node, not installing opscode-manage.")
 30:  
 31:  end
 32:  
 33:  include_recipe 'opscode-manage::config'
 34:  include_recipe 'opscode-manage::redis'
 35:  
 36:  class Chef::Resource::RunitService
 37:    include Manage::Helpers




Running handlers:
[2015-01-19T14:38:47+05:30] ERROR: Running exception handlers
Running handlers complete

[2015-01-19T14:38:47+05:30] ERROR: Exception handlers complete
[2015-01-19T14:38:47+05:30] FATAL: Stacktrace dumped to /opt/opscode-manage/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 0 resources updated in 4.674777774 seconds
[2015-01-19T14:38:47+05:30] ERROR: undefined method `[]' for nil:NilClass
[2015-01-19T14:38:47+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

【问题讨论】:

    标签: chef-infra


    【解决方案1】:

    Opscode Manage 与任何种类的 Chef Server 11 都不兼容。你是怎么安装的?

    【讨论】:

    • rpm -ivh opscode-manage-1.6.2-1.el6.x86_64.rpm。那我该怎么办呢?
    • 您必须升级到 Chef Server 12。
    • 厨师服务器 ctl 升级。这个命令是否足以升级我的开源厨师服务器?
    • 不,这是一个相当复杂的过程,超出了这个问题的范围。请咨询万能的谷歌。
    【解决方案2】:

    Debian 9 上安装操作码时遇到了同样的问题。我的厨师服务器版本是12.17.5。和我 通过下载chef-manage installer 包然后安装它来修复它。

    $ wget https://packages.chef.io/files/stable/chef-manage/2.5.8/ubuntu/14.04/chef-manage_2.5.8-1_amd64.deb
    
    $ dpkg -i chef-manage_2.5.8-1_amd64.deb
    
    $ chef-server-ctl reconfigure
    

    希望这对某人有所帮助...!

    【讨论】:

      猜你喜欢
      • 2017-04-24
      • 1970-01-01
      • 2019-09-22
      • 1970-01-01
      • 1970-01-01
      • 2018-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多