I'm trying custom buildpack, but i looks like the '
compile' step fails.
My app is a simple directory with one file 'hello.txt' that contains a one line string with the following manifest:
---
applications:
- name: hello
host: hello-${random-word}
When I push my app to
http://run.pivotal.io/, I get the following error:
Status Code: 400, Error code: 170004, message: App staging failed in the buildpack compile phase
When I check the app logs, I can't see what is causing the problem:
2015-04-03T10:25:39.34+0200 [API] OUT Created app with guid bc8aba44-80ae-4ffd-8adf-e4231c79c35b
2015-04-03T10:43:51.42+0200 [API] OUT Updated app with guid bc8aba44-80ae-4ffd-8adf-e4231c79c35b ({"name"=>"hello", "buildpack"=>"https://bitbucket.org/dzlab/custom-buildpack", "environment_json"=>"PRIVATE DATA HIDDEN"}) 2015-04-03T10:43:53.60+0200 [API] OUT Updated app with guid bc8aba44-80ae-4ffd-8adf-e4231c79c35b ({"route"=>"2d0f989d-19a3-444a-adf3-e4e1212146b3"})
2015-04-03T10:44:02.24+0200 [DEA] OUT Got staging request for app with id bc8aba44-80ae-4ffd-8adf-e4231c79c35b
2015-04-03T10:44:03.63+0200 [API] OUT Updated app with guid bc8aba44-80ae-4ffd-8adf-e4231c79c35b ({"state"=>"STARTED"})
2015-04-03T10:44:03.82+0200 [STG] OUT -----> Downloaded app package (4.0K)
2015-04-03T10:44:03.92+0200 [STG] ERR Cloning into '/tmp/buildpacks/custom-buildpack'...
2015-04-03T10:44:05.24+0200 [STG] OUT Staging failed: Buildpack compilation step failed
2015-04-03T10:44:05.71+0200 [API] ERR encountered error: App staging failed in the buildpack compile phase
I tried to chmod the bin folder, and after that I'm seeing following error:
2015-04-03T18:37:37.06+0200 [LGR] ERR proxy: error connecting to 10.10.16.255:8081: dial tcp 10.10.16.255:8081: no route to host
I tried also to add an echo at the beginning of each file but I can't see the messages!!
Any idea what is wrong in my buildpack or app?