首页 > 解决方案 > 如何修复部署错误 QUOTA_FOR_INSTANCES?

问题描述

我无法部署我的应用程序,也不知道如何修复它。我的 中没有任何缩放配置app.yaml,所以我假设我正在使用自动缩放的东西。我正在使用 flex 环境。

我现在只有两个应用程序实例,只有三个版本。所以我没有超过任何版本限制。

我昨天部署了一次,效果很好。当我更改了一些代码并再次进行部署时,发生了这种情况。(我没有将更改保存到不同的分支,所以我不知道这只是我的代码还是我需要在控制台中更改的一些配置)。

我在构建日志中没有看到任何与我的代码相关的内容。构建似乎成功了,因为它在日志中是绿色的并且说完成了。然后它无法更新并给我这个配额错误,我在任何文档中都找不到任何内容。

这与我在第一次部署后获得两个新域名有什么关系吗?(这有什么关系?)

这是错误:

DONE
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Updating service [default] (this may take several minutes)...failed.                                                                                                                                                                                                           
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/blah/regions/us-east1/operations/2c43cd11-2628-430b-9593-2020202020 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-05-15T12:29:00.026Z67978.jc.2: Deployment Manager operation blah/operation-1589545740347-5a5aef53528c6-475fc7be-b67854 errors: [code: "RESOURCE_ERROR"
location: "/deployments/abc-default-12300515t082612/resources/abc-default-12300515t082612"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"errors\":[{\"domain\":\"usageLimits\",\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'abc-default-12300515t082612\'. Limit: 8.0\",\"reason\":\"limitExceeded\"}],\"message\":\"Exceeded limit \'QUOTA_FOR_INSTANCES\' on resource \'abc-default-20200515t0820000\'. Limit: 8.0\",\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/blah/regions/us-east1/autoscalers\",\"httpMethod\":\"POST\"}}"

笨笨笨笨笨笨的;)

标签: google-app-enginedeploymentgae-quotas

解决方案


推荐阅读