Skip to content

Instantly share code, notes, and snippets.

@cookbooks
Created May 1, 2011 04:26
Show Gist options
  • Save cookbooks/950247 to your computer and use it in GitHub Desktop.
Save cookbooks/950247 to your computer and use it in GitHub Desktop.
Zenoss Chef recipe error
[monitor] [Sat, 30 Apr 2011 21:23:38 -0700] INFO: execute[zendmd] sh(/usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd)
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] ERROR: execute[zendmd] (/srv/chef/file_store/cookbooks/zenoss/providers/zendmd.rb line 15) has had an error
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] ERROR: Running exception handlers
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] FATAL: Saving node information to /srv/chef/file_store/failed-run-data.json
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] ERROR: Exception handlers complete
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] DEBUG: Re-raising exception: Chef::Exceptions::ShellCommandFailed - execute[zendmd] (/srv/chef/file_store/cookbooks/zenoss/providers/zendmd.rb line 15) had an error: Expected process to exit 0, but it exited with 1
---- Begin output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
STDOUT: Unable to open script file '540975.dmd' -- exiting
STDERR:
---- End output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
Ran /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd returned 1
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/shell_out.rb:207:in `invalid!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/shell_out.rb:193:in `error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/provider/execute.rb:58:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource.rb:417:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource.rb:417:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:45:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:76:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/client.rb:312:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/client.rb:160:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:239:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:229:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:229:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application.rb:66:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out
: stdout
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] DEBUG: Chef::Exceptions::ShellCommandFailed: execute[zendmd] (/srv/chef/file_store/cookbooks/zenoss/providers/zendmd.rb line 15) had an error: Expected process to exit 0, but it exited with 1
---- Begin output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
STDOUT: Unable to open script file '540975.dmd' -- exiting
STDERR:
---- End output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
Ran /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd returned 1
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/shell_out.rb:207:in `invalid!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/shell_out.rb:193:in `error!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out!'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/provider/execute.rb:58:in `action_run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource.rb:417:in `send'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource.rb:417:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:45:in `run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:78:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/runner.rb:76:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/client.rb:312:in `converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/client.rb:160:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:239:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:229:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application/client.rb:229:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/../lib/chef/application.rb:66:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0.rc.2/bin/chef-client:26
/usr/bin/chef-client:19:in `load'
/usr/bin/chef-client:19
[monitor] [Sat, 30 Apr 2011 21:23:45 -0700] FATAL: Chef::Exceptions::ShellCommandFailed: execute[zendmd] (/srv/chef/file_store/cookbooks/zenoss/providers/zendmd.rb line 15) had an error: Expected process to exit 0, but it exited with 1
---- Begin output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
STDOUT: Unable to open script file '540975.dmd' -- exiting
STDERR:
---- End output of /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd ----
Ran /usr/local/zenoss/zenoss/bin/zendmd --commit --script=540975.dmd returned 1
[monitor] : stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-chef
chef-client -c client.rb -j dna.json
The output of the command prior to failing is outputted below:
[no output]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment