将PHP应用程序推送到Bluemix会导致BuildpackCompileFailed

时间:2015-07-29 13:28:40

标签: php ibm-cloud buildpack

我正在尝试使用cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git将我的PHP应用推送到Bluemix,我收到一条消息“{1}}(下面的完整错误)。

有关如何解决此问题的任何想法?

BuildpackCompileFailed

2 个答案:

答案 0 :(得分:1)

最近,拥有Ubuntu(Cannonical)开发的公司刚刚宣布它正在放弃对清醒64的支持,即Ubuntu 10.04 LTS。这对Cloud Foundry和PHP buildpack意味着什么?

没什么,但是你应该知道一些问题。

如果您正在将应用推送到Cloud Foundry并收到如下错误消息,则需要采取一种解决方法来使PHP buildpack工作。

[08:49 AM] jsloyer@Jeffs-MacBook-Pro-2 [php]>cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git
.....
It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
That could be because you're using a recent buildpack release on a deprecated stack.
If you're using the buildpack installed by your CF admin, please let your admin know you saw this error message.
If you at one point specified a buildpack that's at git URL, please make sure you're pointed at a version that supports this stack.
Staging failed: Buildpack compilation step failed

FAILED
BuildpackCompileFailed

这就是说,您在默认堆栈上运行的Cloud Foundry实例是旧版本的Ubuntu。 PHP buildpack期望更新版本的linux。此堆栈称为[08:49 AM] jsloyer@Jeffs-MacBook-Pro-2 [php]>cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git Creating app phpinfo-jbs2 in org jbsloyer@us.ibm.com / space dev as jbsloyer@us.ibm.com... OK Creating route phpinfo-jbs2.mybluemix.net... OK Binding phpinfo-jbs2.mybluemix.net to phpinfo-jbs2... OK Uploading phpinfo-jbs2... Uploading app files from: /Users/jsloyer/Downloads/php Uploading 717, 3 files Done uploading OK Starting app phpinfo-jbs2 in org jbsloyer@us.ibm.com / space dev as jbsloyer@us.ibm.com... -----> Downloaded app package (4.0K) Cloning into '/tmp/buildpacks/php-buildpack'... Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions) registered for path 'compile-extensions' Cloning into 'compile-extensions'... Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b' It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack. That could be because you're using a recent buildpack release on a deprecated stack. If you're using the buildpack installed by your CF admin, please let your admin know you saw this error message. If you at one point specified a buildpack that's at git URL, please make sure you're pointed at a version that supports this stack. Staging failed: Buildpack compilation step failed FAILED BuildpackCompileFailed TIP: use 'cf logs phpinfo-jbs2 --recent' for more information ,也称为cflinuxfs2

要解决此问题,您只需指定要使用的堆栈。

Ubuntu 14.04

有关此问题的更多信息,请访问https://github.com/cloudfoundry/php-buildpack.git

答案 1 :(得分:-1)

要避免这些类型的问题,您可以使用已预先安装到Bluemix中的兼容buildpack。

cf push <appname> -b php_buildpack

要查看所有预安装的构建包:

cf buildpacks