Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2013 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4708294 to your computer and use it in GitHub Desktop.
Save anonymous/4708294 to your computer and use it in GitHub Desktop.
chef 11 error
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://localhost:8000/_status ----
STDOUT:
STDERR:
---- End output of curl -sf http://localhost:8000/_status ----
Ran curl -sf http://localhost:8000/_status returned 22
Resource Declaration:
---------------------
# In /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb
21: execute "verify-system-status" do
22: command "curl -sf http://localhost:8000/_status"
23: retries 20
24: not_if { File.exists?(bootstrap_status_file) }
25: end
26:
Compiled Resource:
------------------
# Declared in /opt/chef-server/embedded/cookbooks/chef-server/recipes/bootstrap.rb:21:in `from_file'
execute("verify-system-status") do
action "run"
retries 0
retry_delay 2
command "curl -sf http://localhost:8000/_status"
backup 5
returns 0
cookbook_name :"chef-server"
recipe_name "bootstrap"
not_if { #code block }
end
[2013-02-04T09:45:48-08:00] ERROR: Running exception handlers
[2013-02-04T09:45:48-08:00] ERROR: Exception handlers complete
Chef Client failed. 8 resources updated
[2013-02-04T09:45:48-08:00] FATAL: Stacktrace dumped to /opt/chef-server/embedded/cookbooks/cache/chef-stacktrace.out
[2013-02-04T09:45:48-08:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[verify-system-status] (chef-server::bootstrap line 21) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '22'
---- Begin output of curl -sf http://localhost:8000/_status ----
STDOUT:
STDERR:
---- End output of curl -sf http://localhost:8000/_status ----
Ran curl -sf http://localhost:8000/_status returned 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment