Firebase 部署函数构建失败:构建错误详细信息不可用

Sha*_*aun 11 firebase google-cloud-build

我有几个项目有同样的问题。就在一天前,它部署得很好。现在部署将退出并出现错误:

构建失败:构建错误详细信息不可用。

GCP 的日志如下所示(替换为项目名称):

{
  "textPayload": "Step #5 - \"exporter\": \u001b[31;1mERROR: \u001b[0mfailed to export: failed to write image to the following tags: [us.gcr.io/project-name/gcf/us-central1/e2c2be8f-3c6d-4689-b474-21e8817b750e:ssr_version-162: GET https://storage.googleapis.com/us.artifacts.project-name.appspot.com/containers/images/sha256:b4c8acdb6f61130b2c632d1378bc84c602d6f4af2286fb9fb174e8f8376ec19f?access_token=REDACTED: unsupported status code 404; body: <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: us.artifacts.project-name.appspot.com/containers/images/sha256:b4c8acdb6f61130b2c632d1378bc84c602d6f4af2286fb9fb174e8f8376ec19f</Details></Error>]",
  "insertId": "1263383d-eff6-4302-bb99-8a8a2ad01867-554",
  "resource": {
    "type": "build",
    "labels": {
      "build_trigger_id": "",
      "build_id": "1263383d-eff6-4302-bb99-8a8a2ad01867",
      "project_id": "project-name"
    }
  },
  "timestamp": "2020-10-23T06:11:27.265803715Z",
  "severity": "INFO",
  "labels": {
    "build_step": "Step #5 - \"exporter\""
  },
  "logName": "projects/project-name/logs/cloudbuild",
  "receiveTimestamp": "2020-10-23T06:11:27.777967721Z"
}
Run Code Online (Sandbox Code Playgroud)

当他们无法在 us.artifacts 存储桶中找到/访问图像的缓存副本时,构建似乎失败了。

一直试图联系谷歌,但到目前为止还没有回应。还有谁有相同的问题吗?目前没有看到其他人的任何报道。

use*_*118 7

更新答案

从 Google 云存储 (us.artifacts.{{project}}.appspot.com) 中删除整个存储桶不仅仅是它的内容对我有用。

原始答案(以上更好)

  1. 从谷歌云功能界面我删除了所有功能
  2. 单独重新部署每个功能 firebase deploy --only functions:$name

然后,我能够通过云构建 + 通过 firebase 命令在本地重新部署所有功能