【问题标题】:Openshift, 503 Service Unavailable. No server is available to handle this requestOpenshift,503 服务不可用。没有可用于处理此请求的服务器
【发布时间】:2015-06-02 01:09:28
【问题描述】:

我在 Openshift 上有一个可扩展的 PHP 5.4 墨盒,拥有青铜帐户。 这是一个 wordpress 博客,我使用它直到 2 周前。

今天,我回来参观它,它说:

503 服务不可用。没有可用于处理此请求的服务器。

为了检查代理状态,我访问了这个链接http://myapp-mydomain.rhcloud.com/haproxy-status,我看到了这个:

看来是DOWN了。

使用 rhc tail 检查日志我看到了这一行:

    ==> app-root/logs/haproxy.log <==
[ALERT] 077/194638 (138628) : proxy 'express' has no server available!
[WARNING] 086/161237 (138628) : Server express/local-gear is DOWN for maintenance.
[WARNING] 086/161239 (33522) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 086/161239 (33522) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 086/161239 (33522) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "HTTP status check returned code <3C>500<3E>", check duration: 65ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 086/161239 (33522) : proxy 'express' has no server available!
[WARNING] 086/161240 (33522) : Server express/local-gear is DOWN for maintenance.
[WARNING] 086/161323 (33522) : Server express/local-gear is UP (leaving maintenance).
[WARNING] 086/161325 (33522) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "HTTP status check returned code <3C>500<3E>", check duration: 237ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 086/161325 (33522) : proxy 'express' has no server available!

我也尝试使用 openshift 的“重启”按钮重启应用程序,但没有成功。

不知道怎么解决。有什么想法吗?

提前致谢

【问题讨论】:

  • 尝试完全停止齿轮然后重新启动。
  • 启动了“rhc 应用停止”,但仍然无法正常工作。我认为问题与mysql有关..这里我已经解释过了:stackoverflow.com/questions/29322474/…你能帮帮我吗?
  • 有好几次我的应用在 openshift 上无缘无故停止工作。我不得不创建应用程序的副本,看看是我的问题还是 openshift 的问题。我遇到了许多 openshift 错误。尝试创建一个副本,它可能会导致您遇到问题。这可能是内存空间问题吗?

标签: php openshift openshift-cartridge


【解决方案1】:

您的免费 OpenShift 设备由未使用的处理/带宽能力处理。如果目前没有服务器可用于为您的应用运行齿轮,则发出的请求将被拒绝,并显示“503 Service Unavailable: No server is available to handle this request”。

如果您想确保应用的正常运行时间,请使用付费工具。

【讨论】:

    【解决方案2】:

    此问题适用于 OpenShift Online 的较旧 (v2) 版本,该版本不再可用。您的应用似乎无法启动。

    使用 MiniShift、OpenShift Starter 或 OpenShift Pro 可能值得再次尝试

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-29
      • 2021-12-06
      • 2017-01-14
      • 2022-01-21
      • 1970-01-01
      • 2017-08-23
      • 2022-01-22
      相关资源
      最近更新 更多