Error Deploying GAE Flex Service

馋奶兔 提交于 2019-12-22 09:55:08

问题


Using gcloud app deploy to deploy a flex service (SDK version 127.0.0), I get the following error:

ERROR: (gcloud.app.deploy) Error Response: [3] Docker image us.gcr.io/my-project-name/appengine/my-service.20161012t140507:latest was either not found, or is not in Docker V2 format. Please visit https://cloud.google.com/container-registry/docs/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.


回答1:


I was able to solve the problem by doing 3 things:

  1. Manually giving the "Editor" permission for your project to the App Engine service account. It's the account with the email like: <project-id>@appspot.gserviceaccount.com
  2. Disabling and re-enabling the Billing API
  3. Disable and re-enable the 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.



来源:https://stackoverflow.com/questions/40008503/error-deploying-gae-flex-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!