Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop or Delete Deployed AppEngine Service [duplicate]

I cannot stop or delete versions of a project created as it was created as a flexible environment within the EU. I understand the restriction by region but cannot work out why it cannot be removed.

jamie@dartmoor-1320:~$ gcloud preview app versions delete 20160607t131220
Deleting the following versions:
 - dartmoor-1320/default/20160607t131220
Do you want to continue (Y/n)?  
Deleting [default/20160607t131220]...failed.
ERROR: (gcloud.preview.app.versions.delete) Issue deleting version: [default/20160607t131220]
[default/20160607t131220]: Error Response: [13] Managed VMs can not be hosted in the application's region. (e~))

The GUI fails too but with a non descript error message.

like image 977
latitudehopper Avatar asked Nov 16 '22 23:11

latitudehopper


2 Answers

You have to have at least one version for the default module. That's the reason why it doesn't allow you to delete it.

You need to deploy a new version, it can be a Flexible VM (deployed to another region in your situation), or Standard VM.

As a workaround, when you don't have any app to replace it right now, you can deploy an empty app instead. You have to create an app.yaml:

---
runtime: python38
handlers:
  - url: /
    script: auto

and deploy it using:

gcloud app deploy app.yaml

As your app.yaml doesn't have any script to execute, you'll not be charged for any instance.

like image 52
Igor Artamonov Avatar answered Jan 20 '23 03:01

Igor Artamonov


If you want to stop app engine you can disable it App Engine -> Settings -> Disable application

This will only stop traffic to you Application after that you can remove the instances.

like image 22
oussama fahd Avatar answered Jan 20 '23 02:01

oussama fahd