DrbServerNotFound while running debugger on functional tests?

[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
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from
<snip>

/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?

[I originally posted this to the rails list]

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.

···

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

---------- Forwarded message ----------

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

Thanks for your help.

Here's the full stack trace:

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
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in
`require'
from /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1
/lib/action_controller/cgi_process.rb:4
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in
`require'
from /usr/lib/ruby/gems/1.8/gems/actionpack-1.9.1
/lib/action_controller.rb:47
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:200:in
`require'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:175:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:23:in `require'
from /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)

···

On 8/25/05, Eric Hodel <drbrain@segment7.net> wrote:

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

I'm still going to bet you haven't started the DRb service. Depending upon what you shove into the session, you may also need to start it on the client side, which Rails doesn't seem to do for you.

···

On 25 Aug 2005, at 15:38, Kelly Felkins wrote:

Thanks for your help.

Here's the full stack trace:

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'

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

I'm still going to bet you haven't started the DRb service.

You would win that bet.

What's a DRb service? And what's it doing in my ruby/debug/rails functional
test?

I'm going to search around for information on DRb. I assume the debugger is
looking for it for some reason.

-Kelly

···

On 8/25/05, Eric Hodel <drbrain@segment7.net> wrote:

On 25 Aug 2005, at 15:38, Kelly Felkins wrote:

> Thanks for your help.
>
> Here's the full stack trace:
>
> 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'

I'm still going to bet you haven't started the DRb service.
Depending upon what you shove into the session, you may also need to
start it on the client side, which Rails doesn't seem to do for you.

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

Rails has the option of using a DRb server to store session data. The relevant files in Rails give no indication of how to enable this service, though. I suggest checking back with the Rails list.

···

On 25 Aug 2005, at 16:46, Kelly Felkins wrote:

What's a DRb service? And what's it doing in my ruby/debug/rails functional
test?

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