Things I did, step by step:
wget https://packages.chef.io/stable/ubuntu/14.04/chef-server-core_12.8.0-1_amd64.deb
wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.17.17-1_amd64.deb
sudo dpkg -i chef*
- Wait for them to install
- 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 methodsuccess?
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:inrun_chef
from /opt/opscode/embedded/service/omnibus-ctl/chef-server-ctl:222:inreconfigure
from /opt/opscode/embedded/lib/ruby/gems/2.1.0/gems/omnibus-ctl-0.5.0/lib/omnibus-ctl.rb:736:inrun
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