Date
1 - 2 of 2
Failed to start Native apps in CF using null-build pack
JT Archie <jarchie@...>
Balaramaraju,
It looks like in your *CF logs* that you are pushing the app with an incorrect start command, most likely with the meta information from a Procfile. Please try deploying the application like this: *cf push helloWorld2 -b https://github.com/ryandotsmith/null-buildpack <https://github.com/ryandotsmith/null-buildpack> --no-route -c "helloWorld2.sh" -s lucid64* If you experience further problems with the app not starting. Please try the new binary-buildpack <https://github.com/cloudfoundry/binary-buildpack> that cf-release will start supporting. Kind regards, JT On Thu, May 7, 2015 at 5:34 AM, Balaramaraju JLSP <balaramaraju(a)gmail.com> wrote: Hi All, |
|
Balaramaraju JLSP <balaramaraju@...>
Hi All,
We are unable to push a sample c++ application using null-buildpack; seems it has worked for others (as documented here : https://groups.google.com/a/cloudfoundry.org/forum/#!searchin/vcap-dev/null-buildpack/vcap-dev/oTYbHg_JJXU/_e30a2m3qr4J) , but we are not able to get it to work yet. Steps followed : 1. build a sample c++ application using g++ compiler on the linux vm; 2. Transfer that file to windows system; 3. Push that application using null-buildpack to both pivotal CF Source :- #include <stdio.h> int main(int argc, char* argv[]) { while(1==1) { printf("Hello World\n"); } return 0; } Build Command :- gcc -Wall helloWorld.c -o bin/helloWorld.sh OS :- Cent OS 6.5 x64 CF command [from win 7] :- D:\Cloud\Native>*cf push **helloWorld2 **-b https://github.com/ryandotsmith/null-buildpack <https://github.com/ryandotsmith/null-buildpack> --no-route -c "* *helloWorld2 **.sh"* CF logs :- *D:\Cloud\Native>cf push helloWorld2 -b https://github.com/ryandotsmith/null-buildpack <https://github.com/ryandotsmith/null-buildpack> --no-route -c "web: helloWorld2.sh" -s lucid64* *Using stack lucid64...* *OK* *Updating app helloWorld2 in org rootOrg / space development as .* *OK* *App helloWorld2 is a worker, skipping route creation* *Uploading helloWorld2...* *Uploading app files from: D:\Cloud\Native* *Uploading 6.6K, 2 files* *OK* *Stopping app helloWorld2 in org rootOrg / space development as .* *OK* *Starting app helloWorld2 in org rootOrg / space development as ...* *OK* *-----> Downloaded app package (4.0K)* *-----> Downloaded app buildpack cache (4.0K)* * Cloning into '/tmp/buildpacks/null-buildpack'...* * -----> Nothing to do.* *-----> Uploading droplet (4.0K)* *0 of 1 instances running, 1 down* *0 of 1 instances running, 1 down* *0 of 1 instances running, 1 down* Any help offered is greatly appreciated!!! Is this native application need to build on Ubuntu alone, since CF uses it ? |
|