Common Deploy Errors With Community Buildpacks in Bluemix

Posted by Jeff Sloyer on Wed, Jul 29, 2015
In Other,
Tags bluemix php buildpack

Recently the company that owns development for Ubuntu (Canonical) just announced it is dropping support for lucid 64 which is Ubuntu 10.04 LTS.  What does this mean for Cloud Foundry and the community buildpacks?

Well nothing really but there is a couple gotcha’s you should know about.

I have seen issues with the following buildpacks, this is not a comprehensive list but the ones I at least know about.

These issues are documented in a couple StackOverflow posts but we are going to go through what is causing it and how to fix it.

If you are pushing an app to Cloud Foundry and getting an error message like the following there is a workaround you need to do to get the community buildpack’s to work.

For example I have a super simple PHP app on Github I use for debugging, it is located here. For this blog post we are going to use that app.

git clone https://github.com/jsloyer/phpinfo.git
cd phpinfo
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

What this is saying is the instance of Cloud Foundry that you are running on the default stack you get is an old version of Ubuntu. The PHP buildpack excepts the newer version of linux. This stack is called cflinuxfs2 also known as Ubuntu 14.04.

To work around this you just need to specify the stack you want to use.

cf push phpinfo-jbs2 -b https://github.com/cloudfoundry/php-buildpack.git -s cflinuxfs2

More information can be found on this issue on Github.

comments powered by Disqus