2009-07-04 50 views
3

升級到 slicehost在Ubuntu耐寒片線路2.3.2和2.2.4乘客用的Apache2異常變量Errno :: EPIPE

我在得到這同樣上面討論的錯誤我 系統的/ var /日誌/ Apache2的Apache的error.log中/

 
[ pid=4249 file=ext/apache2/Hooks.cpp:638 time=2009-07-04 
11:47:32.752 ]: 
    No data received from the backend application (process 4383) within 
45000 msec. Either the backend application is frozen, or your TimeOut 
value of 45 seconds is too low. Please check whether your application 
is frozen, or increase the value of the TimeOut configuration 
directive. 
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) 
(process 4391): 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/rack/request_handler.rb:93:in `write' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/rack/request_handler.rb:93:in `process_request' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_request_handler.rb:206:in `main_loop' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/railz/application_spawner.rb:376:in 
`start_request_handler' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/railz/application_spawner.rb:334:in 
`handle_spawn_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/utils.rb:182:in `safe_fork' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/railz/application_spawner.rb:332:in 
`handle_spawn_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:351:in `__send__' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:351:in `main_loop' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:195:in `start_synchronously' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:162:in `start' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/railz/application_spawner.rb:213:in `start' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server_collection.rb:80:in `synchronize' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/spawn_manager.rb:153:in `spawn_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:351:in `__send__' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:351:in `main_loop' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/ 
phusion_passenger/abstract_server.rb:195:in `start_synchronously' 
     from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn- 
server:61 
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) 
(process 4383): 

這些了。

 
pid=4362 file=ext/apache2/Hooks.cpp:638 time=2009-07-04 
11:55:19.251 ]: 
    No data received from the backend application (process 4383) within 
45000 msec. Either the backend application is frozen, or your TimeOut 
value of 45 seconds is too low. Please check whether your application 
is frozen, or increase the value of the TimeOut configuration 
directive. 
[ pid=4298 file=ext/apache2/Hooks.cpp:638 time=2009-07-04 
11:55:19.255 ]: 
    No data received from the backend application (process 4252) within 
45000 msec. Either the backend application is frozen, or your TimeOut 
value of 45 seconds is too low. Please check whether your application 
is frozen, or increase the value of the TimeOut configuration 
directive. 
[Sat Jul 04 11:55:19 2009] [error] [client 86.96.226.13] Premature end 
of script headers: 41, referer: http://domain.com/ 
[ pid=4373 file=ext/apache2/Hooks.cpp:638 time=2009-07-04 
11:55:19.559 ]: 

它讓我瘋了,在瀏覽器上,有時它的顯示,當 刷新,應用程序錯誤500頻繁出現。 任何方向??

回答

3

它看起來像你遇到的錯誤被合併到乘客大師但尚未發佈。您可以通過以下系統信息庫檢查乘客出來嘗試一下:

http://github.com/FooBarWidget/passenger/tree/master 

一旦檢查出來,你要運行:

./bin/passenger-install-apache2-module 

Apache的乘客,或:

./bin/passenger-install-nginx-module 

Nginx Passenger。既然這個問題已經解決,它應該適合你。

+0

謝謝你的回覆,耶胡達。 幾個小時前我解決了這個問題。由Honlilai在http://bit.ly/1axdfO 上解決,問題主要在於該日誌文件的權限。 – Autodidact 2009-07-05 23:18:07

0

我更新到乘客版本2.2.7,儘管此錯誤仍在發生。我發現在我的Apache配置中更新TimeOutKeepAliveTimeout似乎解決了這個問題。 (他們分別從1和2改爲10和20)。希望能幫助別人!

1

我也有這個問題,並通過從乘客2.1.2升級到乘客2.2.15來修復它。

要清楚這不是鐵軌問題,這是一個乘客的錯誤。

錯誤日誌輸出:

[ pid=13571 file=Hooks.cpp:508 time=2010-04-28 17:46:16.878 ]: 
    Backend process 22235 did not return a valid HTTP response. It returned no data. 
*** Exception Errno::EPIPE in Passenger RequestHandler (Broken pipe) (process 22235): 
    from /usr/lib/ruby/gems/1.8/gems/passenger-2.1.2/lib/phusion_passenger/rack/request_handler.rb:67:in `write' 
0

我只是碰到了這一個。事實證明,這是服務器上的DNS故障的症狀。由於颶風桑迪,我認爲它的域名服務器已經下線了。所以,如果您遇到此問題,請檢查您的互聯網名稱解析是否正常工作!