Failed to start the Google Cloud app.

I follow the guide on the right side of the google cloud console for deploying a ruby ​​project, after cloning the demo source code, try using the gcloud app deploy --project fireflywytwyt to deploy, it causes the following error for me (unnecessary logs are omitted):

 ... 8820c09c846d: Image already exists 64fc2a97cff9: Image already exists 43f58141118b: Image already exists 575d6bde5efe: Image already exists 272ffca85019: Image already exists 90a62e26e551: Image already exists a51047f764d0: Image already exists 2c8496abe349: Image already exists 6e04b82f3d6e: Image already exists latest: digest: sha256:406115ccfa93d7cef120b2683f75c9f5b3821d8a11b8afbca7781240c293313e size: 72372 DONE --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Updating service [default]...failed. ERROR: (gcloud.app.deploy) Error Response: [7] The user fireflywytwyt@appspot.gserviceaccount.com must have permission to read the image at us.gcr.io/fireflywytwyt/appengine/def ault.20161124t144728:latest 

Note the error:

The user fireflywytwyt@appspot.gserviceaccount.com must have permission to read the image at us.gcr.io/fireflywytwyt/appengine/def

It seems my account cannot access the docker registry, how to fix it?

+6
source share
2 answers

You need to provide the user of the service (in your case fireflywytwyt@appspot.gserviceaccount.com ) the role of the editor. For this

  • Open the IAM and Admin page in the Cloud Platform console.

  • Select a project and click Continue.

  • Click Add Item.
  • Enter the email address of the service account, select the Editor role, and click Add.
+3
source

Grant the appropriate permissions to your service account:

gcloud projects add-iam-policy-binding $ {PROJECT_ID} \ msgstr "- roles / owner

+1
source

Source: https://habr.com/ru/post/1012615/


All Articles