2015-06-25 66 views
2

我試圖使用靜態文件將更新部署到簡單的HTML應用程序。使用static buildpack,我以前部署了沒有問題的應用程序。由於堆棧不受支持而導致靜態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 

我該如何解決這個問題?

回答

9

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'將解決該問題。

+0

爲我工作,部署Python/Django應用程序。 – Gocht

2

爲別人有上bluemix實際上,我是無法使用cflinuxfs堆棧上的外部bluemix,但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

+0

今天解決了我的問題 - cflinuxfs沒有工作,但cflinuxfs2沒有。謝謝! – krsyoung

相關問題