gpt4 book ai didi

tomcat - 用于 liferay/tomcat 的 Bluemix buildpack : failed to accept connections within health check timeout

转载 作者:行者123 更新时间:2023-11-28 23:27:20 26 4
gpt4 key购买 nike

我正在尝试通过以下方式将 liferay-buildpack 部署到 Bluemix:

git clone https://github.com/shinji62/liferay-buildpack <br/>
cd liferay-buildpack <br/>
cf api https://api.ng.bluemix.net <br/>
cf login <br/>
Email> xxxxxxx <br/>
Password> xxxxxx <br/>
cf push liferaytest201602 -c 'bin/startup.sh' -p . <br/>

但是部署失败,我无法启动 liferay,出现这些错误:

...
"exit_description"=>"failed to accept connections within health check timeout", "crash_timestamp"=>1454828817}
...

好像端口监听设置有问题

有人可以帮忙告诉我如何解决这个问题吗?

谢谢和最好的问候,

藤原彰

-----添加信息-----

非常感谢您的评论。我重试如下:

  1. https://www.liferay.com/en/downloads/liferay-portal/available-releases 下载与 tomcat 捆绑在一起的 liferay zip 文件

  2. 命令:

tar xvf liferay-portal-tomcat-6.2-ce-ga6-20160112152609836.zip
cd liferay-portal-6.2-ce-ga6
cf api http://api.ng.bluemix.net
cf login
Email> xxxxxxx
Password> xxxxxxx

cf push akiraliferay -b https://github.com/shinji62/liferay-buildpack -c 'tomcat-7.0.62/bin/startup.sh’ .

但错误发生如下:

[Buildpack]                      ERROR Compile failed with exception
#<RuntimeError: No container can run this application. Please ensure
that you’ve pushed a valid JVM artifact or artifacts using the -p
command line argument or path manifest entry. Information about valid
JVM artifacts can be found at
https://github.com/cloudfoundry/java-buildpack#additional-documentation. >

我也试过:

cf push akiraliferay -b https://github.com/shinji62/liferay-buildpack -c 'tomcat-7.0.62/bin/startup.sh’

但结果是一样的。

你能帮我解决一下吗?如果您能帮我解决这个问题,我将不胜感激。

问候,

藤原彰

最佳答案

您不能将构建包推送到 Bluemix。 buildpack 为您的应用程序提供框架。您可以推送一个应用程序并指定您希望 Bluemix/CloudFoundry 用来运行该应用程序的构建包。

cf push <appName> -b <buildpack> -p <path of your app>

例如:

cf push myliferayapp -b https://github.com/shinji62/liferay-buildpack -p target/myliferayapp.war

关于tomcat - 用于 liferay/tomcat 的 Bluemix buildpack : failed to accept connections within health check timeout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35250823/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com