Home > Enterprise >  GCP deployment fails on "Updating service"
GCP deployment fails on "Updating service"

Time:11-12

I have asp.net core application hosted on GCP App Engine. When I try to deploy the application it fails on last step:

Updating service [name] (this may take several minutes)... ...failed

ERROR: (gcloud.app.deploy) Error Response: [9] An internal error occurred while processing task /app-engine-flex/flex_await_healthy/flex_await_healthy>blablabla.wm.1

The exception stack trace show that service running in background couldn't find MySQL table (that table obviously exists).

my app.yaml file:

service: XXX
runtime: custom
env: flex
automatic_scaling:
  max_concurrent_requests: 80
  min_num_instances: 1
  max_num_instances: 1
resources:
  cpu: XXX
  memory_gb: XXX
beta_settings:
  cloud_sql_instances: "XXX:XXXX:XXXX=tcp:3306"

It looks like the application is deployed properly despite the error. This is the only error and backgroud service desn't throw any exceptions at later point. In fact it works properly and can connect to the database.

My guess was that maybe GCP is checking health while the application is not connected do database. So I tried to add liveness_check and readiness_check to app.yaml and configured dedicated /healthcheck endpoint in my application but it didn't make any change.

Any ideas how to fix it and what might be a cause?

CodePudding user response:

Deploying app with new version fixed the issue

  • Related