简体   繁体   English

正在运行的Heroku Java WAR应用程序现在失败:“无法访问jarfile webapp-runner-7.0.40.0.jar”

[英]Heroku Java WAR app that was working now failing: “Unable to access jarfile webapp-runner-7.0.40.0.jar”

Our Java WAR app - just a stateless Java web service - has been running fine for the last 3 years on Heroku but after some activity presumably initiated by Heroku on Friday: 我们的Java WAR应用程序-只是一种无状态的Java Web服务-过去三年在Heroku上运行良好,但是在大概由Heroku在星期五发起的一些活动之后:

heroku-postgresql: Update HEROKU_POSTGRESQL_RED by heroku-postgresql heroku-postgresql:通过heroku-postgresql更新HEROKU_POSTGRESQL_RED

the app now logs this error on a dyno restart: 该应用程序现在在动态重启时记录此错误:

2017-08-14T19:37:10.491690+00:00 heroku[web.1]: Starting process with command `${PRE_JAVA}java ${JAVA_OPTS} -jar webapp-runner-7.0.40.0.jar --port ${PORT} ${WEBAPP_RUNNER_OPTS} cv-services-1.0.0.war`
2017-08-14T19:37:12.584664+00:00 heroku[web.1]: State changed from starting to crashed
2017-08-14T19:37:12.585526+00:00 heroku[web.1]: State changed from crashed to starting
2017-08-14T19:37:12.575166+00:00 heroku[web.1]: Process exited with status 1
2017-08-14T19:37:12.503570+00:00 app[web.1]: Unable to access jarfile webapp-runner-7.0.40.0.jar

and returns a 503 (service unavailable) error. 并返回503(服务不可用)错误。

Heroku support say the problem: Heroku支持说问题:

falls outside the nature of the Heroku Support policy 超出了Heroku支持政策的性质

If you have experienced and resolved this sort of problem - especially recently - or have insight please answer. 如果您已经遇到并解决了此类问题(尤其是最近),或者有足够的见识,请回答。

PS PS

heroku info outputs: heroku信息输出:

Addons:         heroku-postgresql:dev
Auto Cert Mgmt: false
Dynos:          web: 1
Git URL:        https://git.heroku.com/xxxxxx.git
Owner:          xxxxxx@xxxxxx.com
Region:         eu
Repo Size:      0 B
Slug Size:      0 B
Stack:          cedar
Web URL:        https://xxxxxx.herokuapp.com/

I'm not sure exactly what the problem is, but the Heroku cedar stack (aka Cedar-10) was shutdown 2 years ago . 我不确定是什么问题,但是Heroku cedar堆栈(aka Cedar-10)在2年前关闭 You could follow the steps to update your app, but I think you're better off creating a new app, which you can do with the following commands: 您可以按照以下步骤来更新您的应用程序,但是我认为最好创建一个新的应用程序,您可以使用以下命令进行操作:

$ heroku create
$ heroku plugins:install heroku-cli-deploy
$ heroku deploy:war cv-services-1.0.0.war

This assumes you have a copy of the cv-services-1.0.0.war file. 假设您拥有cv-services-1.0.0.war文件的副本。 The deploy:war command will deploy it on the latest (heroku-16) stack, with the latest Java (8), and latest Tomcat (8.5). deploy:war命令将使用最新的Java(8)和最新的Tomcat(8.5)将其部署在最新(heroku-16)堆栈上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM