Need help: I can't shutdown app engine version. Keeps billing.

2,139 views
Skip to first unread message

Marco Galassi

unread,
Mar 7, 2017, 10:02:30 AM3/7/17
to Google App Engine
I am not able to stop and consequently delete a app engine version.
I have 3 different versions at the moment, under the same default service:
  1.  gappa-v1, which is currently serving 100% of the traffic
  2.  mg-v1, which is currently stopped
  3.  20170223t163224

I am able to stop, restart and delete all the versions but the 20170223t163224 version.
I have tried everything, both from the Google Cloud Console, and the gcloud command-line tool.
Interacting from the Google Cloud Console is kinda useless because it gives me no feedback on the error, but just a generic Failed to stop version on 
a stop attemp or a generic The version could not be deleted on a delete attempt.

When interacting with the gcloud command line tool, I have tried:

    $> gcloud app versions stop 20170223t163224
    $> ERROR: (gcloud.app.versions.stop) INTERNAL: This flexible version cannot be modified, it can only be deleted.

Then if I try to delete it:

    $> gcloud app versions delete `20170223t163224`
    $> [default/20170223t163224]: Error Response: [13] Deployment Manager operation failed, name: operation-1488895382516-54a247861f121-d456a139-0b1e3fc6, error: [{"code":"RESOURCE_ERROR","locati
    on":"/deployments/aef-default-20170223t163224/resources/aef-default-20170223t163224-00","message":"{\"ResourceType\":\"compute.beta.regionInstanceGroupManager\",\"ResourceErrorCode\":\"400
    \",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
    f-default-20170223t163224'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
    f-default-20170223t163224'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://www.googleapis.com/compute/beta/projects/MYAPPID/regions/us-central1/instanceGroupMana
    gers/aef-default-20170223t163224-00\"}}"}]

Somewhere (I can't find where in this moment), the docs says I can't delete a version until traffic is allocated to it.  So, I made sure 
that the version has no traffic allocated. Infact the app engine console shows the following:












I have also tried to delete the single version instances using gcloud app instances delete INSTANCE_ID --service=default --version=20170223t163224.
This command didn't return any error, but had no effect, there are still 2 instances for version 20170223t163224.

I also tried to override the version deploying a new, basically empty app (hello world, from the google tutorial), but it didn't allow me to deploy it.
The biggest problem is that i am still getting charged for this version, as the version is still there, serving using 2 instances.

I have also posted this to Stackoverflow and Serverfault.

I am currently working with Google App Engine Flexible Environment and NodeJS.

Thank you very much.

Nick (Cloud Platform Support)

unread,
Mar 7, 2017, 4:50:47 PM3/7/17
to Google App Engine
Hey Marco,

This forum is for general and high level discussion of the platform and services that many users can contribute to, being more of a discussion forum than an issue-reporting forum. Unfortunately, the majority of users don't know this so it has the appearance of the latter. So, we're understanding when a user makes a post like this which is better directed to another forum. In your case, Stack Exchange was a better forum, but also isn't quite suited for that forum. As I commented on both your Stack Q&A's, this should have been posted either to the Issue Tracker or directly to Billing.

Best of luck!

Nick
Cloud Platform Community Support

Marco Galassi

unread,
Mar 8, 2017, 3:45:49 AM3/8/17
to Google App Engine
Hi Nick,
I understand, and in fact as soon as I was pointed out that I immediately report this issue at the Billing Support.
At the time I wrote this I had a wrong thought that even that support was only allowed to premium support users,
so I was searching for help in the communities.
Thank you very much for your help.

Marco

Nick (Cloud Platform Support)

unread,
Mar 8, 2017, 12:03:43 PM3/8/17
to Google App Engine
Hey Marco, 

I'm glad to hear you got in touch with Billing Support. If you've got any further questions, feel free to comment in this thread, but it seems things should go smoothly from here on out with Billing Support.

Cheers!


Nick
Cloud Platform Community Support

Reply all
Reply to author
Forward
0 new messages