我有一個簡單的servlet應用程序。我創建了war文件並在本地服務器上嘗試過 - 一切都很順利。 然後我決定在openshift服務器上發佈它。無法在openshift 503上運行我的應用程序錯誤
這裏是鏈接http://asciiart-pbweb.rhcloud.com/ 我改名爲我的戰爭文件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
分享更多的logs.sometimes由於內存空間問題,我們傾向於得到這種類型的錯誤。 – shankarsh15
有些時候可能會發生這種情況,因爲文件未在服務器上正確部署。 請按照鏈接中的說明重新檢查您的步驟:https://developers.openshift.com/servers/tomcat/deployment-options.html –
親愛的朋友們。我添加了日誌輸出。請如果你有任何想法如何解決它告訴我 – kurumkan