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:

<https://lh3.googleusercontent.com/-u2CwC8i-QD0/WL7Kl7mgsyI/AAAAAAAANU4/nHyWHOOqVrYd3nwIOqwqXD-C32ig8bqJwCLcB/s1600/Immagine.png>











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 
<https://github.com/GoogleCloudPlatform/nodejs-docs-samples>), 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 
<http://stackoverflow.com/questions/42651008/cant-shutdown-app-engine-version-keeps-billing>
 and Serverfault 
<http://serverfault.com/questions/836804/cant-shutdown-app-engine-version-keeps-billing-xpost-from-stackoverflow>
.

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

Thank you very much.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2e8bbdcb-5878-472d-9bec-a30f7ef5b1dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to