【问题标题】:Google Cloud: Build always fails, MANIFEST_UNKNOWN error谷歌云:构建总是失败,MANIFEST_UNKNOWN 错误
【发布时间】:2020-10-24 19:24:52
【问题描述】:

我正在尝试部署一个应用引擎应用程序,但无论我尝试部署哪个代码,即使它是从他们的示例中获取的:

https://github.com/GoogleCloudPlatform/golang-samples

我得到同样的错误:

Step #1: error building image: getting stage builder for stage 0: MANIFEST_UNKNOWN: "Manifest with digest 'sha256:249859465bcde1cb15128ff0d9eb2bb54de67f72a834a7576e6649cfe0a27698' has media type 'application/vnd.docker.distribution.manifest.list.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json'."

我不擅长 devops,所以不知道如何解决这个问题

【问题讨论】:

  • 你能提供更多细节吗?你执行哪个命令?什么版本?你的 app.yaml 文件的内容是什么,...
  • 我们需要详细信息才能继续。请提供。

标签: google-app-engine google-cloud-platform google-cloud-build


【解决方案1】:

我今天在 AppEngine Flexible 上部署时遇到了同样的问题。 我不认为这是你能做的事情。 我在 github 上打开了一个 issue,希望 google cloud 团队能尽快修复它。

关于信息,OP 的问题是,在运行 gcloud app deploy app.yaml 时,他希望应用程序被部署。

Cloud Build 尝试获取其不理解的媒体类型的图像。

得到:application/vnd.docker.distribution.manifest.list.v2+json 预期:application/vnd.docker.distribution.manifest.v2+json

Step #0: gcr.io/gcp-runtimes/go1-builder@sha256:7b53332a8e6418ba9a3f123c29dd5fe075504d0f9c0b683edfc7e7b75cd27822
Finished Step #0
Starting Step #1
Step #1: Already have image (with digest): gcr.io/kaniko-project/executor@sha256:f87c11770a4d3ed33436508d206c584812cd656e6ed08eda1cff5c1ee44f5870
Step #1: INFO[0000] Downloading base image gcr.io/distroless/base@sha256:884ac2144c3ee154bd67271e99bc6ef00f430092750167729b0321ab55fde5ec 
Step #1: error building image: getting stage builder for stage 0: MANIFEST_UNKNOWN: "Manifest with digest 'sha256:884ac2144c3ee154bd67271e99bc6ef00f430092750167729b0321ab55fde5ec' has media type 'application/vnd.docker.distribution.manifest.list.v2+json', but client accepts 'application/vnd.docker.distribution.manifest.v2+json'."

【讨论】:

    【解决方案2】:

    Google 回复了这个 bug ticket 说降级到我刚刚测试过的 gcloud 315.0.0 并且它工作正常。

    gcloud components update --version 315.0.0

    【讨论】:

      【解决方案3】:

      我遇到了同样的问题并通过添加来解决

      服务:默认

      在我的 app.yaml 中

      【讨论】:

        【解决方案4】:

        我最近遇到了同样的问题。经过一番挖掘,事实证明该问题已在 GCP 问题跟踪器上报告:https://issuetracker.google.com/issues/171756486

        作为一种解决方法,更新app.yaml 文件以包含runtime: go1.13

        更新:

        使用runtime: go1.13 部署仅适用于第一次运行。 尝试重新部署时仍然会失败。

        更新 2:

        Google 团队已经回滚了他们这边的问题。 (source)

        要使其正常工作,您需要将您的 gcloud 降级到版本 315.0.0

        gcloud components update --version 315.0.0
        

        之后,部署将照常进行。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2020-05-21
          • 1970-01-01
          • 2019-01-24
          • 2020-01-03
          • 2020-10-08
          • 1970-01-01
          • 2015-09-26
          • 2021-02-12
          相关资源
          最近更新 更多