Forum: Ruby on Rails BackgrounDRb start error

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.
Adeel A. (Guest)
on 2009-04-23 04:54
Hi,

I've got a Rails 2.2.2 app and I'm trying to get BackgrounDRb running.
I'm just following the simple example in Advanced Rails Recipes.

I installed BackgrounDRb from Git,
installed the packet and chronic gems,
ran 'rake backgroundrb:setup',
generated a worker,
and then tried to run 'script/backgroundrb start'
but I get:

/vendor/rails/actionpack/lib/action_controller/base.rb:1276: undefined
method `deprecate' for ActionController::Base:Class (NoMethodError)
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
  from
/Users/macmini/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
  from
/Users/macmini/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
  from
/Users/macmini/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
  from
/Users/macmini/Projects/Git/shopseen/vendor/rails/actionpack/lib/action_controller.rb:36
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
  from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
   ... 14 levels...
  from
/Users/macmini/.gem/ruby/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in
`require'
  from
/Users/macmini/Projects/Git/shopseen/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:90:in
`start_bdrb'
  from
/Users/macmini/Projects/Git/shopseen/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:16:in
`start'
  from script/backgroundrb:23

Any suggestions? Also, how do I get the console to spit out the full
trace and not skip 14 levels?

Thanks.
Steve R. (Guest)
on 2009-04-23 09:57
(Received via mailing list)
Doesn't look like a 2.2.2 app. Seems you might be at 2.3.2. As you
have frozen Rails into vendor, you can back up and freeze a 2.2.2
version in its place (assuming you don't depend on any of the cool 2.3
features yet).
Hemant K. (Guest)
on 2009-04-23 11:25
(Received via mailing list)
On Thu, Apr 23, 2009 at 11:27 AM, s.ross <removed_email_address@domain.invalid> 
wrote:

> >
> > /vendor/rails/actionpack/lib/action_controller/base.rb:1276: undefined
> > `require'
> > action_controller.rb:36
> > `require'
> > Any suggestions? Also, how do I get the console to spit out the full
> > trace and not skip 14 levels?
> >
>

Yup the problem was because of vendored rails gem. You can pull again
from
backgroundrb repository and it should work alright.
This topic is locked and can not be replied to.