rails unable to start
Posted by: etxera
Posted on: 2007-05-11 12:12:00
A couple of weeks ago I settled up a rails web app. All was running well.
'till the users reported a problem ...
1) Effectively, jumping to the URL resulted in a cryptic error msg :
Application error
Rails application failed to start properly"
2) Trying to run the dispatch.fcgi file manually from the shell and resulted in this error:
./public/../config/environment.rb:54: uninitialized constant ActionMailer (NameError)
from /usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/initializer.rb:41:in `run'
from ./public/../config/environment.rb:12
from public/dispatch.fcgi:21:in `require'
from public/dispatch.fcgi:21
3) Still another test :
$ ./script/console
Loading development environment.
./script/../config/../config/environment.rb:54:NameError: uninitialized constant ActionMailer
/usr/lib/ruby/gems/1.8/gems/actionpack- 1.13.2/lib/action_controller/assertions/selector_assertions.rb:525:NoMethodError: undefined method `camelize' for "top":String
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- rcss (LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from ./script/../config/../config/../app/controllers/application.rb:1
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /usr/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/console_with_helpers.rb:17
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
from /usr/lib/ruby/1.8/irb/init.rb:250:in `each'
from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup'
from /usr/lib/ruby/1.8/irb.rb:54:in `start'
from /usr/bin/irb:13
4) I'm definitely not a rails master and will never be ...
Can anyone help me find a way to restore this damned application with these 4 pieces of info ... ?
Mayday Mayday MAYDAY !!!
D.