部署GAE Flex服务时出错 [英] Error Deploying GAE Flex Service
问题描述
使用gcloud app deploy
部署弹性服务(SDK版本127.0.0),出现以下错误:
Using gcloud app deploy
to deploy a flex service (SDK version 127.0.0), I get the following error:
错误:(gcloud.app.deploy)错误响应:[3] Docker映像us.gcr.io/my-project-name/appengine/my-service.20161012t140507:latest找不到,或者不在Docker V2格式.请访问 https://cloud.google.com/container-registry/docs/ui
我已经检查了容器注册表,可以看到该图像已上传,并且确实是v2图像:徽标表示它是a)图像存在,b)图像不存在按照 https://cloud.google.com/container-registry/docs/的v1格式ui .
I've checked my container registry, and I can see the image has uploaded and is indeed a v2 image: The logo indicates it's a) the image is there and b) the image is not in v1 format as per https://cloud.google.com/container-registry/docs/ui.
重要的是,我已经将完全相同的服务成功部署到了另一个项目.
Importantly, I've deployed the exact same service to a different project successfully.
I'm at a bit of a loss as to what to do next - I've already tried 'repairing' my project, as per https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps/repair and have re-authed my account.
推荐答案
我能够通过做三件事来解决该问题:
I was able to solve the problem by doing 3 things:
- 手动将项目的编辑者"权限授予App Engine服务帐户.这是具有以下电子邮件地址的帐户:
<project-id>@appspot.gserviceaccount.com
- 禁用和重新启用Billing API
- 禁用和重新启用App Engine Admin API.
我怀疑最后一个可以解决问题,因此欢迎您先尝试一下并在此处提供反馈.
I suspect that the last one alone should solve the problem, so you're welcome to try it first and give feedback here.
这篇关于部署GAE Flex服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!