knctl icon indicating copy to clipboard operation
knctl copied to clipboard

Misleading error message when using deploy

Open MMisoch opened this issue 6 years ago • 2 comments

Hi, we tried to deploy a Java application via:

knctl deploy -s  cf-sample-app  --service-account docker-service-account     --image DOCKERIMAGE --namespace test --template buildpack -d=. 

Similar like #20 there was no error message and it hanged.

[...]
Tagging older revision 'cf-sample-app-00011' as 'previous'

Annotating new revision 'cf-sample-app-00012'

Looking at the revision we saw following error message:

buildtemplates.build.knative.dev "buildpack" not found

It turned out that we missed a ENV var to specify the jar/war path. When using knctl build we saw a meaningful error message.

build-step-build | None of the buildpacks detected a compatible application

MMisoch avatar Feb 14 '19 16:02 MMisoch

@MMisoch to clarify, did you have to add build template before getting a better error message?

cppforlife avatar Feb 26 '19 21:02 cppforlife

@cppforlife we used the exact same command with build create -b instead of deploy -s. After that we got the error message written above. The build create and deploy command worked as expected after we specified the env-var PACK_APP_ZIP to the folder, where our .jar file is located.

MMisoch avatar Feb 27 '19 07:02 MMisoch