由于不受支持的堆栈,静态 buildpack 部署现在失败
Static buildpack deploy now failing due to unsupported stack
我正在尝试使用静态文件将更新部署到一个简单的 HTML 应用程序。使用 static buildpack,我之前部署的应用程序没有任何问题。
推送应用程序更新时,命令失败并显示以下消息:
----> 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
查看应用程序的日志,由于与堆栈不兼容,平台无法登台。
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
我该如何解决这个问题?
Cloud Foundry 最近添加了对基于 Ubuntu 14.04 的新堆栈 cflinuxfs2 的支持。 IBM Bluemix 仍然支持旧的 lucid64 构建堆栈,如果未在命令行中指定堆栈,则默认情况下会选择它。
查看 "Static Buildpack" manifest,不支持旧堆栈。
cf_stacks:
- cflinuxfs2
您可以在部署期间使用“-s”命令行参数显式设置应用程序堆栈。
cf push -b https://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
另外:https://developer.ibm.com/answers/questions/198303/cloudfoundry-static-buildpack-not-compatible.html
我正在尝试使用静态文件将更新部署到一个简单的 HTML 应用程序。使用 static buildpack,我之前部署的应用程序没有任何问题。
推送应用程序更新时,命令失败并显示以下消息:
----> 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
查看应用程序的日志,由于与堆栈不兼容,平台无法登台。
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
我该如何解决这个问题?
Cloud Foundry 最近添加了对基于 Ubuntu 14.04 的新堆栈 cflinuxfs2 的支持。 IBM Bluemix 仍然支持旧的 lucid64 构建堆栈,如果未在命令行中指定堆栈,则默认情况下会选择它。
查看 "Static Buildpack" manifest,不支持旧堆栈。
cf_stacks: - cflinuxfs2
您可以在部署期间使用“-s”命令行参数显式设置应用程序堆栈。
cf push -b https://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
另外:https://developer.ibm.com/answers/questions/198303/cloudfoundry-static-buildpack-not-compatible.html