Hi GuysI am trying to install chef server,i downloaded chef-server-11.0.11-1.el6.x86_64.rpmand installed using rpm -i chef-server-11.0.11-1.el6.x86_64.rpmwent successfully however when i try to reconfigure server. it throws following exception.Recipe: chef-server::bootstrap* execute[verify-system-status] action run- execute curl -sf http://127.0.0.1:8000/_status* 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 2Resource Declaration:---------------------# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb30: execute "boostrap-chef-server" do31: command "bin/bootstrap-chef-server"32: cwd erchef_dir33: 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: end38:Compiled Resource:------------------# Declared in /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb:30:in `from_file'execute("boostrap-chef-server") doaction "run"retries 0retry_delay 2command "bin/bootstrap-chef-server"backup 5cwd "/opt/chef-server/embedded/service/erchef"environment {"CHEF_ADMIN_USER"=>"admin", "CHEF_ADMIN_PASS"=>" "}returns 0cookbook_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.outChef Client failed. 9 resources updatedRegards
Jayant Kaushal
Archive powered by MHonArc 2.6.16.