【问题标题】:Intermittent 502 proxy error to Zope / Plone “error reading status line from remote server”Zope / Plone的间歇性502代理错误“从远程服务器读取状态行错误”
【发布时间】:2012-02-06 11:00:30
【问题描述】:

我们目前在一个 Zope 实例上运行 Plone 3.3.6,在 Apache 2.2 之后有 4 个线程。我们有许多子站点都由一个 Plone 站点管理。

我目前正在测试一个运行 2 个 Zope 实例、每个 2 个线程并由 Apache 进行负载平衡的新设置。我们有一个工具可以爬取我们的网站以检查错误,它报告了许多 502 代理错误。它在我们的实时站点上运行良好,通常也在我们的测试站点上运行。

正如预期的那样,我们在 Apache 访问日志中看到了 502 错误。

10.10.11.1 - - [04/Feb/2012:14:34:46 +0000] "GET /family-strengthening HTTP/1.1" 502 345 "-" "Mozilla"

我们还在 Apache 错误日志中获得了一个条目

[Sat Feb 04 14:34:46 2012] [error] [client 10.10.11.1] proxy: error reading status line from remote server dev:18082
[Sat Feb 04 14:34:46 2012] [error] [client 10.10.11.1] proxy: Error reading from remote server returned by /family-strengthening

有时 Zope 访问日志显示请求有 200 个响应但提供了 0 个字节

./instance2-Z2.log:10.10.11.4 - Anonymous [04/Feb/2012:14:34:47 +0100] "GET /VirtualHostBase/http/test.street-children.org.uk:80/sos/soschildrensvillages_org_uk/street-children_org_uk/VirtualHostRoot/family-strengthening HTTP/1.1" 200 0 "" "Mozilla"

其他时候请求不会显示在 Zope 访问日志中。

Zope 实例日志中没有错误。

当我通过浏览器请求相同的页面时,我从未收到错误消息。再次运行我们的蜘蛛程序会导致类似数量的 502 错误,但针对不同的页面。

我认为我们网站的 Apache 配置非常标准:

ProxyPreserveHost On
<Proxy balancer://zopes>
  BalancerMember http://dev:18081
  BalancerMember http://dev:18082
</Proxy>
RewriteRule ^/(.*) balancer://zopes/VirtualHostBase/http/%{SERVER_NAME}:80/sos/soschildrensvillages_org_uk/%{ENV:SOS_PLONE_FOLDER_SHORTNAME}/VirtualHostRoot/$1 [last,proxy]

我不知道从哪里开始尝试调试它,因此非常感谢任何帮助。

【问题讨论】:

    标签: apache plone reverse-proxy zope mod-proxy


    【解决方案1】:

    更新

    以为我已经通过停止 Apache 然后启动 Apache 来解决这个问题

    apachectl stop
    apachectl start
    

    问题在测试系统上消失了,只是在我切换到那里的两个 Zopes 后才出现在现场。

    我一直在优雅地重新启动 Apache。每次我们优雅地重新启动时,我们的 apache 错误日志中也会出现如下错误

    [Tue Feb 07 19:41:07 2012] [error] proxy: ap_get_scoreboard_lb(97) failed in child 411 for worker http://dev:18081
    [Tue Feb 07 19:41:07 2012] [error] proxy: ap_get_scoreboard_lb(99) failed in child 411 for worker http://dev:18082
    

    我读到这些是无害的,但也许不是?它们不再出现在停止/启动后的正常重启中

    【讨论】:

      猜你喜欢
      • 2017-01-13
      • 1970-01-01
      • 1970-01-01
      • 2012-08-13
      • 1970-01-01
      • 1970-01-01
      • 2013-11-18
      • 2021-02-17
      • 1970-01-01
      相关资源
      最近更新 更多