正在更新服务[默认](可能需要几分钟)...失败

时间:2020-05-26 15:44:47

标签: laravel google-app-engine google-cloud-build

以前一直工作得很好,直到几天前,恰好是4天后。当我运行gcloud app deploy时,它完成了构建,然后在完成构建后立即挂在更新服务上

以下是输出:

Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/just-sleek/regions/us-central1/operations/8260bef8-b882-4313-bf97-efff8d603c5f error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-05-26T05:20:44.032Z4316.jc.11: Deployment Manager operation just-sleek/operation-1590470444486-5a68641de8da1-5dfcfe5c-b041c398 errors: [
code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200526t070946/resources/aef-default-20200526t070946"
message: {
\"ResourceType\":\"compute.beta.regionAutoscaler\",
\"ResourceErrorCode\":\"403\",
\"ResourceErrorMessage\":{
\"code\":403,
\"errors\":[{
\"domain\":\"usageLimits\",
\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'aef-default-20200526t070946\'. Limit: 8.0\",
\"reason\":\"limitExceeded\"
}],
\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'aef-default-20200526t070946\'. Limit: 8.0\",
\"statusMessage\":\"Forbidden\",
\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/just-sleek/regions/us-central1/autoscalers\",
\"httpMethod\":\"POST\"
}
}"]

我尝试了以下解决错误的方法:

  • 我删除了所有以前的版本,并保留了正在运行的版本
  • 我跑了gcloud components update仍然失败。
  • 我创建一个新项目,将区域从[REGION1]更改为[REGION2],然后部署,并且仍然出现相同的错误。
  • 还跑了gcloud app deploy --verbosity=debug,并没有给我任何不同的结果

我不知道是什么原因导致了这个问题,如何解决这个问题,请协助。

2 个答案:

答案 0 :(得分:0)

Google已经知道此问题,目前正在调查中。

有一个Public Issue Tracker,您可以“加注星标”并关注,以便您可以接收有关此内容的任何进一步更新。此外,如果您同意自己的喜好,您可能会看到一些临时发布的解决方法。

目前,该解决方案尚无ETA,但团队在问题解决上会尽快提供更新。

答案 1 :(得分:0)

我通过将其添加到我的app.yaml中来解决了此问题

automatic_scaling:
  min_num_instances: 1
  max_num_instances: 7

我在这里找到了解决方案: https://issuetracker.google.com/issues/157449521

我也被重定向到:

gcloud app deploy - updating service default fails with code 13 Quota for instances limit exceeded, and 401 unathorizeed