Я получаю, по-видимому, случайные 500 внутренних ошибок сервера от Apache на нашем недавно запущенном сайте Rails 3.1.Далее следует ошибка:
[pid = 19441 thr = 2888301424 file = ext / apache2 / Hooks.cpp: 822 time = 2011-09-15 15: 45: 07.311]: внутреннее приложение (процесс19550) не отправил действительный ответ HTTP;вместо этого это вообще ничего не отправляло.Возможно, что он разбился;пожалуйста, проверьте, есть ли ошибки в этом приложении.
Иногда я также вижу следующую ошибку:
[pid = 5805 thr = 75783560 file = utils.rb: 176 время = 2011-09-15 16: 02: 19.471]: * Исключительная ситуация PGError в приложении (ошибка SYSCALL SSL: обнаружен EOF) (процесс 5805, номер потока): from / app / oath /vendor / ruby / 1.9.1 / gems / activerecord-3.1.0 / lib / active_record / connection_adapters / postgresql_adapter.rb: 276: в exec'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/postgresql_adapter.rb:276:in
блок в clear_cache! 'из /app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/postgresql_adapter.rb:275:in each_value'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/postgresql_adapter.rb:275:in
clear_cache! 'из /app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/postgresql_adapter.rb:303:in disconnect!'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:202:in
блокировать при отключении! 'из /app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:201:in each'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:201:in
отключиться! 'из /app/oath/vendor/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/core_ext/module/synchronization.rb:35:in block in disconnect_with_synchronization!'
from
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in
mon_synchronize 'из / app / oath / vendor /ruby / 1.9.1 / gems / activesupport-3.1.0 / lib / active_support / core_ext / module / synchronization.rb: 34: в disconnect_with_synchronization!'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:395:in
блоке в clear_all_connections! 'из /app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:395:in each_value'
from
/app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:395:in
clear_all_connections! 'из /app/oath/vendor/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:123:in clear_all_connections!'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:398:in
before_handling_requests 'из / usr / local / rvm /gems / ruby-1.9.2-p290 / gems / passenger-3.0.9 / lib / phusion_passenger / rack / application_spawner.rb: 204: в start_request_handler'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:170:in
блоке handle_spawn_application 'из / usr / local / rvm / gems / ruby-1.9.2-p290 / gems / passenger-3.0.9 / lib / phusion_passenger / utils.rb: 479: в safe_fork'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:165:in
handle_spawn_application 'из /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9 / lib / phusion_passenger / abstract_server.rb: 357: в server_main_loop'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in
start_synchronously 'из /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger / abstract_server.rb: 180: в start'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:128:in
start 'из /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:253:в block (2 levels) in spawn_rack_application'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:132:in
lookup_or_add 'из /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:82:in
блок в синхронизации'от: 10: вsynchronize'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:79:in
синхронизировать 'из /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:137:in
spawn_application' из / usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in
server_main_loop 'из / usr / local / rvm / gems / ruby-1.9.2-p290 / gems / passenger-3.0.9 / lib / phusion_passenger / abstract_server.rb: 206: in start_synchronously'
from
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server:99:in
'
На компьютере установлены Ubuntu 10.04 LTS и Apache / 2.2.14 с Rails 3.1, Passenger 3.0.9 и Rack 1.3.2.
Это довольно простой сайт, и у меня закончились идеи.