Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java mvn build that fails with "Generic Build failure” but no maven error should give a helpful error message #19450

Closed
ge0ffrey opened this issue Apr 20, 2018 · 3 comments

Comments

@ge0ffrey
Copy link

ge0ffrey commented Apr 20, 2018

I build a maven project on OpenShift Dedicated with S2I, but the build fails with a "Generic Build failure - check logs for details."

However, the build log shows no error. So there is no clue what can cause this.

Apparently, it might be because the maven build went out of memory (although the log would show that normally) or it was killed because a timeout passed and the build took too long. Either way, OpenShift should mention any of such things happening - for example at the end of the log file.

To reproduce, throw this into SI2: https://github.com/kiegroup/optashift-employee-rostering/tree/c1c0081287917ac8925c170d7325bafdfb3a8a16

Relates to https://stackoverflow.com/questions/49937464/openshift-java-maven-build-generic-build-failure-but-log-shows-no-error

@jwforres
Copy link
Member

@openshift/sig-developer-experience

@bparees
Copy link
Contributor

bparees commented Jun 11, 2018

yes most likely the container was oom killed for trying to exceed the resource limit. because of the way builds work (spawning a separate container) k8s is left unaware of what happened.

ultimately we want to move away from doing builds in this way, so once we do that hopefully you'll be able to see a standard oom kill event on the build pod if this happens.

@bparees
Copy link
Contributor

bparees commented Jul 18, 2018

#20297 will surface OOMKilled events to the build object.

@bparees bparees closed this as completed Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants