Forum: Ruby on Rails breakpointer socket errors?

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.
3accfb92a7a47de5a84e71da69d57210?d=identicon&s=25 Leah Cunningham (heinous)
on 2006-03-20 23:51
I'm not sure what has changed that could have caused this, but lately,
I'm unable to run the script/breakpointer script with my application.
The application is just loaded up as webrick like:

=> Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-03-20 12:42:48] INFO  WEBrick 1.3.1
[2006-03-20 12:42:48] INFO  ruby 1.8.4 (2005-12-24) [i386-linux]
[2006-03-20 12:42:48] INFO  WEBrick::HTTPServer#start: pid=5864
port=3000

And running script/breakpointer:

/usr/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo': getaddrinfo: Name or
service not known (SocketError)
        from /usr/lib/ruby/1.8/drb/drb.rb:837:in
`open_server_inaddr_any'
        from /usr/lib/ruby/1.8/drb/drb.rb:860:in `open_server'
        from /usr/lib/ruby/1.8/drb/drb.rb:756:in `open_server'
        from /usr/lib/ruby/1.8/drb/drb.rb:754:in `open_server'
        from /usr/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'
        from /usr/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint_client.rb:146
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/breakpoint_client.rb:145
        from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/breakpointer.rb:1
        from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
        from script/breakpointer:3

Any clues where to start looking for what is wrong?  I get a connection
refused trying to just telnet to the 42531 port on localhost.
F641ba2e0fc906fb77d74b52cf59d187?d=identicon&s=25 Doug Dupory (doug)
on 2006-03-21 03:09
> => Rails application started on http://0.0.0.0:3000

0.0.0.0? you may like to check your /etc/hosts if on a *nix. Things tend
to go better with the followings in it...

[user@localhost]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
Eea7ad39737b0dbf3de38874e0a6c7d8?d=identicon&s=25 Justin Forder (Guest)
on 2006-03-21 05:32
(Received via mailing list)
Doug Dupory wrote:
>> => Rails application started on http://0.0.0.0:3000
>
> 0.0.0.0? you may like to check your /etc/hosts if on a *nix.

IIRC 0.0.0.0 tells the server to listen on all interfaces.

It doesn't mean that you point your browser at 0.0.0.0 - you still use
localhost, 127.0.0.1, or the real IP address of the machine in your URL.

regards

   Justin
This topic is locked and can not be replied to.