Cookbook on WebUI - ERROR: undefined method `close!' for nil:NilClass

Hi,

One of my cookbooks fail to show on the webui with the message:

ERROR: undefined method `close!’ for nil:NilClass

And I found this on the logs:

==> /var/log/chef-server/chef-server-webui/current <==
2013-07-24_20:20:47.87819 NoMethodError: undefined method close!' for nil:NilClass 2013-07-24_20:20:47.87823 {:request_params=> 2013-07-24_20:20:47.87824 {"controller"=>"cookbooks", 2013-07-24_20:20:47.87824 "action"=>"show", 2013-07-24_20:20:47.87825 "cookbook_id"=>"zapi", 2013-07-24_20:20:47.87826 "cb_version"=>"0.0.5"}} 2013-07-24_20:20:47.87827 2013-07-24_20:20:47.87827 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:245:inensure in block (2 levels) in streaming_request’
2013-07-24_20:20:47.87828 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:245:in block (2 levels) in streaming_request' 2013-07-24_20:20:47.87829 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest/rest_request.rb:101:inblock (2 levels) in call’

What’s the source of this error?

Cheers,

Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal

I've run into this as well. I believe I've tracked it down to some new code I added to a template inside an in house cookbook. Haven't had time lately to look more.

Sent from a phone

On Jul 24, 2013, at 1:24 PM, Cassiano Leal cassianoleal@gmail.com wrote:

Hi,

One of my cookbooks fail to show on the webui with the message:

ERROR: undefined method `close!' for nil:NilClass

And I found this on the logs:

==> /var/log/chef-server/chef-server-webui/current <==
2013-07-24_20:20:47.87819 NoMethodError: undefined method close!' for nil:NilClass 2013-07-24_20:20:47.87823 {:request_params=> 2013-07-24_20:20:47.87824 {"controller"=>"cookbooks", 2013-07-24_20:20:47.87824 "action"=>"show", 2013-07-24_20:20:47.87825 "cookbook_id"=>"zapi", 2013-07-24_20:20:47.87826 "cb_version"=>"0.0.5"}} 2013-07-24_20:20:47.87827 2013-07-24_20:20:47.87827 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:245:in ensure in block (2 levels) in streaming_request'
2013-07-24_20:20:47.87828 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest.rb:245:in block (2 levels) in streaming_request' 2013-07-24_20:20:47.87829 /opt/chef-server/embedded/service/gem/ruby/1.9.1/gems/chef-11.4.0/lib/chef/rest/rest_request.rb:101:in block (2 levels) in call’

What’s the source of this error?

Cheers,

Cassiano Leal
http://cassianoleal.com
http://twitter.com/cassianoleal