[chef] Re: Re: Chef v11 fails on Centos 6.4


Chronological Thread 
  • From: Lunixer < >
  • To:
  • Subject: [chef] Re: Re: Chef v11 fails on Centos 6.4
  • Date: Fri, 3 May 2013 10:15:31 -0700

Below is the trimmed installation output.
Basically the problem occurs at the end of the process.
The status command at the end of this email shows several PIDs running.
 


[....snip...]
 * ruby_block[supervise_erchef_sleep] action run
    - execute the ruby block supervise_erchef_sleep

  * service[erchef] action nothing (up to date)
  * execute[/opt/chef-server/bin/chef-server-ctl start erchef] action run
    - execute /opt/chef-server/bin/chef-server-ctl start erchef

Recipe: chef-server::bootstrap
  * execute[verify-system-status] action run
================================================================================
Error executing action `run` on resource 'execute[verify-system-status]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '22'
---- Begin output of curl -sf http://127.0.0.1:8000/_status ----
STDOUT:
STDERR:
---- End output of curl -sf http://127.0.0.1:8000/_status ----
Ran curl -sf http://127.0.0.1:8000/_status returned 22


Resource Declaration:
---------------------
# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb

 24: execute "verify-system-status" do
 25:   command "curl -sf #{erchef_status_url}"
 26:   retries 20
 27:   not_if { File.exists?(bootstrap_status_file) }
 28: end
 29:

Compiled Resource:
------------------
# Declared in /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb:24:in `from_file'

execute("verify-system-status") do
  action "run"
  retries 0
  retry_delay 2
  command "curl -sf http://127.0.0.1:8000/_status"
  backup 5
  returns 0
  cookbook_name :"chef-server"
  recipe_name "bootstrap"
  not_if { #code block }
end

[2013-05-02T15:16:55-07:00] ERROR: Running exception handlers
[2013-05-02T15:16:55-07:00] ERROR: Exception handlers complete
Chef Client failed. 123 resources updated
[2013-05-02T15:16:55-07:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
[2013-05-02T15:16:55-07:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[verify-system-status] (chef-server::bootstrap line 24) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '22'
---- Begin output of curl -sf http://127.0.0.1:8000/_status ----
STDOUT:
STDERR:
---- End output of curl -sf http://127.0.0.1:8000/_status ----
Ran curl -sf http://127.0.0.1:8000/_status returned 22


0; : ~]# chef-server-ctl status
run: bookshelf: (pid 23190) 740s; run: log: (pid 23189) 740s
run: chef-expander: (pid 23092) 746s; run: log: (pid 23091) 746s
down: chef-solr: 0s, normally up, want up; run: log: (pid 23058) 747s
run: erchef: (pid 23283) 734s; run: log: (pid 23282) 734s
run: postgresql: (pid 22969) 754s; run: log: (pid 22968) 754s
run: rabbitmq: (pid 22689) 765s; run: log: (pid 22688) 765s


-lun


On Thu, May 2, 2013 at 9:22 PM, Steven Danna < " target="_blank"> > wrote:
On 5/2/13 4:26 PM, Lunixer wrote:
> I set up a RHEL 64bit VM and got the Chef v11 rpm and installed it as
> root but there were some errors.
>
> These are two of the lines that stand out.
>
> Error executing action `run` on resource 'execute[verify-system-status]'
> Mixlib::ShellOut::ShellCommandFailed
>
> The test shows a missing file.
>
> ~]# chef-server-ctl test
> /opt/chef-server/embedded/service/chef-pedant/lib/pedant/config.rb:34:in
> `from_argv': Configuration file
> '/var/opt/chef-server/chef-pedant/etc/pedant_config.rb' not found!
> (RuntimeError)
>     from
> /opt/chef-server/embedded/service/chef-pedant/lib/pedant.rb:44:in `setup'
>     from ./bin/chef-pedant:26:in `<main>'
>

This second error is likely simply a consequence of the first since that
file is created after the verify-system-status portion of the reconfigure.

Was there any other output during the chef-server-ctl reconfigure?

Sincerely,

Steven


--
Steven Danna
Systems Engineer, Opscode, Inc
GPG Key: http://stevendanna.github.com/downloads/code/public.key





Archive powered by MHonArc 2.6.16.

§