graphite giving error Chef::Exceptions::ResourceNotFound


#1

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags for
graphite password but no encrypted data bag name is specified - fallback to
node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#2

May be graphite cookbook requires obsolete version of runit cookbook?

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags for
graphite password but no encrypted data bag name is specified - fallback to
node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#3

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks use the
latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

May be graphite cookbook requires obsolete version of runit cookbook?
https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags
for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#4

Just rename the LWRP.

But more correct to fix graphite cb to use latest version of runit cb.

2013/10/10 S Ahmed sahmed1020@gmail.com

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks use
the latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

May be graphite cookbook requires obsolete version of runit cookbook?
https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags
for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#5

ok so in the actual graphite cookbook I should reference the renamed one,
ok thanks.

On Wed, Oct 9, 2013 at 5:17 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

Just rename the LWRP.

But more correct to fix graphite cb to use latest version of runit cb.

2013/10/10 S Ahmed sahmed1020@gmail.com

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks use
the latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

May be graphite cookbook requires obsolete version of runit cookbook?
https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags
for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#6

Ok I updated all my cookbooks to the latest ( I had an old runit etc), now
I am seeing this:

[default] Running provisioner: chef_solo…
Generating chef JSON and uploading…
Running chef-solo…
stdin: is not a tty
[2013-10-09T21:40:36+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T21:40:36+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T21:40:36+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T21:40:36+00:00] INFO: Run List expands to [graphite]
[2013-10-09T21:40:36+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T21:40:36+00:00] INFO: Running start handlers
[2013-10-09T21:40:36+00:00] INFO: Start handlers complete.
[2013-10-09T21:40:45+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T21:40:45+00:00] WARN: Missing gem ‘rvm’

================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb

NoMethodError

undefined method `[]’ for nil:NilClass

Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:41:in
`from_file’

Relevant File Content:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:

1: #
2: # Cookbook Name:: graphite
3: # Attributes:: default
4: #
5:
6: default[‘graphite’][‘version’] = "0.9.10"
7: default[‘graphite’][‘password’] = "change_me"
8: default[‘graphite’][‘chef_role’] = "graphite"
9: default[‘graphite’][‘url’] = “graphite”

[2013-10-09T21:40:47+00:00] ERROR: Running exception handlers
[2013-10-09T21:40:47+00:00] ERROR: Exception handlers complete
[2013-10-09T21:40:47+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T21:40:47+00:00] FATAL: NoMethodError: undefined method `[]’ for
nil:NilClass

On Wed, Oct 9, 2013 at 5:21 PM, S Ahmed sahmed1020@gmail.com wrote:

ok so in the actual graphite cookbook I should reference the renamed one,
ok thanks.

On Wed, Oct 9, 2013 at 5:17 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

Just rename the LWRP.

But more correct to fix graphite cb to use latest version of runit cb.

2013/10/10 S Ahmed sahmed1020@gmail.com

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks use
the latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin <akzhan.abdulin@gmail.com

wrote:

May be graphite cookbook requires obsolete version of runit cookbook?
https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data bags
for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#7

I’m using a base install with vagrant, either the cookbook isnt’ stable or
vagrant isn’t as reliable as a new server :slight_smile:

Excited to get graphic up and running, have others gotten this to work with
no glitches?

On Wed, Oct 9, 2013 at 7:45 PM, S Ahmed sahmed1020@gmail.com wrote:

Ok I updated all my cookbooks to the latest ( I had an old runit etc), now
I am seeing this:

[default] Running provisioner: chef_solo…
Generating chef JSON and uploading…
Running chef-solo…
stdin: is not a tty
[2013-10-09T21:40:36+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T21:40:36+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T21:40:36+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T21:40:36+00:00] INFO: Run List expands to [graphite]
[2013-10-09T21:40:36+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T21:40:36+00:00] INFO: Running start handlers
[2013-10-09T21:40:36+00:00] INFO: Start handlers complete.
[2013-10-09T21:40:45+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T21:40:45+00:00] WARN: Missing gem ‘rvm’

================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb

================================================================================

NoMethodError

undefined method `[]’ for nil:NilClass

Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:41:in
`from_file’

Relevant File Content:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:

1: #
2: # Cookbook Name:: graphite
3: # Attributes:: default
4: #
5:
6: default[‘graphite’][‘version’] = "0.9.10"
7: default[‘graphite’][‘password’] = "change_me"
8: default[‘graphite’][‘chef_role’] = "graphite"
9: default[‘graphite’][‘url’] = “graphite”

[2013-10-09T21:40:47+00:00] ERROR: Running exception handlers
[2013-10-09T21:40:47+00:00] ERROR: Exception handlers complete
[2013-10-09T21:40:47+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T21:40:47+00:00] FATAL: NoMethodError: undefined method `[]'
for nil:NilClass

On Wed, Oct 9, 2013 at 5:21 PM, S Ahmed sahmed1020@gmail.com wrote:

ok so in the actual graphite cookbook I should reference the renamed one,
ok thanks.

On Wed, Oct 9, 2013 at 5:17 PM, Akzhan Abdulin akzhan.abdulin@gmail.comwrote:

Just rename the LWRP.

But more correct to fix graphite cb to use latest version of runit cb.

2013/10/10 S Ahmed sahmed1020@gmail.com

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks use
the latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin <
akzhan.abdulin@gmail.com> wrote:

May be graphite cookbook requires obsolete version of runit cookbook?

https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data
bags for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?


#8

Can anyone get this to work? I guess it is just me hehe…

On Thu, Oct 10, 2013 at 11:52 AM, S Ahmed sahmed1020@gmail.com wrote:

I’m using a base install with vagrant, either the cookbook isnt’ stable or
vagrant isn’t as reliable as a new server :slight_smile:

Excited to get graphic up and running, have others gotten this to work
with no glitches?

On Wed, Oct 9, 2013 at 7:45 PM, S Ahmed sahmed1020@gmail.com wrote:

Ok I updated all my cookbooks to the latest ( I had an old runit etc),
now I am seeing this:

[default] Running provisioner: chef_solo…
Generating chef JSON and uploading…
Running chef-solo…
stdin: is not a tty
[2013-10-09T21:40:36+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T21:40:36+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T21:40:36+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T21:40:36+00:00] INFO: Run List expands to [graphite]
[2013-10-09T21:40:36+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T21:40:36+00:00] INFO: Running start handlers
[2013-10-09T21:40:36+00:00] INFO: Start handlers complete.
[2013-10-09T21:40:45+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T21:40:45+00:00] WARN: Missing gem ‘rvm’

================================================================================
Recipe Compile Error in
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb

================================================================================

NoMethodError

undefined method `[]’ for nil:NilClass

Cookbook Trace:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:41:in
`from_file’

Relevant File Content:

/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/attributes/default.rb:

1: #
2: # Cookbook Name:: graphite
3: # Attributes:: default
4: #
5:
6: default[‘graphite’][‘version’] = "0.9.10"
7: default[‘graphite’][‘password’] = "change_me"
8: default[‘graphite’][‘chef_role’] = "graphite"
9: default[‘graphite’][‘url’] = “graphite”

[2013-10-09T21:40:47+00:00] ERROR: Running exception handlers
[2013-10-09T21:40:47+00:00] ERROR: Exception handlers complete
[2013-10-09T21:40:47+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T21:40:47+00:00] FATAL: NoMethodError: undefined method `[]'
for nil:NilClass

On Wed, Oct 9, 2013 at 5:21 PM, S Ahmed sahmed1020@gmail.com wrote:

ok so in the actual graphite cookbook I should reference the renamed
one, ok thanks.

On Wed, Oct 9, 2013 at 5:17 PM, Akzhan Abdulin <akzhan.abdulin@gmail.com

wrote:

Just rename the LWRP.

But more correct to fix graphite cb to use latest version of runit cb.

2013/10/10 S Ahmed sahmed1020@gmail.com

Ok so say I download that in my cookbooks like:

/cookbooks/runit_graphite/

How can I have graphite use this version and all my other cookbooks
use the latest version, is this possible?

On Wed, Oct 9, 2013 at 4:08 PM, Akzhan Abdulin <
akzhan.abdulin@gmail.com> wrote:

May be graphite cookbook requires obsolete version of runit cookbook?

https://github.com/opscode-cookbooks/runit/blob/master/CHANGELOG.md#v100

2013/10/10 S Ahmed sahmed1020@gmail.com

[2013-10-09T20:00:34+00:00] INFO: *** Chef 10.14.2 ***
[2013-10-09T20:00:34+00:00] INFO: Setting the run_list to
[“recipe[graphite]”] from JSON
[2013-10-09T20:00:34+00:00] INFO: Run List is [recipe[graphite]]
[2013-10-09T20:00:34+00:00] INFO: Run List expands to [graphite]
[2013-10-09T20:00:34+00:00] INFO: Starting Chef Run for precise32
[2013-10-09T20:00:34+00:00] INFO: Running start handlers
[2013-10-09T20:00:34+00:00] INFO: Start handlers complete.
[2013-10-09T20:00:35+00:00] INFO: Missing gem ‘mysql’
[2013-10-09T20:00:35+00:00] WARN: Missing gem ‘rvm’
[2013-10-09T20:00:35+00:00] WARN: This recipe uses encrypted data
bags for graphite password but no encrypted data bag name is specified -
fallback to node attribute.
[2013-10-09T20:00:35+00:00] ERROR: Running exception handlers
[2013-10-09T20:00:35+00:00] ERROR: Exception handlers complete
[2013-10-09T20:00:35+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-10-09T20:00:35+00:00] 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
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/graphite/recipes/carbon_cache.rb:28:in
`from_file’

I am using vagrant
preceise32

config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = [“cookbooks”]
chef.add_recipe "graphite"
end

What am I doing wrong here?