App Engine - Deployment Failing

1,193 views
Skip to first unread message

Stephen Heron

unread,
Apr 20, 2021, 11:35:40 AM4/20/21
to Google App Engine

Hello,

I am seeing a strange issue when I am attempting to deploy to App Engine. My deployments have been working for months now with no issues but in the last few days I am getting a strange error. I have redacted some information. 

My deployment command is pretty standard: 

`gcloud --quiet app deploy app.yaml dispatch.yaml --project=XXX`

And all looks good until the very end 

Stopping version [XXXX].
Sent request to stop version [XXX]. This operation may take some time to complete. If you would like to verify that it succeeded, run: $ gcloud app versions describe -s XXX until it shows that the version has stopped.
Deployed service [XXX] to [XXX]
Updating config [dispatch]....failed.
ERROR: (gcloud.app.deploy) Apps instance [XXX] is the subject of a conflict: Cannot operate on XXX because an operation is already in progress for XXXX by 4143835e-704c-470a-965d-94087c37ab39. 

The GUID in the error message changes every time and it looks to be referring to the current deployment. If I run ‘gcloud app operations list’ and look for the GUID then I can see it in the list and it has a status of complete. 

It almost as if updating the dispatch config is failing due to the current deployment being in progress but this hasn't been an issue before.

This is all done through our CI system which hasn’t changed. We use the ‘google/cloud-sdk:alpine’ Docker image to preform the deployment. 

At a bit of a loss if I am being honest. 

Any advice or a point in the right direction would be great.

Thanks,
Stephen 

David (Cloud Platform Support)

unread,
Apr 20, 2021, 6:05:25 PM4/20/21
to Google App Engine

Hello,

This issue could be occurring due to a preoccupied running operation. If this is the case, to avoid this error, you may need to add to your build steps a ‘waitFor’ 12

If this doesn’t help, I would suggest you to contact Google Cloud Platform Support so they can investigate further.

Reply all
Reply to author
Forward
0 new messages