静态buildpack部署现在由于不支持堆栈而失败 [英] Static buildpack deploy now failing due to unsupported stack

查看:82
本文介绍了静态buildpack部署现在由于不支持堆栈而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to deploy an update to a simple HTML application using static files. Using the static buildpack, I've previously deployed the application with no issues.

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

Pushing an application update, the command fails with the following message:


----> 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

在查看应用程序的日志时,平台由于与堆栈不兼容而无法登台。

Looking in the logs for the application, the platform fails staging due to an incompatibility with the stack.


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构建堆栈,如果未在命令行上指定堆栈,则默认情况下会选择该堆栈。

Cloud Foundry recently added support for a new stack, cflinuxfs2, based upon Ubuntu 14.04. IBM Bluemix still supports the old lucid64 build stack, which appears to be chosen by default if a stack isn't specified on the command line.

查看静态Buildpack清单,不支持旧的堆栈。

Looking at the "Static Buildpack" manifest, the old stack isn't supported.


cf_stacks:
    - cflinuxfs2

您可以在部署期间使用 -s命令行参数显式设置应用程序堆栈。

You can explicitly set the application stack during deploying using the '-s' command-line parameter.


    cf push -b https://github.com/cloudfoundry/staticfile-buildpack.git -s cflinuxfs2

使用'cflinuxfs2'将解决此问题。

Using the 'cflinuxfs2' will fix the issue.

这篇关于静态buildpack部署现在由于不支持堆栈而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆