Reputation: 1661
I've done a lot of researching on this error and found some posts here and on github but none of the resolutions they suggest are working for me. I'm receiving a pretty ambiguous error when trying to deploy my application to a flex environment on google cloud service app engine.
It works fine when I deploy to a standard app service in the app engine, but when I try to deploy to a flex service I receive this error:
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment.
I know it is nothing wrong with my application code nor my app.yaml because when I do the same deployment on another google cloud account, the service deploys fully, publishes, and I'm able to use the API. It is definitely something failing with my google cloud setup for this specific account. I'm pretty confident that I have all of the apis enabled and correct service account roles applied to this account that is not working, but obviously something is different.
One suggestion I read was to apply the role "App Engine flexible environment Service Agent" to my app engine default service account. That role did not exist on my other account that is working, but I tried anyway - no joy.
Here are my roles assigned to my service accounts on both my working google cloud account, and the non-working one.
Here is a comparison between my enabled APIs on both accounts:
I set both of these cloud accounts up and I do not recall doing anything differently for the one that is working than I did for the one that is not.
I've tried deploying through my cloud build trigger and manually running gcloud app deploy
.
I also tried the latter with --verbosity=debug which gives me only a little more information about the failure:
"done": true,
"error": {
"code": 13,
"message": "An internal error occurred during deployment."
},
"metadata": {
"@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
"endTime": "2022-08-14T00:25:57.780Z",
"insertTime": "2022-08-14T00:25:54.623Z",
"method": "google.appengine.v1.Versions.CreateVersion",
"target": "apps/my-app/services/your-app/versions/20220814t002258",
"user": "[email protected]"
},
This is a resource I've found similar to my issue: https://github.com/GoogleCloudPlatform/nodejs-getting-started/issues/153
I've tried every suggestion there and still having the problem.
I'm 100% certain it's not the code itself nor the app.yaml because it works fine on my other account. Any other suggestions of places to look would be greatly appreciated.
TIA
Upvotes: 5
Views: 419