Hi!
I have an app that is already working on a shared host, but I need to run this on another server that was setup from scratch. Currently, the server has the following specs:
OS: ubuntu Apache 2 MySQL 5 Rails 2.3 (but I'm using 2.0/2.1) Ruby 1.8.6 FastCGI(mod_fcgid)
So far the application works fine but during the submitting of forms I sometimes get an error and on the log file was
Processing ApplicationController#index (for 122.55.107.51 at 2010-03-01 18:18:36) [PUT] Session ID: BAh7EjoRY291bnRkb3duMTU1aQA6DmxvZ2ludGltZXU6CVRpbWUNKogbgN6i Q0k6CHdob2kHOg5hY2NvdW50aWRpAZs6CW1pbmVGOhB0aGlzYWNjb3VudG86 DEFjY291bnQTOgpAY2hhdDA6HEBuZXdfcmVjb3JkX2JlZm9yZV9zYXZlMDoP QGd1aWRhbmNlczA6CkBkaWZmZhAwLjMwNzMxMQDeGjoPQG1lZF9maWxlczA6 FkBzdHVkZW50X3BheW1lbnRzMDoQQGF0dHJpYnV0ZXN7FSIJbmFtZSIQQWFy b24gSmFtZXMiD2NyZWF0ZWRfYXQiGDIwMTAtMDMtMDEgMDk6NDU6MzkiEGRl c2lnbmF0aW9uIglUZXN0Ig91cGRhdGVkX2F0dTsHDSqIG4DFCA9KIg11c2Vy bmFtZSINYWppYmFuZGEiCWxvY2siBjAiB2lkIggxNTUiDWxhc3RfbG9nIhgy MDEwLTAzLTAxIDEwOjE3OjAyIhFzY2hvb2xfbGV2ZWwwIhFsb2dpbl9zdHJp bmciDXd6a3BAZ2ZAIg5sYXN0X25hbWUiCkJhbmRhIg9pc0xvZ2dlZEluVCIN cGFzc3dvcmQiDWFqaWJhbmRhIhBhY2NvdW50dHlwZSIGMiIKZW1haWwiF2Fq aWJhbmRhQGdtYWlsLmNvbSIQbWlkZGxlX25hbWUiDUlsbGVzY2FzOhRAcHJp dmF0ZV90b3BpY3MwOhZAYXR0cmlidXRlc19jYWNoZXsGIg1sYXN0X2xvZ1U6 IEFjdGl2ZVN1cHBvcnQ6OlRpbWVXaXRoWm9uZVsIdTsHDSqIG4AAACBEIgtU YWlwZWl1OwcNMogbgAAAIEQ6FkBwcml2YXRlX21lc3NhZ2VzMDoOQGFjY291 bnRzMDoOQG1lZGljYWxzMDoMQGVycm9yc286GUFjdGl2ZVJlY29yZDo6RXJy b3JzBzsaewA6CkBiYXNlQAc6GEBjaGFuZ2VkX2F0dHJpYnV0ZXN7ADoWc2No b29sX3NldF9ub3RpY2UwOgxjc3JmX2lkIiU3MGUzODRkYTQ4NTRhOWU5YjRk ZDMyYmNjYWQzNTMzODoNbGFzdF9sb2dAKjoQYXV0aF9zdHJpbmdAHDoQc2No b29sX3R5cGVvOg9TY2hvb2xJbmZvBzsTexEiC3NjaG9vbCIJdGhpcyIJbmFt ZSIkU3lzdGVtcyBQbHVzIENvbGxlZ2UgRm91bmRhdGlvbiIMYWRkcmVzcyIs TWNBcnRodXIgSGlnaHdheSwgQmFsaWJhZ28gQW5nZWxlcyBDaXR5IgtyZWdp b24iACIPY3JlYXRlZF9hdCIYMjAwOS0xMi0xMSAwOTowODo0OSINZGlzdHJp Y3QiACIPdXBkYXRlZF9hdCIYMjAxMC0wMS0yMSAwMTo1MDozNSINZGl2aXNp b24iACIHaWQiBjEiCnBob25lIi0oNjMpICgwNDUpIDMyMi02OTY2LCAoNjMp ICgwNDUpIDYyNS04MTg4IhBzY2hvb2xfdHlwZSIMREVGQVVMVCIKZW1haWwi GG5vcmVwbHlAZGVmYXVsdC5jb207FXsAIgpmbGFzaElDOidBY3Rpb25Db250 cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewY6C2FjY2VzczAGOgpAdXNlZHsG OyVUOgp3aG9pc0AT--b79de4b228fd131633b0e57a1b637a76f2b1daac Parameters: {"commit"=>"Apply Changes", "authenticity_token"=>"caee96526e0e6c3739958d67171d74066065605c", "_method"=>"put", "color"=>{"navbarbg"=>"#069", "navbarin"=>"#9cf", "fcolor"=>"#333", "bgcolor"=>"#369"}}
NameError (uninitialized constant ActionController::CgiRequest::Encoding): /vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:492:in `const_missing' /vendor/rails/actionpack/lib/action_controller/cgi_process.rb: 68:in `body' /vendor/rails/actionpack/lib/action_controller/request.rb:297:in `raw_post' /vendor/rails/actionpack/lib/action_controller/request.rb:391:in `parse_formatted_request_parameters' /vendor/rails/actionpack/lib/action_controller/cgi_process.rb: 80:in `request_parameters' /vendor/rails/actionpack/lib/action_controller/request.rb:304:in `parameters' /vendor/rails/actionpack/lib/action_controller/request.rb:22:in `request_method' /vendor/rails/actionpack/lib/action_controller/request.rb:35:in `method' /vendor/rails/actionpack/lib/action_controller/routing/ route_set.rb:431:in `extract_request_environment' /vendor/rails/actionpack/lib/action_controller/routing/ route_set.rb:384:in `recognize' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 148:in `handle_request' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 107:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 104:in `synchronize' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 104:in `dispatch' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb: 120:in `dispatch_cgi' /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:103:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:153:in `with_signal_handler' /vendor/rails/railties/lib/fcgi_handler.rb:101:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:78:in `process_each_request' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/lib/fcgi.rb:612:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/lib/fcgi.rb:609:in `each' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.8/lib/fcgi.rb:609:in `each_cgi' /vendor/rails/railties/lib/fcgi_handler.rb:77:in `process_each_request' /vendor/rails/railties/lib/fcgi_handler.rb:76:in `catch' /vendor/rails/railties/lib/fcgi_handler.rb:76:in `process_each_request' /vendor/rails/railties/lib/fcgi_handler.rb:50:in `process!' /vendor/rails/railties/lib/fcgi_handler.rb:24:in `process!' /public/dispatch.fcgi:26
The weird part here is I don't know, when and how it usually happens since most of the time it would work fine but sometimes it appears. before I thought it has something to do with my session expiration feature, but as I was checking it seems that this usually happens during the submitting of forms. Does anyone know the cause of this?
Actually this error causes problems on session after it happens.. I prove it since I cannot login after this happens. Also I usually use this command to fix this temporarily..
[sudo] killall -TERM dispatch.fcgi
EDIT: after some more testings, I found out that sometimes the controller and action parameters are not being passed and the controller that is being executed is the Application Controller. Does any one knows how this happens?