Buenas tardes,
he descargado DRbFire para poder usar DRb a traves de NAT y firewalls.
El problema es que cuando ejecuto ‘test_drbfire.rb’ para validar la
instalacion, me da esta salida:
Loaded suite G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire
Started
FE.E.
Finished in 0.047 seconds.
- 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:in
test_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:in
each’
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:in
initialize’
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:in
open’
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:in
with_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:in
check_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:in
timeout’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:94:in
check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:93:in
check_communication’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:116:in
`test_connect_twice’
-
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:ininitialize' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in
open’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:inopen_server' C:/Program Files/ruby/lib/ruby/site_ruby/1.8/drb/drbfire.rb:165:in
open_server’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:759:inopen_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:in
each’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:inopen_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1339:in
initialize’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:innew' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:in
start_service’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:84:in
check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:112:in
test_normal_communication’ -
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:ininitialize' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:in
open’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:865:inopen_server' C:/Program Files/ruby/lib/ruby/site_ruby/1.8/drb/drbfire.rb:165:in
open_server’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:759:inopen_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:in
each’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:757:inopen_server' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1339:in
initialize’
C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:innew' C:/Program Files/ruby/lib/ruby/1.8/drb/drb.rb:1627:in
start_service’
G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:84:in
check_communication' G:/Projectes/KademliaRuby/lib/drbtesting/test_drbfire.rb:129:in
test_ssl_communication’
5 tests, 6 assertions, 1 failures, 2 errors
Alguna idea de donde puede estar el origen de los errores? O alguna
alternativa para usar DRb a traves de NAT?
Gracias,
Pere V.