gpt4 book ai didi

node.js - 'express' 的 Openshift haproxy 错误没有可用的服务器

转载 作者:IT老高 更新时间:2023-10-28 23:21:49 30 4
gpt4 key购买 nike

我从 Openshift 创建了一个基本的 Nodejs 应用程序,并且随机地,该服务在几天内自行终止了几次。我的 Nodejs 模块没有错误消息,但仅在自动安装的 haproxy 中。

来自 haproxy.log 的消息是:

[WARNING] 184/001333 (193501) : Server express/local-gear is DOWN for maintenance.
[WARNING] 184/010106 (483047) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 184/010106 (483047) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 184/010106 (483047) : Server express/local-gear is DOWN, reason: Layer4 connection problem, info: "Connection refused", check duration: 0ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 184/010106 (483047) : proxy 'express' has no server available!
[WARNING] 184/010110 (483047) : Server express/local-gear is DOWN for maintenance.
[WARNING] 184/010115 (483047) : Server express/local-gear is UP (leaving maintenance).
[WARNING] 184/010116 (483047) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "Internal Server Error", check duration: 43ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 184/010116 (483047) : proxy 'express' has no server available!

haproxy_ctld.log

E, [2014-07-03T12:12:59.557445 #97055] ERROR -- : Could not connect to the application.  Check if the application is stopped.
E, [2014-07-03T12:13:04.557968 #97055] ERROR -- : Could not connect to the application. Check if the application is stopped.
E, [2014-07-03T12:13:09.558480 #97055] ERROR -- : Could not connect to the application. Check if the application is stopped.

最佳答案

检查:Openshift Layer4 connection, App Won't Start

问题可能是您在 express 应用程序的根目录中没有提供任何服务,因此您需要修改 haproxy 配置文件,找到提到 express 和 httpchk 的文件,并将/更改为响应请求的内容。

或者,只需在/上提供一些东西,这样 HAProxy 就不会继续重新启动您的服务。

关于node.js - 'express' 的 Openshift haproxy 错误没有可用的服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24570032/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com