DRbFire testing fails

I’ve download DRbfire to be able to run DRb through NAT, but when I run
test_drbfire.rb to validate the installation, it shows me this errors:

Loaded suite G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire
Started
FE.E.
Finished in 0.047 seconds.

  1. Failure:
    test_connect_twice(DRbFire::TC_Protocol)
    [G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:93:in
    check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:116:intest_connect_twice’]:
    Exception raised:
    Class: DRb::DRbConnError
    Message: <“drbfire://127.0.0.1:44324 - #<NoMethodError: private method
    `open’ called for nil:NilClass>”>

—Backtrace—
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:736:in open' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:729:ineach’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:729:in open' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1189:ininitialize’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1169:in new' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1169:inopen’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1085:in method_missing' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1107:inwith_friend’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1084:in method_missing' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:95:incheck_communication’
C:/Program Files/ruby/lib/ruby/1.8/timeout.rb:56:in timeout' C:/Program Files/ruby/lib/ruby/1.8/timeout.rb:76:intimeout’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:94:in
check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:93:incheck_communication’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:116:in
`test_connect_twice’


  1. Error:
    test_normal_communication(DRbFire::TC_Protocol):
    Errno::EBADF: Bad file descriptor - bind(2)
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in initialize' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:inopen’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in open_server' C:/Program Files/ruby/lib/ruby/site_ruby/1.8/drb/drbfire.rb:165:inopen_server’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:759:in open_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:ineach’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:in open_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1339:ininitialize’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:in new' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:instart_service’
    G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:84:in
    check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:112:intest_normal_communication’

  2. Error:
    test_ssl_communication(DRbFire::TC_Protocol):
    Errno::EBADF: Bad file descriptor - bind(2)
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in initialize' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:inopen’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in open_server' C:/Program Files/ruby/lib/ruby/site_ruby/1.8/drb/drbfire.rb:165:inopen_server’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:759:in open_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:ineach’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:in open_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1339:ininitialize’
    C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:in new' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:instart_service’
    G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:84:in
    check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:129:intest_ssl_communication’

5 tests, 6 assertions, 1 failures, 2 errors

Any idea about what can be causing the errors? I’ve changed the timeout
values but it still fails, and I find scarce info on internet about
DRbFire itself.

Thanks a lot in advance.

On 8/26/07, Pere V. [email protected] wrote:

I’ve download DRbfire to be able to run DRb through NAT, but
when I run test_drbfire.rb to validate the installation, it
shows me this errors:

There’s a fix for this in Subversion now (it was an issue with the
tests caused by some newer DRb code). My hope is to roll up a new
(gemified) release shortly.

HTH,

On 28 ago, 00:26, “Nathaniel T.” [email protected] wrote:

HTH,


Nathaniel T.
<:((><

Thanks a lot! It works (test_drbfire.rb). Now let’s see if I can make
it work through NAT :slight_smile:

Pere V.

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