Can't start (reconfigure) Chef-server

Things I did, step by step:

  1. wget https://packages.chef.io/stable/ubuntu/14.04/chef-server-core_12.8.0-1_amd64.deb
  2. wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.17.17-1_amd64.deb
  3. sudo dpkg -i chef*
  4. Wait for them to install
  5. And sudo chef-server-ctl reconfigure gives me

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:479:in remove_old_node_state: undefined method success? for nil:NilClass (NoMethodError)

from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:495:in run_chef

from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:222:in reconfigure

from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:736:in run

from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:237:in <main>

My /etc/opscode/chef-server.rb:

server_name = "IP.ADD.RES.123"

api_fqdn server_name
bookshelf['vip'] =
server_name
nginx['url'] = "http://#{server_name}"

nginx['server_name'] = server_name

(same error even if I leave this empty, or set server_name to 'localhost', 'crti-test-vps' or whatever)

Server is hosted at DigitalOcean and doesn't have a domain name yet.

uname -a:

Linux crti-test-vps 4.4.0-28-generic #47~14.04.1-Ubuntu SMP Fri Jun 24 16:30:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

This is the third one-off report of this I've seen in the last couple of weeks. I think one of the other two involved chef-dk being installed as well. Would you be able to follow the same process without chefdk? If that's not an option, I'd be interested to know if force-reinstalling chef server has an effect?

I'll run some tests in the morning myself as well.

Marc A. Paradise

Chef Software, Inc.From: chef@discoursemail.comSent: September 19, 2016 12:25 PMTo: marc@chef.ioReply-to: chef+c33713d93ef1ef6e95d4080b1b46f34f@discoursemail.comSubject: [chef] Can't start (reconfigure) Chef-server

nikkey2x2

September 19

Things I did, step by step:

  1. wget https://packages.chef.io/stable/ubuntu/14.04/chef-server-core_12.8.0-1_amd64.deb
  2. wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.17.17-1_amd64.deb
  3. sudo dpkg -i chef*
  4. Wait for them to install
  5. And sudo chef-server-ctl reconfigure gives me

/opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:479:in remove_old_node_state: undefined method success? for nil:NilClass (NoMethodError)

from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:495:in <code style="background-color:#f1f1ff;padding:2px 5px">run_chef</code>



from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:222:in <code style="background-color:#f1f1ff;padding:2px 5px">reconfigure</code>



from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:736:in <code style="background-color:#f1f1ff;padding:2px 5px">run</code>



from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:237:in <code style="background-color:#f1f1ff;padding:2px 5px">&lt;main&gt;</code></p>

My /etc/opscode/chef-server.rb:

server_name = "IP.ADD.RES.123"

api_fqdn server_name

bookshelf['vip'] =

server_name

nginx['url'] = "http://#{server_name}"

nginx['server_name'] = server_name

(same error even if I leave this empty, or set server_name to 'localhost', 'crti-test-vps' or whatever)

Server is hosted at DigitalOcean and doesn't have a domain name yet.

uname -a:

Linux crti-test-vps 4.4.0-28-generic #47~14.04.1-Ubuntu SMP Fri Jun 24 16:30:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux


Visit Topic or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.

Following these same steps, I was not able to reproduce this. I’ll keep poking at it and have opened a github issue [1] for tracking.

[1] Error in chef-server-ctl reconfigure · Issue #942 · chef/chef-server · GitHub