Topic: uninitialized constant Rack::Lock

Hi,

when I try to start the deployed application (3.0.7 -- an upgrade from 2.3.8, runs fine in dev environment) I get the following error message from Passenger -- while 'rake routes' and 'rails c' both run fine!

Error: uninitialized constant Rack::Lock

backtrace:

0     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     192     in `default_middleware_stack'
1     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     190     in `tap'
2     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     190     in `default_middleware_stack'
3     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     161     in `build_middleware_stack'
4     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application/finisher.rb     35    
5     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb     25     in `instance_exec'
6     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb     25     in `run'
7     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb     50     in `run_initializers'
8     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb     49     in `each'
9     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/initializable.rb     49     in `run_initializers'
10     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     134     in `initialize!'
11     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     77     in `send'
12     /usr/lib/ruby/gems/1.8/gems/railties-3.0.7/lib/rails/application.rb     77     in `method_missing'
13     /home/app.forestcrm.com/releases/20110620193254/config/environment.rb     9    
14     /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb     29     in `gem_original_require'
15     /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb     29     in `require'
16     config.ru     3    
17     /usr/lib/ruby/1.8/rack/builder.rb     22     in `instance_eval'
18     /usr/lib/ruby/1.8/rack/builder.rb     22     in `initialize'
19     config.ru     1     in `new'
20     config.ru     1

Versions:
ruby: 1.8.7
rails: 3.0.7 (2.3.8 also installed; new app is an intended upgrade)
gem: 1.5.3
passenger: libapache2-mod-passenger 2.2.11debian-1~bpo50+1

No clue from googling, I'm at a loss.  Anyone has any idea where to turn to?

Re: uninitialized constant Rack::Lock

Solved.

For the records: I removed the phusion passenger that the site was using (one installed as a debian/lenny package) and installed the 3.0.7 version as a gem. It made the error disappear and plays nicely with both the 2.3.8 and the 3.0.7 version code. (I suspected it was passenger because it ran fine as a console app.)