BackgrounDRb start error


#1

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:ingem_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:inrequire’
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:inrequire’
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:inrequire’
… 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:instart_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.


#2

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).


#3

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:36require’
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.