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
server_name
. (And so if your system can't resolve properly it's own host name, this will fail also) – Tensibaisystem()
in omnibus-ctl.rb just return nil or something. – nikkey2x2dig fqdn
properly resolve to something ? Are you runningchef-server-ctl
as root ? – Tensibaisudo chef-server-ctl reconfigure
it has to be run as root, as you're using sudo for the package install I bet you're not using it for the chef-server-ctl call, and obvisouly it fails writing at some places on the system. – Tensibai