由于 "Unhandled error cleaning up build images",无法部署 Cloud Functions
Can't deploy Cloud Functions because of "Unhandled error cleaning up build images"
我已经部署了数百个功能,这是我第一次遇到这个问题。简单地说,它停止部署函数进程,说:
Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. You can attempt to delete these images by redeploying or you can delete them manually at https://console.cloud.google.com/gcr/images/[project-name]/us/gcf
我的部署方式是通过 Firebase CLI 命令:firebase deploy --only functions:nameOfFunction
问题是我必须删除哪些图像?为什么?我该如何解决?
Cloud Functions 使用另一个名为 Cloud Build 的产品来构建实际部署的服务器映像。这些图像存储在 Cloud Storage 中,存储费用记入您的帐户。
了解更多信息:
- https://github.com/firebase/firebase-tools/issues/3404
- https://krasimirtsonev.com/blog/article/firebase-gcp-saving-money
观看:
您应该能够在 Google 云控制台中手动定位和删除文件。但是听起来这里有一个错误,文件没有被自动清理,所以你 contact Firebase support directly.
对我来说,这个问题似乎与我的 GCF 账单有关 (https://console.cloud.google.com/billing)
我不得不去我的账单账户查看我的支付方式是否已过期之类的,而 GCF 预测每月费用为 0.01 美元,因此在我更新支付方式之前部署云功能有点锁定。然后部署在更新后立即再次运行。构建清理控制台警告也消失了。
我在 firebase 控制台的功能日志中看到的错误是“结算帐户不可用”。我在 Google 中发现几乎为零的结果。这就是我在这里发布它的原因。
对我来说,这个问题是由一个愚蠢的错字引起的。
错误:
Functions deploy had errors with the following functions:
sendNotification(europe-west) i functions: cleaning up build files... ⚠ functions: Unhandled error cleaning up build images. This
could result in a small monthly bill if not corrected. You can attempt
to delete these images by redeploying or you can delete them manually
at...
解决方法是选择正确的区域。
错误的地区:
exports.sendNotification = functions
.region("europe-west")...
正确的地区:
exports.sendNotification = functions
.region("europe-west3")...
我已经部署了数百个功能,这是我第一次遇到这个问题。简单地说,它停止部署函数进程,说:
Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. You can attempt to delete these images by redeploying or you can delete them manually at https://console.cloud.google.com/gcr/images/[project-name]/us/gcf
我的部署方式是通过 Firebase CLI 命令:firebase deploy --only functions:nameOfFunction
问题是我必须删除哪些图像?为什么?我该如何解决?
Cloud Functions 使用另一个名为 Cloud Build 的产品来构建实际部署的服务器映像。这些图像存储在 Cloud Storage 中,存储费用记入您的帐户。
了解更多信息:
- https://github.com/firebase/firebase-tools/issues/3404
- https://krasimirtsonev.com/blog/article/firebase-gcp-saving-money
观看:
您应该能够在 Google 云控制台中手动定位和删除文件。但是听起来这里有一个错误,文件没有被自动清理,所以你 contact Firebase support directly.
对我来说,这个问题似乎与我的 GCF 账单有关 (https://console.cloud.google.com/billing) 我不得不去我的账单账户查看我的支付方式是否已过期之类的,而 GCF 预测每月费用为 0.01 美元,因此在我更新支付方式之前部署云功能有点锁定。然后部署在更新后立即再次运行。构建清理控制台警告也消失了。
我在 firebase 控制台的功能日志中看到的错误是“结算帐户不可用”。我在 Google 中发现几乎为零的结果。这就是我在这里发布它的原因。
对我来说,这个问题是由一个愚蠢的错字引起的。
错误:
Functions deploy had errors with the following functions: sendNotification(europe-west) i functions: cleaning up build files... ⚠ functions: Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. You can attempt to delete these images by redeploying or you can delete them manually at...
解决方法是选择正确的区域。
错误的地区:
exports.sendNotification = functions
.region("europe-west")...
正确的地区:
exports.sendNotification = functions
.region("europe-west3")...