首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有乘客的Apache在开发模式下产生错误(脚本头的过早结束)

带有乘客的Apache在开发模式下产生错误(脚本头的过早结束)
EN

Stack Overflow用户
提问于 2011-12-02 07:11:34
回答 1查看 1.3K关注 0票数 0

我在我的rails应用程序中使用Apache +客运,该应用程序在生产模式下运行良好,除非浏览器在刷新页面时每单击2-3次就显示错误消息。我在rails应用程序中使用金属,这可能是原因,但不确定这是否是唯一的原因。

浏览器上的错误消息

代码语言:javascript
复制
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日志错误:

代码语言:javascript
复制
[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'

如果需要的话,我很想发布任何其他的输出,并提出解决这个问题的建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-12-06 19:16:01

我通过在我的development.rb中将缓存更改为true来修正这个错误,它运行得很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8352900

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档