【问题标题】:Google Cloud Django App Deployment - Permission IssuesGoogle Cloud Django 应用部署 - 权限问题
【发布时间】:2021-01-07 23:44:47
【问题描述】:

我正在关注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 管理员/部署权限。一切就绪。

任何提示将不胜感激。

【问题讨论】:

    标签: django google-app-engine google-cloud-platform yaml


    【解决方案1】:

    您显然没有自动缩放资源的权限。这可能是由于使用了免费帐户,或者您需要不同的权限来部署自动扩缩服务(App Engine 管理员/部署除外)。

    看你如何做教程,你可以定义一个静态资源量,这对你的钱包也更安全。

    app.yaml

    # add this
    automatic_scaling:
      min_num_instances: 1
      max_num_instances: 2
    

    【讨论】:

      猜你喜欢
      • 2019-10-06
      • 2011-05-15
      • 1970-01-01
      • 2013-08-29
      • 1970-01-01
      • 2018-06-25
      • 1970-01-01
      • 2020-11-24
      • 2019-10-12
      相关资源
      最近更新 更多