For Programmers: Free Programming Magazines  


Home > Archive > Ruby > August 2005 > Re: DrbServerNotFound while running debugger on functional tests?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: DrbServerNotFound while running debugger on functional tests?
Eric Hodel

2005-08-28, 6:59 pm


On 25 Aug 2005, at 14:22, Kelly Felkins wrote:

> [I originally posted this to the rails list]
>
> ---------- Forwarded message ----------
> From: Kelly Felkins <railsinator@gmail.com>
> Date: Aug 25, 2005 8:40 AM
> Subject: DrbServerNotFound while running debugger on functional tests?
> To: rails@lists.rubyonrails.org
>
> If I run one of my functional tests without the debugger, it runs to
> completion fine.
>
> If I run the same test with the debugger, then type 'continue', it
> fails
> with this error:
>
> kellyf@sb61g2:~/dev/rl$ ruby -r debug
> test/functional/tasks_controller_test.rb
> Debug.rb
> Emacs support available.
>
> test/functional/tasks_controller_test.rb:1:require File.dirname
> (__FILE__) +
> '/../test_helper'
> (rdb:1) c
> /usr/lib/ruby/1.8/drb/drb.rb:1648: `DRb::DRbServerNotFound'
> (DRb::DRbServerNotFound)
> from /usr/lib/ruby/1.8/drb/drb.rb:1041:in `initialize'
> from /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/
> action_controller/session/drb_store.rb:8


That line is:
@@session_data = DRbObject.new(nil, 'druby://localhost:9192')

Do you have a druby server listening there?

> from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require'
> from
> <snip>

^^^^

What was snipped?

> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/
> dependencies.rb:200:in
> `require'
> from /home/kellyf/dev/rl/config/environment.rb:52
> from ./test/functional/../test_helper.rb:5
> from test/functional/tasks_controller_test.rb:1
> /usr/lib/ruby/1.8/drb/drb.rb:1648: raise DRbServerNotFound unless
> server
> (rdb:1) q
>
> Any suggestions?


A complete stack trace will help.

--
Eric Hodel - drbrain@segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com