我的应用程序使用mod_wsgi,Flask和Python 2.7运行Apache 2服务器。奇怪的是,当页面刷新时,应用程序崩溃了。对我来说,这恰好发生在每一次刷新上。你可以看到它here。此外,在Chrome中,如果我打开Web检查器工具,该程序不会崩溃。
在日志中,我看到:
[Tue Apr 14 13:45:29.137444 2015] [wsgi:error] [pid 32713] [client 146.203.54.32:58816] Truncated or oversized response headers received from daemon process 'localhost:80': /etc/g2e/htdocs/g2e
[Tue Apr 14 13:45:29.671493 2015] [core:notice] [pid 28845] AH00052: child pid 640 exit signal Segmentation fault (11)
[Tue Apr 14 13:45:29.671520 2015] [wsgi:info] [pid 28845] mod_wsgi (pid=640): Process 'localhost:80' has died, deregister and restart it.
[Tue Apr 14 13:45:29.671524 2015] [wsgi:info] [pid 28845] mod_wsgi (pid=640): Process 'localhost:80' terminated by signal 11
[Tue Apr 14 13:45:29.671527 2015] [wsgi:info] [pid 28845] mod_wsgi (pid=640): Process 'localhost:80' has been deregistered and will no longer be monitored.
...
FWIW,我正在使用
Linux 3.16.7-7-desktop #1 SMP PREEMPT Wed Dec 17 18:00:44 UTC 2014 (762f27a) x86_64 x86_64 x86_64 GNU/Linux
感谢任何帮助。
答案 0 :(得分:0)
我可能有一个调整。我有这个问题,但现在它以某种方式工作。
bison
作为守护程序运行。我的应用程序没有工作,我在日志中收到此错误消息。 然而,作为非守护进程运行safari-4-branch
,例如
mod_wsgi
所以我再次启动它然后杀了它。
(mod_wsgi 4.4。[1-13],apache2,python 2.7,Django 1.7,Debian8全新安装,有或没有virtualenv)