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


#1

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 daniel@condomitti.com 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?