Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Deploying GAE Flex Service

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.

like image 227
DaveBensonPhillips Avatar asked Aug 06 '26 10:08

DaveBensonPhillips


1 Answers

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.

like image 183
Michał Czapliński Avatar answered Aug 09 '26 01:08

Michał Czapliński



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!