Hi all,I would appreciate your input as to how to find out the root cause of this issueI have used the cookbook to bring up a VBox instance and it was error free. But when I switched to aws I got a bunch of error messages.Here is the output from my vagrant up --provider=aws command==> server-1: Cookbook Trace:
==> server-1: ---------------
==> server-1: /tmp/vagrant-chef/01e491f9ded2bc2b076fbb0dd27362df/cookbooks/sensu/providers/service.rb:127:in `block in class_from_file'
==> server-1:
==> server-1:
==> server-1: Resource Declaration:
==> server-1: ---------------------
==> server-1: # In /tmp/vagrant-chef/01e491f9ded2bc2b076fbb0dd27362df/cookbooks/sensu/recipes/client_service.rb
==> server-1:
==> server-1:
==> server-1:
==> server-1: 20: sensu_service "sensu-client" do
==> server-1:
==> server-1: 21: init_style node.sensu.init_style
==> server-1:
==> server-1: 22: action [:enable, :start]
==> server-1:
==> server-1: 23: end
==> server-1:
==> server-1:
==> server-1:
==> server-1: Compiled Resource:
==> server-1: ------------------
==> server-1: # Declared in /tmp/vagrant-chef/01e491f9ded2bc2b076fbb0dd27362df/cookbooks/sensu/recipes/client_service.rb:20:in `from_file'
==> server-1:
==> server-1:
==> server-1:
==> server-1: sensu_service("sensu-client") do
==> server-1:
==> server-1: action [:enable, :start]
==> server-1:
==> server-1: retries 0
==> server-1:
==> server-1: retry_delay 2
==> server-1:
==> server-1: default_guard_interpreter :default
==> server-1:
==> server-1: declared_type :sensu_service
==> server-1:
==> server-1: cookbook_name :sensu
==> server-1:
==> server-1: recipe_name "client_service"
==> server-1:
==> server-1: init_style "sysv"
==> server-1:
==> server-1: service "sensu-client"
==> server-1:
==> server-1: end
==> server-1:
==> server-1:
==> server-1:
==> server-1: [2015-06-02T14:47:32+00:00] INFO: Running queued delayed notifications before re-raising exception
==> server-1: [2015-06-02T14:47:32+00:00] DEBUG: Re-raising exception: Mixlib::ShellOut::ShellCommandFailed - sensu_service[sensu-client] (sensu::client_service line 20) had an error: Mixlib::ShellOut::ShellCommandFailed: service[sensu-client] (/tmp/vagrant-chef/01e491f9ded2bc2b076fbb0dd27362df/cookbooks/sensu/providers/service.rb line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
==> server-1: ---- Begin output of /etc/init.d/sensu-client start ----
==> server-1: STDOUT: * Starting sensu-client
==> server-1: ...fail!
==> server-1: STDERR:
==> server-1: ---- End output of /etc/init.d/sensu-client start ----
I checked the stacktrace file on the host
Generated at 2015-06-02 14:25:01 +0000
Chef::Exceptions::MultipleFailures: Chef::Exceptions::MultipleFailures
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.1/lib/mixlib/shellout.rb:278:in `invalid!'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/mixlib-shellout-2.0.1/lib/mixlib/shellout.rb:265:in `error!'
/opt/chef/embedded/apps/chef/lib/chef/mixin/shell_out.rb:66:in `shell_out_with_systems_locale!'
/opt/chef/embedded/apps/chef/lib/chef/provider/service/init.rb:59:in `start_service'
/opt/chef/embedded/apps/chef/lib/chef/provider/service.rb:90:in `block in action_start'
/opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `call'
/opt/chef/embedded/apps/chef/lib/chef/mixin/why_run.rb:52:in `add_action'
/opt/chef/embedded/apps/chef/lib/chef/provider.rb:165:in `converge_by'
/opt/chef/embedded/apps/chef/lib/chef/provider/service.rb:89:in `action_start'
/opt/chef/embedded/apps/chef/lib/chef/provider.rb:130:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:562:in `run_action'
/tmp/vagrant-chef/8e0050e60a0338c4f18702640d3c2b94/cookbooks/sensu/providers/service.rb:127:in `block in class_from_file'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `instance_eval'
/opt/chef/embedded/apps/chef/lib/chef/provider/lwrp_base.rb:138:in `block in action'
/opt/chef/embedded/apps/chef/lib/chef/provider.rb:134:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/resource.rb:562:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:49:in `run_action'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block (2 levels) in converge'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `each'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:81:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/opt/chef/embedded/apps/chef/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
/opt/chef/embedded/apps/chef/lib/chef/runner.rb:80:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:339:in `block in converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:334:in `catch'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:334:in `converge'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:353:in `converge_and_save'
/opt/chef/embedded/apps/chef/lib/chef/client.rb:457:in `run'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:271:in `block in fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:259:in `fork_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:225:in `block in run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/local_mode.rb:39:in `with_server_connectivity'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:213:in `run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:280:in `block in interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:269:in `loop'
/opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:269:in `interval_run_chef_client'
/opt/chef/embedded/apps/chef/lib/chef/application/solo.rb:247:in `run_application'
/opt/chef/embedded/apps/chef/lib/chef/application.rb:60:in `run'
/opt/chef/embedded/apps/chef/bin/chef-solo:25:in `<top (required)>'
/usr/bin/chef-solo:51:in `load'
Write failed: Broken pipe`<main>'
it does not look particularly helpful at all.
Why sensu client recipe throws the exception?
Cheers
Archive powered by MHonArc 2.6.16.