Node.js   发布时间:2022-04-24  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了node.js – 使用’express’的开启haploxy错误没有可用的服务器大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我从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 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

问题可能是您没有在您的快速应用程序的根目录中提供任何内容,因此您需要修改haproxy配置文件,查找提及express和httpchk的文件,并从/更改响应请求的内容.

或者,只是在/ so上提供东西,所以HAProxy不会继续重新启动你的服务.

大佬总结

以上是大佬教程为你收集整理的node.js – 使用’express’的开启haploxy错误没有可用的服务器全部内容,希望文章能够帮你解决node.js – 使用’express’的开启haploxy错误没有可用的服务器所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: