Christian Neuhaus
2006-Feb-17 12:03 UTC
[Rails] HELP: Strange problem with breakpointer - stopped working
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 -- Posted via http://www.ruby-forum.com/.
Rick Bradley
2006-Feb-17 14:39 UTC
[Rails] HELP: Strange problem with breakpointer - stopped working
* Christian Neuhaus (chris_neuhaus@yahoo.com) [060217 07:06]:> 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 > > 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''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.
Christian Neuhaus
2006-Feb-17 20:28 UTC
[Rails] Re: HELP: Strange problem with breakpointer - stopped workin
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 -- Posted via http://www.ruby-forum.com/.