0

Anyone have any luck installing graphite cookbook? I have tried opscode community one and also latest heavywater one but no luck e.g. heavywater gives the following exception when I try running it:

FATAL: Chef::Exceptions::ResourceNotFound: resource template[/opt/graphite/conf/storage-schemas.conf] is configured to notify resource runit_service[carbon-cache] with action restart, but runit_service[carbon-cache] cannot be found in the resource collection. template[/opt/graphite/conf/storage-schemas.conf] is defined in /root/monitoring/cookbooks/graphite/recipes/carbon_cache.rb:28:in `from_file'
sethvargo
  • 26,739
  • 10
  • 86
  • 156
Noel
  • 5,037
  • 9
  • 46
  • 69
  • 1
    Did you try other Graphite cookbooks? Shameless self-plug: https://github.com/cmur2/chef-graphite - I wrote my own for more flexible configuration and understanding. – cmur2 Oct 26 '13 at 21:56
  • Cmur2 I am hoping to use the community cookbook. This wil ensure maintainability for me when the community cookbook gets updated – Noel Oct 27 '13 at 07:25
  • Good reason, could you give more details about e.g. which graphite related node properties you are using etc and a more complete error message with stack trace plz? – cmur2 Oct 27 '13 at 11:43
  • Updated question with relevant exception details – Noel Oct 27 '13 at 13:32
  • 1
    Are you using *runit* to manage your OS services? At least [the cookbook](https://github.com/hw-cookbooks/graphite/blob/master/recipes/carbon_cache.rb#L20) assumes this and does not find runit afterwards - maybe you should change `node['graphite']['carbon']['service_type']` to reflect your preferences. – cmur2 Oct 27 '13 at 19:14
  • Did you find a solution to this problem? It's okay to answer your own question. Please don't forget to mark an answer as correct! :) – sethvargo Jan 02 '14 at 23:15

2 Answers2

0

Most probably you don't have carbon-cache.py in the default location /opt/graphite/bin/carbon-cache.py.

erbdex
  • 1,899
  • 3
  • 22
  • 40
0

My problem was using the wrong cookbook version.

Needed to use an older version of the runit cookbook that was available at the time the graphite cookbook version was created.

I was using the latest version of runit that had moved on.

Don't know how people manage cookbook versioning, but I would have thought the appropriate versions of the dependent cookbook would be specified

Noel
  • 5,037
  • 9
  • 46
  • 69