I have an app on a shared host that as of last night has stopped
working. The app had been using rails 1.2.1 out of /usr/lib/ruby/gems/
1.8/gems/rails-1.2.1 and everything was running fine.
Last night my host upgraded gems and that seems to be the source of
the problem. I tried just freezing rails but that isn’t helping.
Here is the production.log…
can’t activate rubyforge (>= 1.0.0), already activated
rubyforge-0.4.4]
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:139:in activate' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:155:in
activate’
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in each' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in
activate’
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:155:in activate' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in
each’
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in activate' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:155:in
activate’
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in each' /usr/lib/ruby/site_ruby/1.8/rubygems.rb:154:in
activate’
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require' ../config/../vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:495:in
require’
…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/
active_support/dependencies.rb:342:in new_constants_in' ../config/../vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:495:in
require’
…/config/…/app/controllers/application.rb:4
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require’
…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/
active_support/dependencies.rb:495:in require' ../config/../vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:342:in
new_constants_in’
…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/
active_support/dependencies.rb:495:in require' ../config/../vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:104:in
require_or_load’
…/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/
active_support/dependencies.rb:60:in depend_on' ../config/../vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:442:in
require_dependency’
…/config/…/vendor/rails/railties/lib/dispatcher.rb:110:in
prepare_application' ../config/../vendor/rails/railties/lib/dispatcher.rb:39:in
dispatch’
dispatch.cgi:11
I believe that I need to run on a local version of rubygems, but I’m
not sure how to do this, or if this is the correct approach. Any help
is appreciated.
Peter