【问题标题】:Updating service [default] (this may take several minutes)...failed更新服务 [默认](这可能需要几分钟)...失败
【发布时间】:2020-05-26 15:44:47
【问题描述】:

这过去一直运行良好,直到几天前正好 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,没有给我任何不同的结果

我不知道是什么导致了这个问题以及如何解决它,请帮忙。

【问题讨论】:

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


    【解决方案1】:

    Google 已经意识到这个问题,目前正在调查中。

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

    目前,该解决方案还没有预计到达时间,但一旦团队在该问题上取得进展,就会提供更新。

    【讨论】:

      【解决方案2】:

      我通过将其添加到我的 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

      【讨论】:

        猜你喜欢
        • 2017-03-05
        • 2022-09-30
        • 1970-01-01
        • 2010-10-25
        • 2017-05-28
        • 2021-04-14
        • 2018-06-03
        • 2018-09-27
        • 2022-10-21
        相关资源
        最近更新 更多