# Failing in getaddrinfo in net/http framework

**URL:** <https://www.ruby-forum.com/t/failing-in-getaddrinfo-in-net-http-framework/193618>\
**Category:** Rails\
**Created:** [August 20, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/failing-in-getaddrinfo-in-net-http-framework/193618 "2010-08-20T17:43:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshua](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/48db29/32.png) [@joshua](https://www.ruby-forum.com/u/joshua)\
**Post date:** [August 20, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/failing-in-getaddrinfo-in-net-http-framework/193618/1 "2010-08-20T17:43:04Z")

</div>

Hello,

I’m hitting a frustrating issue with my most recent rails application  
deployment. It’s running on an OSX 10.6.4 server, with ruby 1.8.7  
(2010-08-16 patchlevel 302) [i686-darwin10.4.0], and rails 2.3.8. It’s  
an intermittent issue, but results in the stack trace I’ve posted at the  
bottom of this message.

Oddly, some of the delayed\_job workers will fail at nearly the same time  
that others will be successful.

I’ve found a few other posts around that sound similar, but not exactly  
the same as the thing I’m dealing with:  
[http://www.ruby-forum.com/topic/207745](http://www.ruby-forum.com/topic/207745)

Would any of you with a greater breadth of experience than I have some  
insight as to what might be going on? I’d really like to squish whatever  
bug I’ve stumbled across.

Many thanks,  
Josh

getaddrinfo: nodename nor servname provided, or not known  
/usr/local/lib/ruby/1.8/net/http.rb:560:in `initialize' /usr/local/lib/ruby/1.8/net/http.rb:560:in `open’  
/usr/local/lib/ruby/1.8/net/http.rb:560:in `connect' /usr/local/lib/ruby/1.8/timeout.rb:53:in `timeout’  
/usr/local/lib/ruby/1.8/timeout.rb:101:in `timeout' /usr/local/lib/ruby/1.8/net/http.rb:560:in `connect’  
/usr/local/lib/ruby/1.8/net/http.rb:553:in `do_start' /usr/local/lib/ruby/1.8/net/http.rb:542:in `start’  
/usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/request.rb:82:in  
`wsdl' /usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/wsdl.rb:122:in `to\_s’  
/usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/wsdl.rb:131:in  
`stream' /usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/wsdl.rb:94:in `soap\_actions’  
/usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/wsdl.rb:110:in  
`respond_to?' /usr/local/lib/ruby/gems/1.8/gems/savon-0.7.9/lib/savon/client.rb:92:in `method\_missing’  
/rails/ctsarchiver/releases/20100819205840/lib/mts\_web\_services.rb:32:in  
`retrieve_item' /rails/ctsarchiver/releases/20100819205840/lib/restore_from_tar.rb:15:in `perform’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/backend/base.rb:66:in  
`invoke_job' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:120:in `run’  
/usr/local/lib/ruby/1.8/timeout.rb:67:in `timeout' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:120:in `run’  
/usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:119:in `run’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/worker.rb:180:in  
`reserve_and_run_one_job' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:104:in `work\_off’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/worker.rb:103:in  
`times' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:103:in `work\_off’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/worker.rb:78:in  
`start' /usr/local/lib/ruby/1.8/benchmark.rb:308:in `realtime’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/worker.rb:77:in  
`start' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/worker.rb:74:in `loop’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/worker.rb:74:in  
`start' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:93:in `run’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/command.rb:72:in  
`run_process' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:250:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:250:in  
`start_proc' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/daemonize.rb:199:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/daemonize.rb:199:in  
`call_as_daemon' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:254:in `start\_proc’  
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:294:in  
`start' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/controller.rb:70:in `run’  
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:193:in  
`run_proc' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in `call’  
/usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in  
`catch_exceptions' /usr/local/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:192:in `run\_proc’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/command.rb:71:in  
`run_process' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:65:in `daemonize’  
/usr/local/lib/ruby/gems/1.8/gems/delayed\_job-2.0.3/lib/delayed/command.rb:63:in  
`times' /usr/local/lib/ruby/gems/1.8/gems/delayed_job-2.0.3/lib/delayed/command.rb:63:in `daemonize’  
script/delayed\_job:5
