I am trying to install chef server,i downloaded chef-server-11.0.11-1.el6.x86_64.rpm
went successfully however when i try to reconfigure server. it throws following exception.
Recipe: chef-server::bootstrap
* execute[verify-system-status] action run
* execute[boostrap-chef-server] action run
================================================================================
Error executing action `run` on resource 'execute[boostrap-chef-server]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of bin/bootstrap-chef-server ----
STDOUT: error creating client <<"chef-validator">>: {badrpc,
{'EXIT',
{undef,
[{chef_object,new_record,
[chef_client,
<<"00000000000000000000000000000000">>,
unset,
{[{<<"name">>,
<<"chef-validator">>},
{<<"validator">>,true},
{<<"admin">>,false},
{<<"public_key">>,
<<"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4pEUA+zngP93INshTMna\nqqf9J/PVsbC19tFgrbyI5b/WgVpgH6o9EgtElVFP1DwmWTAYa2YDCZmX0/obVjMs\n8ZNC2PMkHlEro0TjN+MucnkUMpHk88UYSsK7ByMylOZVGguZ4K1g71yattUBREjc\n7Lk/yy/6Img8Me71y0OIUS3oS7QeD+RHQIgmaTTP9y/NviSEfQOErryrhi9n7qwG\n/uYXpuX2VIqEUqxrR7ePSRh/YPARNeXxse5sh8Yj5FjTphLCSump0e1Q5gGwsHZR\nh0W9ehZk5RAsI5HjJ3CLEvn6XtBX/Ri208qATFrste4v0Nxjvsehp8kuBlaWBXeo\nQwIDAQAB\n-----END PUBLIC KEY-----\n">>}]}],
[]},
{chef_sked,create_from_json,
2,
[{file,"src/chef_sked.erl"},
{line,94}]},
{chef_sked,create_client,4,
[{file,"src/chef_sked.erl"},
{line,46}]},
{rpc,
'-handle_call_call/6-fun-0-',
5,
[{file,"rpc.erl"},
{line,203}]}]}}}
STDERR:
---- End output of bin/bootstrap-chef-server ----
Ran bin/bootstrap-chef-server returned 2
Resource Declaration:
---------------------
# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb
30: execute "boostrap-chef-server" do
31: command "bin/bootstrap-chef-server"
32: cwd erchef_dir
33: not_if { File.exists?(bootstrap_status_file) }
34: environment({ 'CHEF_ADMIN_USER' => node['chef_server']['chef-server-webui']['web_ui_admin_user_name'],
35: 'CHEF_ADMIN_PASS' => node['chef_server']['chef-server-webui']['web_ui_admin_default_password'] })
36: notifies :restart, 'service[erchef]'
37: end
38:
Compiled Resource:
------------------
# Declared in /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb:30:in `from_file'
execute("boostrap-chef-server") do
action "run"
retries 0
retry_delay 2
command "bin/bootstrap-chef-server"
backup 5
cwd "/opt/chef-server/embedded/service/erchef"
environment {"CHEF_ADMIN_USER"=>"admin", "CHEF_ADMIN_PASS"=>"
"}
returns 0
cookbook_name :"chef-server"
recipe_name "bootstrap"
not_if { #code block }
end
[2014-02-24T01:51:26-08:00] ERROR: Running exception handlers
[2014-02-24T01:51:26-08:00] ERROR: Exception handlers complete
[2014-02-24T01:51:26-08:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 9 resources updated