liferay / tomcat的Bluemix buildpack:在运行状况检查超时内未能接受连接

时间:2016-02-07 07:14:55

标签: tomcat liferay ibm-cloud devops buildpack

我正在尝试通过以下方式将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/>

但是部署失败了,我无法解决这些错误:

...
"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 zip文件捆绑在一起的liferay

  2. 命令:

  3. 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’
    

    但结果是一样的。

    你能帮我解决一下吗? 如果你能帮助我解决这个问题,我非常感激。

    的问候,

    藤原晃

1 个答案:

答案 0 :(得分:0)

您无法将buildpack推送到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