I have several projects having the same issue. It was deploying fine just a day ago. Now the deployment will quit with an error:
Build failed: Build error details not available.
The logs from the GCP is shown below (replaced with project-name):
{
"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"
}
It seems like the build fail when they couldn't find/access the cached copy of the image in us.artifacts bucket.
Have been trying to reach out to Google but there was no response so far. Anyone else having this issue? Not seen any reports by others so far.
Deleting the entire bucket from Google cloud storage (us.artifacts.{{project}}.appspot.com) not just its contents works for me.
firebase deploy --only functions:$name
I was then able to redeploy all functions via cloud build + locally via the firebase command
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With