[chef] Re: NoMethodError: undefined method `[]' for nil:NilClass


Chronological Thread 
  • From: Stuart Cracraft < >
  • To: Daniel Condomitti < >
  • Cc:
  • Subject: [chef] Re: NoMethodError: undefined method `[]' for nil:NilClass
  • Date: Fri, 08 Aug 2014 18:12:55 +0000 (GMT)

I looked more closely after your great comment and found an included recipe which
referenced rabbitmq. When I removed it and re-chefed, it worked aok.

Thanks for help the go-forward!

Stuart

On Aug 08, 2014, at 10:53 AM, Daniel Condomitti < > wrote:

It means that node.rabbitmq isn’t set. Can you include more information like the entire chef-client error output? I’m guessing you don’t have the rabbitmq cookbook in this node’s runlist.

On Friday, August 8, 2014 at 10:51 AM, Stuart Cracraft wrote:

I am getting this on chef-client of a node:

  FATAL: NoMethodError: undefined method `[]' for nil:NilClass. 

with this pointed out in relevant file content: 

  variables :vhost => node[:rabbitmq][:queue_name]

Any thoughts on what it means and how to approach it?





  • [chef] Re: NoMethodError: undefined method `[]' for nil:NilClass, Stuart Cracraft, 08/08/2014

Archive powered by MHonArc 2.6.16.

§