[Mongrel] upload_progress and DRb.start_service crashes

Jonathan del Strother maillist at steelskies.com
Thu Sep 28 13:06:19 EDT 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2114 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/mongrel-users/attachments/20060928/b1b7c530/attachment.bin 


More information about the Mongrel-users mailing list