- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Problem with remote_file downloading?
- Date: Wed, 8 Sep 2010 08:32:22 -0700
>
>
If i create the directory it works. The bug here is that in attempting to
>
work around one problem in net/http chef has hidden any number of other
>
possible problems.
>
Chef only rescues NoMethodError and only re-raises it as
Errno::ECONNREFUSED if the error message matches "undefined method
`closed?' for nil:NilClass"
http://github.com/opscode/chef/blob/1306d20e7f8fd64b069dbcf213f6230df4c67fae/chef/lib/chef/rest/rest_request.rb#L76-86
You can see in the original gist that this is actually the error that
was raised, since the original error is logged to debug. The
backtrace there also shows that this error was raised from net/http.rb
line 1060, which is consistent with the net/http bug chef is papering
over.
So I'm still quite confused how remote file to a directory that
doesn't exist could cause this.
Dan DeLeo
Archive powered by MHonArc 2.6.16.