2012-10-05 66 views
1

不太清楚我改變了什麼,但是我的Passenger應用程序不再啓動。我試過svn revert,但問題並未消失。什麼可能導致這種情況,我該如何解決?乘客申請不再啓動:Errno :: EPIPE

我在apache2服務器上運行這個。我的乘客的配置是這樣的:

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/ext/apache2/mod_passenger.so 
    PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17 
    PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby 

我的應用程序的conf看起來是這樣的:

<VirtualHost my_server_ip_address:80> 
    ServerName my.domain.com 
    # !!! Be sure to point DocumentRoot to 'public'! 
    DocumentRoot /path/to/project/public 
    RailsEnv production 
    <Directory /path/to/project/public> 
     # This relaxes Apache security settings. 
     AllowOverride all 
     # MultiViews must be turned off. 
     Options -MultiViews 
    </Directory> 
</VirtualHost> 

以及錯誤信息(因爲它是長期保存它最後一個):

[ pid=2887 thr=81885190 file=utils.rb:176 time=2012-10-05 09:19:10.532 ]: *** Exception Errno::EPIPE in PhusionPassenger::Rack::ApplicationSpawner (Broken pipe) (process 2887, thread #<Thread:0x9c2f00c>): 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/message_channel.rb:278:in `write' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/message_channel.rb:278:in `write' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/utils.rb:574:in `rescue in report_app_init_status' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/utils.rb:552:in `report_app_init_status' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/rack/application_spawner.rb:154:in `initialize_server' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server.rb:204:in `start_synchronously' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server.rb:180:in `start' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/rack/application_spawner.rb:129:in `start' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' 
     from <internal:prelude>:10:in `synchronize' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
     from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.17/helper-scripts/passenger-spawn-server:99:in `<main>' 

回答

1

您的錯誤信息不夠完整,無法查看出了什麼問題,但是您是否嘗試過Phusion Passenger 4.0 beta 2?產卵子系統已被完全重寫爲更強大,並可能解決您的問題。