【问题标题】:Apache error "Truncated or oversized response headers received from daemon process" when using Django使用 Django 时出现 Apache 错误“从守护进程接收到的响应标头被截断或超大”
【发布时间】:2023-01-12 03:47:43
【问题描述】:

我们有一个使用 mod_wsgi 的 Django 应用程序在我们的 Ubuntu 16 实例上运行良好。当我们启动一个新的 Ubuntu 18 实例并尝试登录我们的应用程序时,我们得到:

[Tue Jan 10 22:12:00.930300 2023] [wsgi:error] [pid 11481:tid 140103479047936] [client 10.61.23.144:61958] Truncated or oversized response headers received from daemon process 'server': /home/.../wsgi.py, referer: https://application/login/?next=/application/
[Tue Jan 10 22:12:00.931998 2023] [core:notice] [pid 6523:tid 140103626501056] AH00052: child pid 11479 exit signal Segmentation fault (11)

在寻找答案的过程中,我们看到几篇帖子建议我们将此行添加到我们的 apache2.conf 文件中,我们这样做了:

WSGIApplicationGroup %{GLOBAL}

但是,这并没有解决问题。也尝试了https://serverfault.com/questions/844761/wsgi-truncated-or-oversized-response-headers-received-from-daemon-process上提到的建议,但这也没有解决问题。

我们将 Apache 日志记录增加到 info,但除了“截断或过大的响应标头”和“分段错误”之外,没有记录其他信息。

希望我们可能错过了一两个技巧。

【问题讨论】:

    标签: django apache mod-wsgi


    【解决方案1】:

    这为我们解决了问题:https://github.com/psycopg/psycopg2/issues/543

    具体来说,从源代码安装 psycopg2 库。

    【讨论】:

      猜你喜欢
      • 2014-09-09
      • 1970-01-01
      • 1970-01-01
      • 2015-06-20
      • 2017-11-08
      • 1970-01-01
      • 2019-07-30
      • 1970-01-01
      • 2021-02-18
      相关资源
      最近更新 更多