You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法部署Cloud Function(gen1):需确保us.gcr.io读写权限

Cloud Functions Gen1部署时Artifact Registry权限验证失败

部署简单Cloud Functions Gen1时触发权限错误,具体报错如下:

"build": ERROR: failed to initialize analyzer: validating registry write access: ensure registry read/write access to us.gcr.io/project_xxx/gcf/northamerica-northeast1/3c5aeef8-dfbd-43de-9873-16a1b68e54ed/cache:4f2ca2a4-acef-42e1-94e2-3123fcd93c70"

已执行的排查/修复操作:

  • 本人持有项目Owner权限,先为Cloud Function关联的服务账号授予Artifact Registry Administrator角色,未解决问题
  • 更新1:为cloudbuild.gserviceaccount.com服务账号也添加Artifact Registry Administrator角色,报错依旧
  • 更新2:给上述两个服务账号均赋予Owner权限,问题仍存在;检查us.gcr.io对应的目标路径为空,删除并重建函数后无效
  • 更新3:确认Cloud Build设置已配置所有必要权限,问题未得到解决

内容的提问来源于stack exchange,提问作者Gaurang Shah

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 10:33:08