java - 无法在 openshift 503 错误上运行我的应用程序

标签 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

最佳答案

现在 DNS 条目不见了,所以我最好的猜测是您没有任何监听/响应应用程序 (/) 的根上下文,因此代理服务器认为设备已关闭。确保您至少有一个索引页面或访问根上下文时应加载的内容。

关于java - 无法在 openshift 503 错误上运行我的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37294342/

相关文章:

java - 如何阻止草地拖慢我的游戏速度?

java - Hibernate 更新对象中的所有列

java - 如何将 Hastable 或对象写入 Blackberry 上的文件

java - 智能 : configure several Tomcat configurations with different server. xml

jenkins - 以 root 用户身份访问 pod 的远程 shell

docker - 在 OpenShift 内强制重新启动 Pod

java - 使用 Gradle 构建错误 "the number of constructors during runtime and compile time for org.gradlefx.configuration "

java - 如何在 Microsoft Azure 网站上更改 jvm 参数

tomcat - Java中的Opencms

android - 在最新的 Openshift 更新后,Socket.IO 客户端无法连接到 Socket.IO nodejs 服务器