railsmachine/moonshine — Issue #117: Exception NameErrors after rubygems update to 1.8.11
Author: travisp
Created: 2011-12-18 23:43:29+00:00
State: open

After commit 8bce2123c8e3e7d819eb58bd2509ace43afd4354, my server would not load properly. I had this in my apache error logs:

```
[ pid=17964 thr=12790080 file=utils.rb:176 time=2011-12-18 22:49:24.204 ]: *** Exception NameError in PhusionPassenger::Rack::ApplicationSpawner (uninitialized constant Gem::Deprecate) (process 17964, thread #):
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:189:in `'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:6:in `'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:9:in `'
from /usr/lib/ruby/site_ruby/1.9.1/rubygems.rb:347:in `clear_paths'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:175:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:128:in `start'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
from :10:in `synchronize'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
from /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server:99:in `

```

Downgrading rubygems to 1.8.10 solved the problem.