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. -- Posted via http://www.ruby-forum.com/.
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). On Apr 22, 2009, at 5:54 PM, Adeel Ahmad wrote:> > 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. > -- > Posted via http://www.ruby-forum.com/. > > >
On Thu, Apr 23, 2009 at 11:27 AM, s.ross <cwdinfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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). > > On Apr 22, 2009, at 5:54 PM, Adeel Ahmad wrote: > > > > > 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? > > >Yup the problem was because of vendored rails gem. You can pull again from backgroundrb repository and it should work alright. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- PLZ HELP - ROR on Redhat Linux :: Problem with backgroundrb
- backgroundrb script crashing on startup
- rails 1.2.1, locomotive and backgroundrb
- Error running server: Exec format error - packet_worker_runner
- unable to figure out how to get backgroundrb.yml to be used when starting backgroundrb