Cloud foundry 由于堆栈不受支持,静态buildpack部署现在失败

Cloud foundry 由于堆栈不受支持,静态buildpack部署现在失败,cloud-foundry,ibm-cloud,Cloud Foundry,Ibm Cloud,我正在尝试使用静态文件将更新部署到一个简单的HTML应用程序。使用,我以前部署的应用程序没有任何问题 推送应用程序更新时,命令失败,并显示以下消息: ----> Downloaded app package (4.0K) Cloning into '/tmp/buildpacks/staticfile-buildpack'... Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-ex

我正在尝试使用静态文件将更新部署到一个简单的HTML应用程序。使用,我以前部署的应用程序没有任何问题

推送应用程序更新时,命令失败,并显示以下消息:

----> Downloaded app package (4.0K) Cloning into '/tmp/buildpacks/staticfile-buildpack'... Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' FAILED Server error, status code: 400, error code: 170004, message: App staging failed in the buildpack compile phase ---->下载的应用程序包(4.0K) 正在克隆到“/tmp/buildpacks/staticfile buildpack”。。。 子模块“编译扩展”(https://github.com/cloudfoundry-incubator/compile-extensions.git)已注册路径“编译扩展” 失败 服务器错误,状态代码:400,错误代码:170004,消息:应用程序暂存在buildpack编译阶段失败 在应用程序的日志中查找时,平台由于与堆栈不兼容而无法登台

ERR Cloning into '/tmp/buildpacks/staticfile-buildpack'... OUT Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions.git) registered for path 'compile-extensions' ERR Cloning into 'compile-extensions'... OUT Submodule path 'compile-extensions': checked out '1f260464c156bddfb654adb14298344797d030a1' ERR It looks like you're deploying on a stack that's not supported by this buildpack. ERR That could be because you're using a recent buildpack release on a deprecated stack. ERR If you're using the buildpack installed by your CF admin, please let your admin know you saw this error message. ERR 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. OUT Staging failed: Buildpack compilation step failed ERR encountered error: App staging failed in the buildpack compile phase 克隆到“/tmp/buildpacks/staticfile buildpack”时出错。。。 输出子模块“编译扩展”(https://github.com/cloudfoundry-incubator/compile-extensions.git)已注册路径“编译扩展” 克隆到“编译扩展名”时出错。。。 输出子模块路径“编译扩展”:已签出“1f260464c156bddfb654adb14298344797d030a1” ERR看起来您正在部署此构建包不支持的堆栈上。 这可能是因为您在不推荐使用的堆栈上使用了最新的buildpack版本。 错误如果您正在使用CF管理员安装的buildpack,请让管理员知道您看到了此错误消息。 错误如果您在某一点上指定了位于git URL的buildpack,请确保指向支持此堆栈的版本。 OUT转移失败:构建包编译步骤失败 ERR遇到错误:应用程序暂存在buildpack编译阶段失败
我如何解决这个问题

CloudFoundry最近增加了对基于Ubuntu 14.04的新堆栈cflinuxfs2的支持。IBMBlueMix仍然支持旧的lucid64构建堆栈,如果没有在命令行上指定堆栈,则默认情况下会选择该堆栈

查看,旧堆栈不受支持

cf_stacks: - cflinuxfs2 cf_堆栈: -cflinuxfs2 您可以在部署期间使用“-s”命令行参数显式设置应用程序堆栈

cf push -b https://github.com/cloudfoundry/staticfile-buildpack.git -s cflinuxfs2 cf push-bhttps://github.com/cloudfoundry/staticfile-buildpack.git -s cflinuxfs2
使用“cflinuxfs2”将解决此问题。

对于bluemix上存在此问题的任何其他人,我实际上无法在外部bluemix上使用cflinuxfs堆栈,但使用cflinuxfs2似乎可以工作

cf push -b https://github.com/cloudfoundry/staticfile-buildpack.git -s cflinuxfs2
编辑:在我正在使用的api端点上运行此命令,我得到了以下输出,因此我不得不使用cflinuxfs2:

> cf stacks
name         description
lucid64      Ubuntu 10.04
seDEA        private
cflinuxfs2   Ubuntu 14.04.2 trusty

另外:

为我工作,部署了一个Python/Django应用程序。今天为我解决了这个问题——cflinuxfs不起作用,但cflinuxfs2起作用。谢谢