I am using MediaTemple rails hosting and when I am trying to run my application I get this from my mongrel log:
** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:2013
** Starting Rails with production environment...
/home/66747/data/rubygems/lib/rubygems.rb:149:in `activate': can't activate activerecord (= 2.3.2, runtime), already activated activerecord-2.1.0 (Gem::Exception)
from /home/66747/data/rubygems/lib/rubygems/custom_require.rb:35:in `require'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `require_frameworks'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `each'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `require_frameworks'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:113:in `process'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:93:in `send'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:93:in `run'
from /home/66747/containers/rails/bestqualitypools/config/environment.rb:14
... 11 levels...
from /home/66747/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../lib/mongrel/command.rb:212:in `run'
from /home/66747/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/mongrel_rails:281
from /home/66747/data/rubygems/gems/bin/mongrel_rails:19:in `load'
from /home/66747/data/rubygems/gems/bin/mongrel_rails:19
I have tried running "gem cleanup" and when I type in "gem list" I get:
Alrighty, now when I try to start my application I get:
** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:2013
** Starting Rails with production environment...
/home/66747/data/rubygems/lib/rubygems.rb:149:in `activate': can't activate activerecord (= 2.1.2, runtime), already activated activerecord-2.1.0 (Gem::Exception)
from /home/66747/data/rubygems/lib/rubygems/custom_require.rb:35:in `require'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `require_frameworks'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `each'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:222:in `require_frameworks'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:113:in `process'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:93:in `send'
from /home/66747/containers/rails/bestqualitypools/config/../vendor/rails/railties/lib/initializer.rb:93:in `run'
from /home/66747/containers/rails/bestqualitypools/config/environment.rb:14
... 11 levels...
from /home/66747/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/../lib/mongrel/command.rb:212:in `run'
from /home/66747/data/rubygems/gems/gems/mongrel-1.1.5-x86-linux/bin/mongrel_rails:281
from /home/66747/data/rubygems/gems/bin/mongrel_rails:19:in `load'
from /home/66747/data/rubygems/gems/bin/mongrel_rails:19
"rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/home/66747/data/rubygems/gems/gems/rake-0.8.4/lib/rake.rb:2353:in `raw_load_rakefile'
(See full trace by running task with --trace)
"
There is "Rakefile" inside application directory in the root.
Freezing takes the gems and unpacks them to the vendor/rails directory so that the application is frozen ("locked") to running that version. You wouldn't need the gems installed on a machine that way.
Huh. Your gem list --local from above shows activesupport.
Check it again:
gem list --local
Do you see:
activesupport (2.1.2)
If you run the 'gem install' you'll get the latest version, not 2.1.2, fyi.
Do you have AR specified twice in your environment.rb file? Check out the lines with "config.gem".