Re: how to debug "BuildpackCompileFailed" issue?


Noburou TANIGUCHI
 

Hi Ning,

Does anyone know how to debug "BuildpackCompileFailed" issue?
1) I think you'd better open another terminal and run `cf logs (appname)`
while pushing your app.

2) If you know something about buildpacks (especially about the 3 major
steps -- detect, compile, and release), I think this Anynines blog might
help:

http://blog.anynines.com/debug-cloud-foundry-java-buildpack/

However it is old and dealing with java-buildpack, it is still useful and
you can use it almost only by replacing "java" to "ruby".

*NOTE* There is no file `.java-buildpack.log` and no environment variable
`JBP_LOG_LEVEL` for ruby-buildpack.

*NOTE 2* The section "Start the server" is in app starting process, not in
app staging process. So you can't apply the process in the blog post.



Ning Fu wrote
Hi,

Does anyone know how to debug "BuildpackCompileFailed" issue?
When I push a ruby app:
========================
...
Done uploadingOK
Starting app happy in org funorg / space development as funcloud...
FAILEDBuildpackCompileFailed
TIP: use 'cf logs happy --recent' for more
informationPivotals-iMac:happy-root-route-app pivotal$ cf logs happy
--recent
Connected, dumping recent logs for app happy in org funorg / space
development as funcloud...
========================
But I got nothing from "cf logs happy --recent".
It is "ruby '2.2.2'" in Gemfile, and my ruby build back is cached-1.6.11.
I've also tried "bundle package --all" before I push.

Any suggestions? Doesn't ruby build pack provide any logs?

Thanks,
Ning




-----
I'm not a ...
noburou taniguchi
--
View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-how-to-debug-BuildpackCompileFailed-issue-tp4079p4119.html
Sent from the CF Dev mailing list archive at Nabble.com.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.