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:inopen’
/usr/local/lib/ruby/1.8/net/http.rb:560:in connect' /usr/local/lib/ruby/1.8/timeout.rb:53:intimeout’
/usr/local/lib/ruby/1.8/timeout.rb:101:in timeout' /usr/local/lib/ruby/1.8/net/http.rb:560:inconnect’
/usr/local/lib/ruby/1.8/net/http.rb:553:in do_start' /usr/local/lib/ruby/1.8/net/http.rb:542:instart’
/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:into_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:insoap_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:inmethod_missing’
/rails/ctsarchiver/releases/20100819205840/lib/mts_web_services.rb:32:in
retrieve_item' /rails/ctsarchiver/releases/20100819205840/lib/restore_from_tar.rb:15:inperform’
/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:inrun’
/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:inrun’
/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:inrun’
/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:inwork_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:inwork_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:inrealtime’
/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:inloop’
/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:inrun’
/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:incall’
/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:incall’
/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:instart_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:inrun’
/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:incall’
/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:inrun_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:indaemonize’
/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:indaemonize’
script/delayed_job:5

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs