Forum: Ruby on Rails HELP: Strange problem with breakpointer - stopped working

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C591df8c5b86e0ff3a93ae55d161d002?d=identicon&s=25 Christian Neuhaus (cneuhaus)
on 2006-02-17 13:03
Hello,
I am in the middle of my first ROR project and suddently the
breakpointer script (./script/breakpointer) does allways return the
error listed below.

All time before it was working without problems - but the funny think, I
did not change anything on the system (despite downloading the Suse
Security Patches).

I am running:
Suse 9.3
Rails 1.00
Ruby 1.8.3


Please help, if you have any idea.
Thanks
  Christian

Error log from start breakpointer ./script/breakpointer (returned
immedeatly after start):
/usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:
Name or service not known (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/rails-1.0.0/lib/breakpoint_client.rb:146
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint_client.rb:145
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/breakpointer.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
from ./breakpointer:3
A44d5abad6e86cff4e34d9f0839535c9?d=identicon&s=25 Rick Bradley (Guest)
on 2006-02-17 15:40
(Received via mailing list)
* Christian Neuhaus (chris_neuhaus@yahoo.com) [060217 07:06]:
> immedeatly after start):
> /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:
> Name or service not known (SocketError)
> from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'

Looks like a DNS lookup problem to me (though I wouldn't expect the DRb
lib to need to do a DNS lookup for what should be a localhost
connection).  I also grepped and googled for "immedeatly" and didn't see
anything matching.

Rick
--
 http://www.rickbradley.com    MUPRN: 519
                       |  for nobody but
   random email haiku  |  itself when applauding the
                       |  Berman anti-P2P bill.
C591df8c5b86e0ff3a93ae55d161d002?d=identicon&s=25 Christian Neuhaus (cneuhaus)
on 2006-02-17 21:28
Rick Bradley wrote:
> * Christian Neuhaus (chris_neuhaus@yahoo.com) [060217 07:06]:
>> immedeatly after start):
>> /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo:
>> Name or service not known (SocketError)
>> from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'
>
> Looks like a DNS lookup problem to me (though I wouldn't expect the DRb
> lib to need to do a DNS lookup for what should be a localhost
> connection).  I also grepped and googled for "immedeatly" and didn't see
> anything matching.
>
> Rick
> --
>  http://www.rickbradley.com    MUPRN: 519
>                        |  for nobody but
>    random email haiku  |  itself when applauding the
>                        |  Berman anti-P2P bill.

Hi,
thank you for your tip. My etc/hosts looks like:

127.0.0.1       localhost

So I cant see the problem.

I think the problem is related to the ruby version. I checked the
breakpointer script:
DRb.start_service()
-> without parameter (as it is called in breakpointer) does not work for
Ruby 1.8.4 and Ruby 1.8.3 (works only with 1.8.2) -> this will return
the error above.

If the uri is named and breakpointer is started with
./script/breakpointer -c  druby://localhost:12345
it will work.
Christian
This topic is locked and can not be replied to.