[chef] Re: intermittent Errno::ETIMEDOUT: error connecting to chef server


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: intermittent Errno::ETIMEDOUT: error connecting to chef server
  • Date: Tue, 4 Dec 2012 11:32:21 -0800


On Tuesday, December 4, 2012 at 11:26 AM, wrote:

Hi,

I have seen this problem intermittently when creating AWS instances. This
causes the configuration automation very unreliable. Could somebody shed some
clue about this?

thx,

Xianfeng

cache]# more chef-stacktrace.out
Generated at Tue Dec 04 08:19:32 +0000 2012
Errno::ETIMEDOUT: remote_file[omakase-release.rpm] (mspot_omakase::default line
38) had an error: Errno::ETIMEDOUT: Error c
onnecting to
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/provider/remote_file.rb:42:in
`action_create'

You have a remote_file resource that is fetching an RPM from an unreliable server. If you control that server, you should investigate it and fix it. If you do not, you could store the RPM elsewhere, either in the cookbook (though if you store your cookbooks in git, this will be a huge PITA as git accumulates different versions of the RPM over time), or S3 (makes sense because you're already using AWS anyway) or some other file storage service.

-- 
Daniel DeLeo
 




Archive powered by MHonArc 2.6.16.

§