I am building 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.
Why is this build failing?
Check the limits as @Graham suggested, by:
oc -n yourproject get limits -o yaml
oc -n yourproject get quota -o yaml
Or even go straight to edit:
oc -n yourproject edit limits
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
kind: LimitRange
metadata:
creationTimestamp: 1999-08-11T13:58:34Z
name: resource-limits
namespace: yourproject
resourceVersion: "61912526"
selfLink: /api/v1/namespaces/betvictor/limitranges/resource-limits
uid: 2a275347-7e9d-11e7-8242-005056957160
spec:
limits:
- max:
memory: 3001Mi
min:
memory: 10Mi
type: Pod
- default:
memory: 300Mi
defaultRequest:
memory: 250Mi
max:
memory: 3000Mi
min:
memory: 10Mi
type: Container
Pay attention to the units, better if they are the same for each entry. Pod maximum has to be equal or more than the container max.
Half a gig for building a java app is not much for what I can tell...