Error installing Chef Server 12.3.1 on Ubuntu 14.0.4


Hi all,

After being unsuccessful on playing with Chef on Cent OS, I moved to Ubuntu but when running chef-server-ctl reconfigure, I get the following error:

Generated at 2015-12-20 21:18:18 -0200
Mixlib::ShellOut::ShellCommandFailed: execute[initctl status private-chef-runsvdir] (enterprise::runit_upstart line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
---- Begin output of initctl status private-chef-runsvdir ----
STDERR: initctl: Unknown job: private-chef-runsvdir
---- End output of initctl status private-chef-runsvdir ----
Ran initctl status private-chef-runsvdir returned 1
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.3/lib/mixlib/shellout.rb:289:in invalid!' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.2.3/lib/mixlib/shellout.rb:276:inerror!’
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/shell_out.rb:56:in shell_out!' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/execute.rb:62:inblock in action_run’
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:in call' /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:inadd_action’
/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:175:in `converge_by’

Any ideas?



Hi Daniel,

Does /etc/init/private-chef-runsvdir.conf exist on disk on that machine? If so, you may try rerunning chef-server-ctl reconfigure. If the second reconfigure doesn’t work or if private-chef-runsvdir.conf isn’t on disk, could you run reconfigure again, redirecting the output to a file? If you are comfortable sending the output to the whole list (it may contain sensitive info about your chef-server), you can email it to me directly.




Hi Steven,

The file is there however I still can’t run the chef-server-ctl reconfigure.

I’m attaching the output and the stack trace of the run. It’s just a test
server that I’m playing with.



Unfortunately Discourse does not support attachments at this time. Please either include it inline or via a link to a pastebin site.



Here it goes

chef-server-ctl reconfigure output:

[2015-12-25T19:39:29-02:00] INFO: Started chef-zero at
chefzero://localhost:8889 with repository at /opt/opscode/embedded
One version per cookbook

[2015-12-25T19:39:29-02:00] INFO: *** Chef 12.5.1 ***
[2015-12-25T19:39:29-02:00] INFO: Chef-client pid: 2704


The files got cut, here they are:

Chef-server-ctl reconfigure output:

Stack trace: