无法在openshift 503错误上运行我的应用

时间:2016-05-18 08:37:40

标签: java tomcat openshift

我有一个简单的servlet应用程序。我创建了war文件并在我的本地服务器上尝试过 - 一切顺利。 然后我决定在openshift服务器上发布它。

这是链接http://asciiart-pbweb.rhcloud.com/ 我按照这些说明将我的war文件重命名为ROOT.war

https://developers.openshift.com/servers/tomcat/deployment-options.html 并将所有内容推送到服务器。

但是现在它变成了503错误。我无法弄清楚出了什么问题。

我输入了这个命令

 rhc tail asciiart

以及

的完整输出
==> app-root/logs/haproxy_ctld.log <==
I, [2016-05-18T04:11:59.618001 #461900]  INFO -- : Starting haproxy_ctld
I, [2016-05-18T04:26:53.602679 #520318]  INFO -- : Starting haproxy_ctld

==> app-root/logs/haproxy.log <==
[ALERT] 138/042302 (466052) : proxy 'express' has no server available!
[WARNING] 138/042653 (466052) : Server express/local-gear is DOWN for maintenance.
[WARNING] 138/042653 (520304) : config : log format ignored for proxy 'stats' since it has no log address.
[WARNING] 138/042653 (520304) : config : log format ignored for proxy 'express' since it has no log address.
[WARNING] 138/042653 (520304) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "HTTP status check returned code <3C>500<3E>", check duration: 3ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 138/042653 (520304) : proxy 'express' has no server available!
[WARNING] 138/042654 (520304) : Server express/local-gear is DOWN for maintenance.
[WARNING] 138/042718 (520304) : Server express/local-gear is UP (leaving maintenance).
[WARNING] 138/042719 (520304) : Server express/local-gear is DOWN, reason: Layer7 wrong status, code: 500, info: "HTTP status check returned code <3C>500<3E>", check duration: 8ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] 138/042719 (520304) : proxy 'express' has no server available!

==> app-root/logs/jbossews.log <==
May 18, 2016 4:27:16 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 18, 2016 4:27:16 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.41
May 18, 2016 4:27:16 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ROOT.war
May 18, 2016 4:27:17 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-127.6.11.129-8080
May 18, 2016 4:27:17 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 997 ms

1 个答案:

答案 0 :(得分:1)

现在DNS条目已经消失,所以我最好的猜测是你没有任何监听/响应你的应用程序的根上下文(/),所以代理服务器看到齿轮已经关闭。确保在访问根上下文时至少有一个索引页或应加载的内容。