2011-12-02 47 views
0

我爲我的rails應用程序使用Apache + passenger,應用程序在生產模式下運行良好,除非瀏覽器在每2-3點擊開發模式,當我刷新頁面時會熄滅。我在我的rails應用程序中使用金屬,我認爲這可能是原因,但不知道它是否是唯一原因。在瀏覽器Apache與乘客在開發模式下給出了錯誤(腳本頭文件過早結束)

錯誤消息:在本地主機端口

Internal Server Error 

The server encountered an internal error or misconfiguration and was unable to complete your request. 

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error. 

More information about this error may be available in the server error log. 

的Apache/2.2.16(Ubuntu的)服務器80

Apache日誌錯誤:

[Thu Dec 01 16:55:23 2011] [error] [client 127.0.0.1] Premature end of script headers: view_transactions, referer: http://localhost/admin_portal/1014978061/view_transactions 
[ pid=660 thr=3078097552 file=ext/apache2/Hooks.cpp:822 time=2011-12-01 16:55:23.563 ]: The backend application (process 796) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. 
[ pid=796 thr=-608495398 file=utils.rb:176 time=2011-12-01 11:25:23.878 ]: *** Exception NoMethodError in application (undefined method `new' for Rails:Module) (process 796, thread #<Thread:0xb77631b4>): 
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:467:in `new_instance' 
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/control.rb:54:in `instance' 
from /home/brijendra/aptana_studio_3_workspace/wantsa/vendor/plugins/newrelic_rpm/lib/new_relic/agent.rb:167:in `logger' 

我會如果需要,急於發佈任何其他輸出,並提出解決此問題的建議。

+0

什麼是Ruby,Rails和NewRelic版本?這些之間可能存在不兼容。 – Swanand

+0

ruby​​ 1.8.7(2011-02-18 patchlevel 334)[i686-linux],Rails 2.3.4,newrelic v2.12.3 – Bijendra

回答

0

我修改了這個錯誤,在我的development.rb中改變了緩存爲true,它工作正常。

相關問題