- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们的 Java WAR 应用程序(只是一个无状态 Java Web 服务)在过去 3 年里一直在 Heroku 上运行良好,但在周五可能由 Heroku 发起的一些 Activity 之后:
heroku-postgresql: Update HEROKU_POSTGRESQL_RED by heroku-postgresql
应用程序现在会在 dyno 重新启动时记录此错误:
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
并返回 503(服务不可用)错误。
Heroku 支持说出问题:
falls outside the nature of the Heroku Support policy
如果您经历过并解决了此类问题(尤其是最近)或有见解,请回答。
PS
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/
最佳答案
我不确定到底是什么问题,但 Heroku cedar
堆栈(又名 Cedar-10)是 shutdown 2 years ago 。您可以按照以下步骤更新您的应用程序,但我认为您最好创建一个新应用程序,可以使用以下命令来执行此操作:
$ heroku create
$ heroku plugins:install heroku-cli-deploy
$ heroku deploy:war cv-services-1.0.0.war
这假设您拥有 cv-services-1.0.0.war
文件的副本。 deploy:war
命令会将其部署在最新的 (heroku-16) 堆栈上,其中包含最新的 Java (8) 和最新的 Tomcat (8.5)。
关于java - 正在运行的 Heroku Java WAR 应用程序现在失败 : "Unable to access jarfile webapp-runner-7.0.40.0.jar",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45682001/
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。 这个问题是由于错别字或无法再重现的问题引起的。虽然类似的问题可能是on-topi
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。 这个问题是由于错别字或无法再重现的问题引起的。虽然类似的问题可能是on-topi
我正在编写一个 Java 程序,并且有一个 launch4j 启动器。我的 JAR 存储在 users %APPDATA% 文件夹下,但是当我尝试在 launch4j 中使用它时,出现以下错误: 这是
我有一个名为 test.jar 的 jar 文件,我使用同一文件夹中的批处理脚本运行它。这是批处理代码: java -jar test.jar pause jar 本身没有问题,我可以很好地运行它。但
我正在尝试编写如下函数: public Map getTestXml(JarFile jarFile) { Map result = Maps.newHashMap(); Enumer
我在 windows(10) 启动时通过批处理文件启动我的应用程序。这就是我的批处理文件中的内容 - start javaw -jar javaApplication.jar` 当 Windows 启
这个问题已经有答案了: What causes "Unable to access jarfile" error? (40 个回答) 已关闭 4 年前。 我正在尝试从我的 java 程序运行 jar
我在播放 jar 文件中的声音时遇到问题。这是我用于播放声音的代码: public class Sounds { public static void playClickSound()
我需要验证我的应用程序中的签名 jar。我发现我可以通过阅读所有内容来做到这一点,如下所示: public boolean verifyJar(String filePath) { try {
使用 JarFile 类,我可以验证 jar 文件是否已签名。但是,根据我对 API 文档和 jarsigner 文档的阅读,我没有看到验证签名者的方法。换句话说,我可以验证 jar 自签名后没有被修
好吧,这是我的问题,也是我要问你的问题...... 我有一个游戏需要从 jar 文件中加载图像(所有图像都像这样打包到 jar 文件中):我首先解压了 jar 文件: 然后它去: 然后在每个文件夹中,
我制作了一个 JavaFX 应用程序,它运行一个 jarfile 并获取它的(错误)输入流,然后用它重新绘制标签。为了做到这一点,(由于循环)我实现了 Platform.runLater(Runnab
我正在尝试使用 SignApk 签署一个 APK ,但我不断收到此错误: Error: Unable to access jarfile signapk.jar 我已将我的 JDK 目录和我的 Sig
我正在为 Java 9 开发一个使用模块分层的启动器库。为了在层中添加模块,我需要将模块名称(作为字符串)传递给父级的配置。 ModuleLayer Javadoc 在类文档的末尾有一个示例。 现在,
我已经下载了一个在 windows XP 上运行的程序。根据说明,打开包含调用 .jar 文件的命令的 .bat 文件就足够了。然而程序打不开。在 friend 的计算机上,该程序确实打开了。 我已经
我已经下载了 RoboMind ( http://robomind.net ) 并尝试让它在 Linux Mint12 上运行知道 Min12 不是最新版本,我仍然希望它运行... 当我使用包中的 .
我是 Spring Boot 微服务和 Docker 的新手。 微服务项目中的dockerfile: docker 构建: docker 图像: 运行镜像时报错:Unable to access ja
在 Ant 文档中 jar command ,它表示需要 destfile 属性。 但是底部有一个使用 jarfile 属性而不使用 destfile 属性的示例。另外,我还拥有一位同事提供的功能代码
Docker 镜像已构建,但当我想运行它时,它显示以下错误: Error: Unable to access jarfile rest-service-1.0.jar 我的操作系统是 Ubuntu 1
我有两个 jar 文件,我想使用 crontab 运行它们。假设有一个 A 和 B jarfile。当我想为 A jarfile 运行 crontab 时,crontab 工作正常。但是当我想运行 B
我是一名优秀的程序员,十分优秀!