【问题标题】:Google App Engine Error: app_bucket_name is requiredGoogle App Engine 错误:app_bucket_name 是必需的
【发布时间】:2018-10-02 01:29:32
【问题描述】:

我们已经为 Google App 部署设置了一个 CI,它一直运行良好,直到昨天,我们在部署到 Google App Engine 时遇到了问题,错误如下所示:

ERROR: (gcloud.app.deploy) Error Response: [13] Flex operation projects/projectname/regions/asia-northeast1/operations/f26017a5-ade6-42a6-bd49-1ea287e086 error [INTERNAL]: An internal error occurred while processing task /appengine-flex-v1/update_flex_deployment/flex_update_resources>2018-10-02T01:19:39.513Z362: app_bucket_name is required.

Details: [
  [
    {
      "@type": "type.googleapis.com/google.protobuf.Any",
      "value": {
        "@type": "type.googleapis.com/google.appengine.errors.AggregateDebugInfo",
        "debugInfo": {
          "stackEntries": [
            "java.lang.IllegalStateException: app_bucket_name is required.",
            "\tat com.google.common.base.Preconditions.checkState(Preconditions.java:507)",
            "\tat com.google.apphosting.admin.flex.resources.deployment.UpdateResourcesProducerModule.produceWriteGcsMetadata(UpdateResourcesProducerModule.java:323)",
            "\tSuppressed: com.google.common.util.concurrent.UncheckedExecutionException: ",
            "\t\tat com.google.apps.framework.producers.Present.checkSucceeded(Present.java:54)",
            "\t\tat com.google.apphosting.admin.flex.resources.deployment.UpdateResourcesProducerModule.patchDmDeployment(UpdateResourcesProducerModule.java:347)",
            "\tSuppressed: com.google.common.labs.concurrent.LabsFutures$10: GraphFuture{key=@com.google.apps.framework.producers.PrivateVisibility(annotation=\"@com.google.apphosting.admin.flex.resources.deployment.UpdateResourcesProducerModule$NarrowUpdateTargetDm\", module=com.google.apphosting.admin.flex.resources.deployment.UpdateResourcesProducerModule.class) com.google.apphosting.admin.flex.lib.dm.internal.proto.Deployment} failed: java.lang.IllegalStateException: app_bucket_name is required.",
            "\t\tat com.google.apps.framework.producers.PresentImpl.get(PresentImpl.java:29)",
            "\t\tat com.google.apphosting.admin.flex.resources.deployment.UpdateResourcesProducerModule.narrowDmUpdated(UpdateResourcesProducerModule.java:444)"
          ]
        }
      }
    }
  ]
]

Exited with code 1

有人知道我们该如何解决这个问题吗?

P/S:这与谷歌最近推出的cloud-tasks有关吗?

【问题讨论】:

    标签: google-app-engine


    【解决方案1】:

    正如Google Issue Tracker中所建议的:

    您好,当您尝试部署时,您是否覆盖了现有版本?如果是,您能否尝试使用新名称部署一个版本而不是覆盖它?您观察到的错误似乎是一个已知问题,因此在 App Engine 工程团队正在处理此问题时,这将是目前的一种解决方法。

    我尝试部署到新版本并且它可以工作,然后我将其切换回覆盖现有版本并且它再次工作。 (*也适用于其他应用程序。)

    不过,我们仍然不确定这个突然问题的原因。

    P/S:我还使用“Storage Legacy Bucket Owner”在存储桶中添加了对我的 CI 服务的权限

    【讨论】:

      猜你喜欢
      • 2010-12-07
      • 1970-01-01
      • 1970-01-01
      • 2012-01-25
      • 1970-01-01
      • 1970-01-01
      • 2011-08-11
      • 2013-01-17
      • 2010-09-16
      相关资源
      最近更新 更多