Unable to install opscode-reporting using 'chef-server-ctl'


#1

Good day,

It is unable to install opscode-reporting using ‘chef-server-ctl’ as follow.

​
sudo chef-server-ctl install opscode-reporting                                                                                                                       [4/9134]
Starting Chef Client, version 12.14.98
resolving cookbooks for run list: ["private-chef::add_ons_wrapper"]
Synchronizing Cookbooks:
  - private-chef (0.1.0)
  - enterprise (0.10.1)
  - apt (2.9.2)
  - yum (3.13.0)
  - openssl (6.0.0)
  - runit (1.6.0)
  - packagecloud (0.2.5)
Installing Cookbook Gems:
Compiling Cookbooks...

================================================================================
Recipe Compile Error in /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb
================================================================================

NoMethodError
-------------
undefined method `url' for []:Array

Cookbook Trace:
---------------
  /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:58:in `block in from_file'
  /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:in `each'
  /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:51:in `from_file'

Relevant File Content:
----------------------
/var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add_ons_wrapper.rb:

 51:    node['private_chef']['addons']['packages'].each do |pkg|
 52:      artifact_info = Mixlib::Install.new(
 53:        channel: :stable,
 54:        product_name: pkg.split(/(chef-|opscode-)(.*)/).last,
 55:        product_version: :latest,
 56:      ).detect_platform.artifact_info
 57:  
 58>>     pkg_file = File.join(addon_path, File.basename(artifact_info.url))
 59:  
 60:      remote_file pkg_file do
 61:        source artifact_info.url
 62:        checksum artifact_info.sha256
 63:      end
 64:    end
 65:  else
 66:    addon_path = node['private_chef']['addons']['path']
 67:  end

Platform:
---------
x86_64-linux
​

Running handlers:
  - #<Class:0x00000006fdb000>::AddonInstallHandler
Running handlers complete
Chef Client failed. 0 resources updated in 35 seconds
[2016-10-13T11:19:35+09:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out
[2016-10-13T11:19:35+09:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-10-13T11:19:35+09:00] FATAL: NoMethodError: undefined method `url' for []:Array

​I was running it on Ubuntu 16.04 and ​the version of chef-server is as follow.

dpkg -l | grep chef
ii chef-manage 2.4.3-1 amd64 The full stack of chef-manage
ii chef-server-core 12.9.1-1 amd64 The full stack of chef-server

​Please help.

Thank you,
Dongwon​