FAILSAFE

4 views
Skip to first unread message

Edwin Moss

unread,
Aug 27, 2009, 9:40:28 PM8/27/09
to Phusion Passenger Discussions
From log/production.log:

/!\ FAILSAFE /!\ 2009-08-27 19:00:41
Status: 500 Internal Server Error
, accepted HTTP methods are delete, head, get, options, post, and
put
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/request.rb:26:in `request_method'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/request.rb:35:in `method'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/routing/route_set.rb:432:in
`extract_request_environment'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/routing/route_set.rb:385:in `recognize'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:148:in `handle_request'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:107:in `dispatch'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:104:in `synchronize'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:104:in `dispatch'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.1.2/
lib/action_controller/dispatcher.rb:35:in `dispatch'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/railz/request_handler.rb:49:in `process_request'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/railz/application_spawner.rb:376:in
`start_request_handler'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/railz/application_spawner.rb:334:in
`handle_spawn_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/utils.rb:182:in `safe_fork'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/railz/application_spawner.rb:332:in
`handle_spawn_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:351:in `__send__'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:162:in `start'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/spawn_manager.rb:261:in
`spawn_rails_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server_collection.rb:126:in
`lookup_or_add'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server_collection.rb:80:in
`synchronize'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/spawn_manager.rb:254:in
`spawn_rails_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/spawn_manager.rb:286:in
`handle_spawn_application'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:351:in `__send__'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:351:in `main_loop'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously'
/usr/local/ruby-enterprise/lib/ruby/gems/1.8/gems/passenger-2.2.4/
bin/passenger-spawn-server:61

I am running:

centos 5,
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]

actionmailer (2.3.3, 2.1.2)
actionpack (2.3.3, 2.1.2)
activerecord (2.3.3, 2.1.2)
activeresource (2.3.3, 2.1.2)
activesupport (2.3.3, 2.1.2)
chronic (0.2.3)
fastercsv (1.5.0)
fastthread (1.0.7)
hoe (2.3.3)
mislav-will_paginate (2.3.11)
mysql (2.8.1, 2.7)
packet (0.1.15)
passenger (2.2.4)
rack (1.0.0)
rails (2.3.3, 2.1.2)
rake (0.8.7)
rubyforge (1.0.4)
thor (0.11.5)

I am transferring this app from another Centos server where it has
been running for 3 years.

Any ideas?

Edwin Moss

unread,
Aug 27, 2009, 11:05:37 PM8/27/09
to Phusion Passenger Discussions
sudo rake db:migrate RAILS_ENV=production --trace
(in /var/www/rails/myloanladder.com)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
Virtual timer expired

I noticed this as well. I fear this has something to do with
permissions. Currently everything is:

sudo chown -R apache:apache .

Edwin Moss

unread,
Aug 28, 2009, 7:30:53 PM8/28/09
to Phusion Passenger Discussions
This turned out to be permissions related and ssl configuration
related. I was able to track down the problem by first getting the app
to run in a non-ssl virtual host - to get the ownership happy, in my
case 'chown -R apache:apache .' - then messing with the ssl virtual
config using webmin instead of editing the virtual host by text
editor.

I am NOT a fan of Centos. Oh, btw, I had to disable SELinux early on
in this game that Centos people play.

Edwin Moss

unread,
Aug 29, 2009, 1:18:19 PM8/29/09
to Phusion Passenger Discussions
hmm, still getting the virutal timer expired error.

Edwin Moss

unread,
Aug 29, 2009, 2:13:36 PM8/29/09
to Phusion Passenger Discussions
ah, running wrong version of REE 1.8.6-20090421

http://groups.google.com/group/emm-ruby/browse_thread/thread/247b228549b213b2

Needed 1.8.6-20090610

Finally!

Hopefully this will help others.
Reply all
Reply to author
Forward
0 new messages