Google Cloud Deployment Error. Failed to get default Google Cloud Storage bucket for [project]

Not quite sure what I need to do here. I have a rails application setup and ready to deploy on the Google cloud platform, the last task is to rungcloud preview app deploy

The problem is that I am running it. I get errors.

ERROR: Error Response: [403] Request had insufficient authentication scopes.
ERROR: (gcloud.preview.app.deploy) Could not retrieve the default Google Cloud Storage bucket for [project]. Please try again or use the [bucket] argument.
root@project-small-group-1-po7p:/home/project/site/site# 

I am sure the errors are related. From searching for the error that I discovered, the Google API for storing data fixes the problem, and it created the default for this project. The repository API is now enabled, and I see that the buckets have been enabled, but the error still exists.

Maybe I need to create some kind of permissions from servers to buckets, but I don’t know if this is a problem, and if this is what I need to do to configure these permissions?

? 2 SQL rails .

+4
1

. , gcloud. :

gcloud auth login

gcloud auth activate-service-account --key-file SERVICE_ACCOUNT_JSON

. CI. JSON, Google Cloud:

  • "" > " ".
  • " ".
  • .
  • " "
  • JSON.
  • "".

, JSON, .

, .

+2

All Articles