- From: <
>
- To:
- Subject: [chef] Chef server install on RHEL 6
- Date: Mon, 20 Oct 2014 22:52:20 -0700 (PDT)
Hi everyone,
I run into the following issue when executing chef-server-ctl reconfigure. Not
able to pin point the error. This is on chef-server-11.1.5-1.el6.x86_64.rpm
Appreciate your time and help.
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',
{timeout,
{gen_server,call,
['chef_index_queue/chef',
{publish,<<"vnode-768">>,
<<"{\"action\":\"add\",\"payload\":{\"type\":\"client\",\"id\":\"0000000000001795ff1ef97d5f050ad9\",\"database\":\"chef_00000000000000000000000000000000\",\"item\":{\"name\":\"chef-validator\",\"validator\":true,\"admin\":false,\"public_key\":\"-----BEGIN
PUBLIC
KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvfmVbdcEW22655hhfr5e\\nsHdn4rgkr3NLGS17Fc4sERnOH6IcE9a8QjAd\\/8VhDbLkc2kODZs1NvG05qI6\\/2ck\\n\\/99U+bJYEmQHTyp\\/fKffh0wRMZNapi7yrA9uIO6xs9KXN+jJ18O07RlEsivs8AVv\\nEIN7p+hM7v0oJJKtvRHItmtJX+s1PJmQDBf5qzH\\/V4KRE1Ukw8ogdfMJYnhtprfZ\\no8KknHV6ul5H7qxcUTRiLvdk1go\\/n4zwrRmaj4qLdEEN1QsO0c8f04I1DY7Hj77A\\nclU4OYxb8xIkXe+Y05MNlxg7MuBmf9BO7d8selaaAADrRU5xND4wbZN9c9w0zt1g\\nGQIDAQAB\\n-----END
PUBLIC KEY-----\\n\"},\"enqueued_at\":1413870657}}">>,
[]}]}}}}
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
guard_interpreter :default
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
Running handlers:
[2014-10-21T11:21:02+05:30] ERROR: Running exception handlers
Running handlers complete
[2014-10-21T11:21:02+05:30] ERROR: Exception handlers complete
[2014-10-21T11:21:02+05:30] FATAL: Stacktrace dumped to
/opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
Chef Client failed. 12 resources updated in 16.203605422 seconds
[2014-10-21T11:21:02+05:30] ERROR: execute[boostrap-chef-server]
(chef-server::bootstrap line 30) had an error:
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',
{timeout,
{gen_server,call,
['chef_index_queue/chef',
{publish,<<"vnode-768">>,
<<"{\"action\":\"add\",\"payload\":{\"type\":\"client\",\"id\":\"0000000000001795ff1ef97d5f050ad9\",\"database\":\"chef_00000000000000000000000000000000\",\"item\":{\"name\":\"chef-validator\",\"validator\":true,\"admin\":false,\"public_key\":\"-----BEGIN
PUBLIC
KEY-----\\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvfmVbdcEW22655hhfr5e\\nsHdn4rgkr3NLGS17Fc4sERnOH6IcE9a8QjAd\\/8VhDbLkc2kODZs1NvG05qI6\\/2ck\\n\\/99U+bJYEmQHTyp\\/fKffh0wRMZNapi7yrA9uIO6xs9KXN+jJ18O07RlEsivs8AVv\\nEIN7p+hM7v0oJJKtvRHItmtJX+s1PJmQDBf5qzH\\/V4KRE1Ukw8ogdfMJYnhtprfZ\\no8KknHV6ul5H7qxcUTRiLvdk1go\\/n4zwrRmaj4qLdEEN1QsO0c8f04I1DY7Hj77A\\nclU4OYxb8xIkXe+Y05MNlxg7MuBmf9BO7d8selaaAADrRU5xND4wbZN9c9w0zt1g\\nGQIDAQAB\\n-----END
PUBLIC KEY-----\\n\"},\"enqueued_at\":1413870657}}">>,
[]}]}}}}
STDERR:
---- End output of bin/bootstrap-chef-server ----
Ran bin/bootstrap-chef-server returned 2
[2014-10-21T11:21:02+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef
run process exited unsuccessfully (exit code 1)
Thanks,
Vikas
- [chef] Chef server install on RHEL 6, vikas.roonwal, 10/20/2014
Archive powered by MHonArc 2.6.16.