App Engine Updating service default Error

Solution 1:

The First Error ERROR: (gcloud.app.deploy) Error Response: [4] 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. can be due to different things:

  • Not having enough resources
  • Not having permissions in the VPC Network in case you have special VPC configurations.

For the first possibility increasing resources on the app.yaml can be enough.

resources:
 cpu: 2
 memory_gb: 2.3
 disk_size_gb: 10
 volumes:
 - name: ramdisk1
   volume_type: tmpfs
   size_gb: 0.5

For the Second Error: ERROR: (gcloud.app.deploy) Operation [apps/artise-server/operations/a3a9a2ac-f33b-4c94-93f1-88917372703e] timed out. This operation may still be underway.

This can be due deploying again with the same version ID, please try to deploy again with a different version ID, to set the version ID when deploying you can do it by deploying with the following line:

gcloud app deploy --version=VERSION_ID