Reputation: 3987
I'm getting below error when I try to deploy an Spring Boot app to google cloud.
(gcloud.app.deploy) Error Response: [13] Unexpected Error.
I'm using com.google.cloud.tools:appengine-maven-plugin version 1.3.1, goal deploy. This error message is not useful at all! I appreciate any help with this as I am not much familiar with Google Cloud. Where should I start looking?
[INFO] GCLOUD: d4498962e4fc: Pushed
[INFO] GCLOUD: latest: digest: sha256:1c2516746601c4fe68dac3507fe684380b122ebc1801e8dc234599825d3cfb89 size: 2416
[INFO] GCLOUD: DONE
[INFO] GCLOUD: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[INFO] GCLOUD:
[INFO] GCLOUD: Updating service [default]...
[INFO] GCLOUD: .....................failed.
[INFO] GCLOUD: ERROR: (gcloud.app.deploy) Error Response: [13] Unexpected Error. ()
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
Upvotes: 6
Views: 15409
Reputation: 314
Same issue. My problem was my cloudbuild.yaml was trying to deploy the app, which I intended to call via a Cloud Built Trigger. Only problem was it was in the root dir, which "gcloud app deploy" also tries to use when you deploy. The app would try to recursively deploy over and over causing the error.
Solution: move cloudbuild.yaml into a different directory, and configure the build trigger to point to that path, (instead of just looking for it in the root dir, wihch is the default behavior) which they make really easy to do in the gcloud console.
Upvotes: 1
Reputation: 705
Simply rename your main python file (maybe it is app.py) to main.py In the resources section of yaml file increase the number of cpu and the assigning memory if you are with the flex plan.
Upvotes: -1
Reputation: 3987
Turns out, same problem encountered by others.
Result of this ticket must bring a resolution.
Upvotes: 3