Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Sends report twice to slack #2

Closed
nirbhabbarat opened this issue May 19, 2015 · 1 comment
Closed

Sends report twice to slack #2

nirbhabbarat opened this issue May 19, 2015 · 1 comment

Comments

@nirbhabbarat
Copy link

Running handlers:
[2015-05-19T02:05:47+00:00] ERROR: Running exception handlers
[2015-05-19T02:05:47+00:00] WARN: Sending report to Slack webhook https://hooks.slack.com/services/XXXX/XXXX/XXXXXXXXXXXXXXXX
[2015-05-19T02:05:47+00:00] WARN: Sending report to Slack webhook https://hooks.slack.com/services/XXXX/XXXX/XXXXXXXXXXXXXXXX

  • Chef::Handler::Slack
    Running handlers complete
    [2015-05-19T02:05:47+00:00] ERROR: Exception handlers complete
    [2015-05-19T02:05:47+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
    Chef Client failed. 3 resources updated in 10.692194779 seconds
    [2015-05-19T02:05:48+00:00] ERROR: template[/etc/haproxy/conf.d/default.cfg](haproxy::default line 26) had an error: Chef::Exceptions::FileNotFound: Cookbook 'haproxy' (0.1.0) does not contain a file at any of these locations:
    templates/centos-6.6/defaults.erb
    templates/centos/defaults.erb
    templates/default/defaults.erb
    templates/defaults.erb

haproxy is intentionally broken to test, please ignore that!

@nirbhabbarat
Copy link
Author

Not a bug,

This happened cause of both enabled, dumb mistake
default_unless['chef_client']['handler']['slack']['webhooks']['name'] = ['monitoring']
default['chef_client']['handler']['slack']['webhooks']['name'].push('monitoring')

martinb3 pushed a commit that referenced this issue Sep 7, 2018
modified to create handlers directory
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant