I’m getting erro bellow after installing Chef Server 12.3.1 on CentOS 6 and after the RPM is installed, I’ve run chef-server-ctl reconfigure and I run chef-server-ctl install opscode-manage I get the following error. Debugging into Chef ruby code seems that some yum commend does not return a status code, which is null but is compared to 0. This is on yum.rb but I don’t know how to fix it.
#Class:0x00000002f1efa8::AddonInstallHandler
Running handlers complete
Chef Client failed. 4 resources updated in 07 minutes 37 seconds
[2015-12-20T15:54:43+00:00] FATAL: Stacktrace dumped to /opt/opscode/embedded/co
okbooks/cache/chef-stacktrace.out
[2015-12-20T15:54:43+00:00] FATAL: NoMethodError: yum_package[opscode-manage] (p
rivate-chef::add_ons_remote line 16) had an error: NoMethodError: undefined meth
od `>’ for nil:NilClass
[root@localhost ~]# chef-server-ctl install chef-manage
chef-manage does not appear to be a valid addon name. Valid names include: chef-ha, chef-sync, opscode-manage, opscode-push-jobs-server, opscode-reporting.
I’ve confirmed that this works on Ubuntu 14.04. So it looks like it’s something in the logic for RHEL platform_family. I do want to say pulling down manage and the rpm -Uvh the pkg, and it works. More updates when I get them.
================================================================================
Error executing action install on resource ‘yum_package[opscode-manage]’
NoMethodError
undefined method `>’ for nil:NilClass
Resource Declaration:
In /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/add_ons_remote.rb
16: package pkg do
17: notifies :create, “ruby_block[addon_install_notification_#{pkg}]”, :immediate
18: case node[‘platform_family’]
19: when 'rhel’
20: options "–enablerepo=chef-stable"
21: end
22: end
Compiled Resource:
Declared in /opt/opscode/embedded/cookbooks/cache/cookbooks/private-chef/recipes/add_ons_remote.rb:16:in `block in from_file’
Think this is due to nothing meaningful being returned from running a shell_out command in the Chef::Provider::Yum class as we’ve seen this a few times now.