Google Cloud Django 应用程序部署 - 权限问题
Google Cloud Django App Deployment - Permission Issues
我正在学习 this 教程,但当我尝试在 App Engine 上部署应用程序时却卡在了最后。
我收到以下错误消息:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/responder-289707/regions/europe-west6/operations/a0e5f3f4-29a7-49d8-98b5-4a52b7bf04ca error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2020-09-21T20:32:48.366Z12808.hy.0: Deployment Manager operation responder-289707/operation-1600720369987-5afd8c109adf5-6a4ad9a9-e71b9336 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200921t223056/resources/aef-default-20200921t223056"
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/responder-289707/regions/europe-west6/autoscalers\",\"httpMethod\":\"POST\"}}"
虽然我不太明白为什么。我已经验证了我的 gcloud,确保我的帐户拥有 App Engine Admin/Deployment 权限。一切就绪。
如有任何提示,我们将不胜感激。
您显然没有自动缩放资源的权限。这可能是由于免费帐户或您需要不同的权限来部署自动缩放服务(App Engine Admin/Deployment 除外)。
看你是如何完成教程的,你可以定义一个静态资源数量,这对你的钱包也更安全。
app.yaml
# add this
automatic_scaling:
min_num_instances: 1
max_num_instances: 2
我正在学习 this 教程,但当我尝试在 App Engine 上部署应用程序时却卡在了最后。 我收到以下错误消息:
Updating service [default] (this may take several minutes)...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/responder-289707/regions/europe-west6/operations/a0e5f3f4-29a7-49d8-98b5-4a52b7bf04ca error [INTERNAL]: An internal error occurred while processing task /app-engine-flex/insert_flex_deployment/flex_create_resources>2020-09-21T20:32:48.366Z12808.hy.0: Deployment Manager operation responder-289707/operation-1600720369987-5afd8c109adf5-6a4ad9a9-e71b9336 errors: [code: "RESOURCE_ERROR"
location: "/deployments/aef-default-20200921t223056/resources/aef-default-20200921t223056"
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/responder-289707/regions/europe-west6/autoscalers\",\"httpMethod\":\"POST\"}}"
虽然我不太明白为什么。我已经验证了我的 gcloud,确保我的帐户拥有 App Engine Admin/Deployment 权限。一切就绪。
如有任何提示,我们将不胜感激。
您显然没有自动缩放资源的权限。这可能是由于免费帐户或您需要不同的权限来部署自动缩放服务(App Engine Admin/Deployment 除外)。
看你是如何完成教程的,你可以定义一个静态资源数量,这对你的钱包也更安全。
app.yaml
# add this
automatic_scaling:
min_num_instances: 1
max_num_instances: 2