rails passenger + apache segmentation bug

时间:2012-11-13 21:06:58

标签: ruby-on-rails apache passenger

我遇到了在apache + passenger上运行rails的问题。当我转到网站时,我进入/ var / log / apache:

[Tue Nov 13 21:54:21 2012] [notice] Apache/2.2.16 (Debian) Phusion_Passenger/2.2.11 configured -- resuming normal operations
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11/lib/mysql2/mysql2.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

*** Exception EOFError in spawn manager (Unexpected end-of-file detected.) (process 22878):
    from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:306:in `unmarshal_and_raise_errors'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:71:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    from /usr/lib/phusion_passenger/passenger-spawn-server:61
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11/lib/mysql2/mysql2.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

*** Exception EOFError in spawn manager (Unexpected end-of-file detected.) (process 22944):
    from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:306:in `unmarshal_and_raise_errors'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:71:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    from /usr/lib/phusion_passenger/passenger-spawn-server:61
[ pid=22882 file=ext/apache2/Hooks.cpp:727 time=2012-11-13 21:54:26.950 ]:
  Unexpected error in mod_passenger: Cannot spawn application '/home/xxx/xxx/xxx': The spawn server has exited unexpectedly.
  Backtrace:
     (empty)
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/mysql2-0.3.11/lib/mysql2/mysql2.so: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

*** Exception EOFError in spawn manager (Unexpected end-of-file detected.) (process 22950):
    from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:306:in `unmarshal_and_raise_errors'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:71:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/rack/application_spawner.rb:41:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:159:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    from /usr/lib/phusion_passenger/passenger-spawn-server:61
[ pid=22881 file=ext/apache2/Hooks.cpp:727 time=2012-11-13 21:54:28.23 ]:
  Unexpected error in mod_passenger: Cannot spawn application '/home/xxx/xxx/xxx': The spawn server has exited unexpectedly.
  Backtrace:
     (empty)

我真的不知道它是什么。当我编写rails服务器时,应用程序正常运行。

这个问题的任何线索? :(

最好的问候

0 个答案:

没有答案