Search code examples
google-app-enginegoogle-cloud-platformapp-engine-flexible

GCP App Engine flex (GAE): Error when deploying


When deploying using gcloud app deploy I get the following error:

Timed out waiting for the app infrastructure to become healthy gcp

I contacted GCP Support and they told me the same thing I had read in other threads:

the error you are referring to may be related to the Compute Engine “In-Use IP Addresses” Quota limit. You can view your current quota limit information by accessing from your GCP menu “IAM & Admin > Quotas”.

I checked the "In-Use IP Addresses" and it doesn't seem like I have a problem with quotas:

My current quota image

Looking for the error, I found that in the Activity tab, when deploying, I get an error. Apparently , when App Engine is trying to delete a VM, the process starts to loop trying to delete it. You can see the error:

here

(I intentionally covered the project ID)

Edit: It seem like the problem is only with southamerica-east1. I created a new project in southamerica-east1 but I kept getting the same error, so then I created a new project with the App Engine in us-west2 and worked like a charm (I used the same application and app.yaml). I wonder if the problem is GCP southamerica-east1 or a unknown bad configuration by my side.


Solution

  • At the end we didn't find a real solution so we moved all our services from Brazil to US-2. I'm not sure if the Region is the problem, but there in US-2 all works like a charm