Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

App Engine Deployment Error unhealthy deployment

Hi, I'm currently trying to deploy a nodejs application in app engine using a custom VPC hosted in another project, I have granted permissions and created firewall rules as described here https://cloud.google.com/appengine/docs/flexible/python/using-shared-vpc?hl=es_419

I have successfully deploy this app in an development project, but I'm trying to deploy the same App with the same resource configuration in a new project and I'm having the following error:

(gcloud-app.deploy) Error Response: [4] An internal error Occurred while processing task /app-engine-flex/flex await healthy/flex await healthy»28T16:01:36.9222177922.in.1: Your deployment has failed to become healthy in the allotted time and therefore was rolled back. If you believe this was an error try adjusting the 'app_start_timeout _sec' setting in the "readiness check' section.


I have created a new endpoint in /testResponse and configured the readiness check as follow

 

 

 

readiness_check:
  path: "/testResponse"
  check_interval_sec: 5
  timeout_sec: 4
  failure_threshold: 2
  success_threshold: 2
  app_start_timeout_sec: 1800

 

 

 

I can't understand why I did not have this error in the development project with the same app, resource and network configuration

Thank You in advance 

0 1 1,517
1 REPLY 1

Have you confirmed if on the last project you have configured the permissions shown on the troubleshooting page of App Engine? Lacking these permissions can cause the specific error you are seeing. For a shared VPC setup specifically, you should also review this troubleshooting section  in which it’s explained that the instance_tag within your app.yaml can cause this error message when using an App Engine Flex app in a shared VPC.

Otherwise, do you see any relevant logs to show from your App Engine service when you are trying to start it?