Since server change, rails application won't start
Posted by: llg
Posted on: 2009-10-05 04:59:00
Hello everyone,
So, I had a rails application that was working really fine since really long, when I was hosted on the achilles server. The application is frozen.
Then, DH decided to move me to a new server, called tirane. Since that time, my rails application doesn't work. Then later on, they decided to move me to bugsy (sic), and it still doesn't work.
I don't really know what the problem is. From the production.log, I get messages like this, from the start of the application:
has_many_polymorphs: Rails environment detected
error preloading Tag: #<NoMethodError: undefined method `[]' for #<Enumerable::Enumerator:0x7f803a600c40>>
Processing TotozController#index (for 129.129.128.182 at 2009-10-05 04:36:30) [GET]
Session ID: aee4c365f803ddf9651384f320e592c3
Parameters: {"action"=>"index", "controller"=>"totoz"}
LoadError (Expected /home/loico/totoz/releases/20080104115117/app/models/totoz.rb to define Totoz):
/home/loico/totoz/releases/20080104115117/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant
'
/home/loico/totoz/releases/20080104115117/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'
/home/loico/totoz/releases/20080104115117/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:in `const_missing'
/home/loico/totoz/releases/20080104115117/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:260:in `load_missing_constant
'
/home/loico/totoz/releases/20080104115117/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:468:in `const_missing'
/home/loico/totoz/releases/20080104115117/app/controllers/application.rb:8:in `info'
/home/loico/totoz/releases/20080104115117/app/controllers/totoz_controller.rb:24:in `list'
/home/loico/totoz/releases/20080104115117/app/controllers/totoz_controller.rb:6:in `index'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `send'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/base.rb:1101:in `perform_action_without_filters'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/filters.rb:696:in `call_filters'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/filters.rb:688:in `perform_action_without_benchmark'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/rescue.rb:83:in `perform_action'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `send'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/base.rb:435:in `process_without_filters'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/filters.rb:684:in `process_without_session_management_support'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/session_management.rb:114:in `process'
/home/loico/totoz/releases/20080104115117/vendor/rails/actionpack/lib/action_controller/base.rb:334:in `process'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/dispatcher.rb:41:in `dispatch'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:168:in `process_request'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:143:in `process_each_request!'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:109:in `with_signal_handler'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:142:in `process_each_request!'
/usr/lib/ruby/1.8/fcgi.rb:612:in `each_cgi'
/usr/lib/ruby/1.8/fcgi.rb:609:in `each'
/usr/lib/ruby/1.8/fcgi.rb:609:in `each_cgi'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:141:in `process_each_request!'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:55:in `process!'
/home/loico/totoz/releases/20080104115117/vendor/rails/railties/lib/fcgi_handler.rb:25:in `process!'
dispatch.fcgi:26
Any tips from anyone ?
Cheers.