当在Google云端部署时,compute.beta.regionAutoscaler错误烧瓶应用程序会给出错误

时间:2020-06-22 15:35:33

标签: flask gcloud

P.s。这是一个烧瓶python3应用 我已经在本地主机上测试了该应用程序,并且运行良好,但是当我尝试将该应用程序部署到Google云端时,我得到的只是一个错误,我似乎无法解决,我甚至尝试提供计算引擎和应用引擎在iAM面板中具有管理员权限,但仍然没有成功,请提供帮助。

我在github https://github.com/ManinderSinghAjimal/flask-test-app-1.git上有代码

错误:

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/flask-1-281017/regions/asia-south1/operations/047ccf3a-d10b-446c-98fa-cf8b0030f076 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/insert_flex_deployment/flex_create_resources>2020-06-22T13:46:06.604Z15036.ow.0: Deployment Manager operation flask-1-281017/operation-1592833567657-5a8ac76fc8c66-e121f85c-538636c0 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200622t191524/resources/aef-default-20200622t191524"
message: "{\"ResourceType\":\"compute.beta.regionAutoscaler\",\"ResourceErrorCode\":\"403\",\"ResourceErrorMessage\":{\"code\":403,\"message\":\"The caller does not have permission\",\"status\":\"PERMISSION_DENIED\",\"statusMessage\":\"Forbidden\",\"requestPath\":\"https://compute.googleapis.com/compute/beta/projects/flask-1-281017/regions/asia-south1/autoscalers\",\"httpMethod\":\"POST\"}}"
]

这对我来说实际上是没有意义的,因此,如果有人可以提出建议,那将非常有帮助。

1 个答案:

答案 0 :(得分:0)

此问题可能与您项目所在区域中的资源有关(某些时候gcp资源在某些区域和区域中变少,并且难以在该区域/区域中部署应用程序)。您可以尝试其他方法例如,您可以尝试使用asia-northeast3