Skip to content

Instantly share code, notes, and snippets.

@zsiddique
Created November 29, 2012 00:47
Show Gist options
  • Save zsiddique/4165923 to your computer and use it in GitHub Desktop.
Save zsiddique/4165923 to your computer and use it in GitHub Desktop.
sensu_failing_2
[2012-11-29T00:46:48+00:00] INFO: Processing sensu_base_config[sensu] action create (sensu::default line 73)
================================================================================
Error executing action `create` on resource 'sensu_base_config[sensu]'
================================================================================
Chef::Exceptions::ValidationFailed
----------------------------------
Option content must be a kind of Hash! You passed [["redis", {"host"=>"localhost", "port"=>6379}], ["rabbitmq", {"host"=>"localhost", "vhost"=>"/sensu", "password"=>"password", "user"=>"sensu", "port"=>5672}], ["dashboard", {"password"=>"secret", "user"=>"admin", "port"=>8080}], ["api", {"host"=>"localhost", "port"=>4567}]].
Cookbook Trace:
---------------
/srv/chef/file_store/cookbooks/sensu/providers/base_config.rb:7:in `class_from_file'
/srv/chef/file_store/cookbooks/sensu/providers/base_config.rb:6:in `class_from_file'
Resource Declaration:
---------------------
# In /srv/chef/file_store/cookbooks/sensu/recipes/default.rb
73: sensu_base_config node.name
Compiled Resource:
------------------
# Declared in /srv/chef/file_store/cookbooks/sensu/recipes/default.rb:73:in `from_file'
sensu_base_config("sensu") do
cookbook_name "sensu"
retry_delay 2
retries 0
recipe_name "default"
action :create
end
[2012-11-29T00:46:48+00:00] ERROR: Running exception handlers
[2012-11-29T00:46:48+00:00] FATAL: Saving node information to /srv/chef/file_store/failed-run-data.json
[2012-11-29T00:46:48+00:00] ERROR: Exception handlers complete
[2012-11-29T00:46:48+00:00] FATAL: Stacktrace dumped to /srv/chef/file_store/chef-stacktrace.out
[2012-11-29T00:46:48+00:00] FATAL: Chef::Exceptions::ValidationFailed: sensu_base_config[sensu] (sensu::default line 73) had an error: Chef::Exceptions::ValidationFailed: Option content must be a kind of Hash! You passed [["redis", {"host"=>"localhost", "port"=>6379}], ["rabbitmq", {"host"=>"localhost", "vhost"=>"/sensu", "password"=>"password", "user"=>"sensu", "port"=>5672}], ["dashboard", {"password"=>"secret", "user"=>"admin", "port"=>8080}], ["api", {"host"=>"localhost", "port"=>4567}]].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment