Failing in getaddrinfo in net/http framework

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

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