# Installing Chef on Ubuntu - opscode-reporting-ctl: command not found

**URL:** <https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475>\
**Category:** Chef Infra (archive)\
**Created:** [September 21, 2016, 5:26pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475 "2016-09-21T17:26:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 21, 2016, 5:26pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/1 "2016-09-21T17:26:33Z")

</div>

Hello Everyone,

I am following along with the beginner tutorials and I am attempting to stand up a virtualbox Ubuntu 14.04.01 Chef Server.

When I get to the part the asks us to run “sudo opscode-reporting-ctl reconfigure”

I get the following error:

sudo: opscode-reporting-ctl: command not found.

On the server I have ran the following commands:

1. curl -L [https://omnitruck.chef.io/install.sh](https://omnitruck.chef.io/install.sh) | sudo bash -s – -P chef-server

2. sudo nano /etc/opscode/chef-server.rb

Setup the config file in step 2…

1. sudo chef-server-ctl reconfigure

Any help??

---

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 22, 2016, 3:09pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/2 "2016-09-22T15:09:30Z")

</div>

Has anyone experienced this problem?.. Kind of at a loss here. I build the server twice following the basic tutorials and still having the same issue.

---

<div class="post-metadata">

**Author:** ![mkeisler](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/mkeisler/32/1203_2.png) [@mkeisler](https://discourse.chef.io/u/mkeisler)\
**Post date:** [September 22, 2016, 3:27pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/3 "2016-09-22T15:27:27Z")

</div>

Can you provide a link to the tutorial that you are following?

---

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 22, 2016, 3:28pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/4 "2016-09-22T15:28:31Z")

</div>

Sure! This is the tutorial:

[https://learn.chef.io/install-and-manage-your-own-chef-server/linux/install-chef-server/install-chef-server-using-your-hardware/#step1](https://learn.chef.io/install-and-manage-your-own-chef-server/linux/install-chef-server/install-chef-server-using-your-hardware/#step1)

I run into trouble on the last part of Step 5 when installing the reporting feature…

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [September 22, 2016, 4:01pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/5 "2016-09-22T16:01:20Z")

</div>

Did you run `sudo chef-server-ctl install opscode-reporting` ? Did it fail?

---

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 22, 2016, 4:31pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/6 "2016-09-22T16:31:25Z")

</div>

> [@kallistec](#):
>
> chef-server-ctl install opscode-reporting

Ok it looks like it fails..

## 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:0x000000072d3848::AddonInstallHandler  
Running handlers complete  
Chef Client failed. 0 resources updated in 02 seconds  
[2016-09-22T11:14:26-04:00] FATAL: Stacktrace dumped to /var/opt/opscode/local-mode-cache/chef-stacktrace.out  
[2016-09-22T11:14:26-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report  
[2016-09-22T11:14:26-04:00] FATAL: NoMethodError: undefined method `url' for :Array

This is the log file:

paulh@ChefServer:~$ sudo cat /var/opt/opscode/local-mode-cache/chef-stacktrace.out  
Generated at 2016-09-22 11:10:27 -0400  
NoMethodError: undefined method `url' for []:Array /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'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/mixin/from\_file.rb:30:in `instance_eval' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/mixin/from_file.rb:30:in `from\_file'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/cookbook\_version.rb:233:in `load_recipe' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run_context.rb:354:in `load\_recipe'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run\_context/cookbook\_compiler.rb:140:in `block in compile_recipes' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run_context/cookbook_compiler.rb:138:in `each'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run\_context/cookbook\_compiler.rb:138:in `compile_recipes' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run_context/cookbook_compiler.rb:75:in `compile'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/run\_context.rb:176:in `load' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/policy_builder/expand_node_object.rb:97:in `setup\_run\_context'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/client.rb:510:in `setup_run_context' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/client.rb:280:in `run'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application.rb:268:in `run_with_graceful_exit_option' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application.rb:244:in `block in run\_chef\_client'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/local\_mode.rb:44:in `with_server_connectivity' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application.rb:227:in `run\_chef\_client'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application/client.rb:419:in `run_application' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/lib/chef/application.rb:59:in `run'  
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.19/bin/chef-client:26:in `<top (required)>' /opt/opscode/embedded/bin/chef-client:23:in `load'  
/opt/opscode/embedded/bin/chef-client:23:in `'paulh@ChefServer:~$

---

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 24, 2016, 11:13pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/7 "2016-09-24T23:13:39Z")

</div>

I believe I fixed one error. I hadn’t removed AppArmor. I have uninstall apparmor and started over, but now I am running into the following error when I run the “chef-server-ctl install opscode-reporting” command:

Recipe Compile Error in /var/opt/opscode/local-mode-cache/cookbooks/private-chef/recipes/add\_ons\_wrapper.rb

Has anyone encountered this error?

---

<div class="post-metadata">

**Author:** ![hillbro](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hillbro](https://discourse.chef.io/u/hillbro)\
**Post date:** [September 26, 2016, 11:59pm UTC](https://discourse.chef.io/t/installing-chef-on-ubuntu-opscode-reporting-ctl-command-not-found/9475/8 "2016-09-26T23:59:13Z")

</div>

I found a work-around. I needed to download the \*.deb package for opscode-reporting-ctl from this site and install it that way:

[https://downloads.chef.io/reporting/ubuntu/](https://downloads.chef.io/reporting/ubuntu/)

Now I am able to add the reporting feature and reconfigure it. Hopes this helps someone else.

Paul
