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


Chronological Thread 
  • From: Daniel Condomitti < >
  • To:
  • Cc: Stuart Cracraft < >
  • Subject: [chef] Re: NoMethodError: undefined method `[]' for nil:NilClass
  • Date: Fri, 8 Aug 2014 10:53:46 -0700

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?






Archive powered by MHonArc 2.6.16.

§