【发布时间】:2020-06-02 10:14:01
【问题描述】:
我想删除旧版本的GAE应用程序,但是从5个月前开始删除操作总是失败。
错误消息是“此应用程序有一个待处理的操作。请稍候再试一次。
我认为向我们收取不必要的实例费用是不合适的,我们无法删除这些实例。
技术细节
GCP 控制台(GUI)
截图:https://gyazo.com/edcb1968944867c2a6a029efa7bf5bb5
从此页面删除版本失败。
错误消息是“此应用程序有一个待处理的操作。请稍候再试一次。
从此页面停止版本也失败了。
错误信息是'此灵活版本不能修改,只能删除。请重新部署版本。'
CLI
从 CLI 删除版本时的结果。 (发生内部错误)
# https://cloud.google.com/sdk/gcloud/reference/app/versions/delete
$ gcloud app versions delete 20191028t001234
Deleting the following versions:
- my-project/default/20191028t001234
Do you want to continue (Y/n)? Y
Deleting [default/20191028t001234]...failed.
ERROR: (gcloud.app.versions.delete) Issue deleting version: [default/20191028t001234]
[default/20191028t001234]: Error Response: [13] Flex operation projects/my-project/regions/asia-northeast1/operations/aab27279-89bf-4deb-aecd-d25352977d11 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/delete_flex_deployment/flex_delete_resources>2020-01-06T11:26:23.364Z38645.oj.0: Deployment Manager operation my-project/operation-1578309983602-59b76edeb0758-e471c6e1-71f4fbeb errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20191028t001234/resources/aef-default-20191028t001234-hcs"
message: "{\"ResourceType\":\"compute.v1.httpsHealthCheck\",\"ResourceErrorCode\":\"400\",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The https_health_check resource \'projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The https_health_check resource \'projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://compute.googleapis.com/compute/v1/projects/my-project/global/httpsHealthChecks/aef-default-20191028t001234-hcs\",\"httpMethod\":\"DELETE\"}}"
, code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20191028t001234/resources/aef-default-20191028t001234-00"
message: "{\"ResourceType\":\"compute.beta.regionInstanceGroupManager\",\"ResourceErrorCode\":\"400\",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The instance_group_manager resource \'projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The instance_group_manager resource \'projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\' is already being used by \'projects/my-project/global/backendServices/aef-default-20191028t001234-bs\'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/my-project/regions/asia-northeast1/instanceGroupManagers/aef-default-20191028t001234-00\",\"httpMethod\":\"DELETE\"}}"
]
【问题讨论】:
标签: ruby-on-rails google-app-engine