[Mongrel] upload_progress and DRb.start_service crashes

Rick Olson technoweenie at gmail.com
Thu Sep 28 14:57:41 EDT 2006


On 9/28/06, Jonathan del Strother <maillist at steelskies.com> wrote:
> Whenever I tried to start mongrel_rails with the upload progress
> script, it would die with the following error:
>
> /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:
> No address associated with nodename (SocketError)
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in
> `open_server_inaddr_any'
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'
>          from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
>          from /usr/local/lib/ruby/gems/1.8/gems/
> mongrel_upload_progress-0.2/lib/mongrel_upload_progress/init.rb:13:in
> `initialize'
>          from /usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.1/lib/
> gem_plugin.rb:163:in `create'
>           ... 8 levels...
>          from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.5/bin/
> mongrel_rails:82:in `run'
>          from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.5/lib/
> mongrel/command.rb:211:in `run'
>          from /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.5/bin/
> mongrel_rails:234
>          from /usr/local/bin/mongrel_rails:18
>
>
> I fixed this by changing init.rb in mongrel_upload_progress - line 13
> needs to supply a uri :
>
>        DRb.start_service("druby://localhost:0")
>
>
> I suspect this is actually a bug in drb - the default uri probably
> shouldn't crash the process.  And why isn't everyone seeing this
> problem?
>
>
> Jon

Is that even needed?  I'm not sure why that's there, since mongrel is
acting as the client.  The only line that should be needed is
DRbObject.new(nil, options[:drb]).  I'm using this right now though
and haven't had issues.


-- 
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com


More information about the Mongrel-users mailing list