stefftaelman
stefftaelman

Reputation: 61

gcloud project owner permission denied

So I'm trying to run a training job on google cloud's AI-platform for an image classifier written in tensorflow by the command line:

gcloud ai-platform jobs submit training my_job \
          --module-name trainer.final_task \
          --staging-bucket gs://project_bucket \
          --package-path trainer/ \

but I keep getting the ERROR: (gcloud.ai-platform.jobs.submit.training) User [[email protected]] does not have permission to access project [my_project] (or it may not exist): Permission denied on 'locations/value' (or it may not exist).

I don't get how this is possible as I own the project on gcloud (with that e-mail address) and am even expressly linked to it on the IAM policy bindings. Has anyone experienced this before?

EXTRA INFO:

Upvotes: 6

Views: 6340

Answers (3)

Sourabh Jain
Sourabh Jain

Reputation: 628

The issue with me was that my notebook location was in a different region and I was trying to deploy in a different region. After I changed the location to my notebook location, it worked.

Upvotes: 1

Archetype
Archetype

Reputation: 307

I encountered the same problem, having an owner account have permissions denied for training a job. I had accidentally added "central1" as the server when it had to be "us-central1". Hopefully this helps!

Upvotes: 3

vitooh
vitooh

Reputation: 4272

I need little more information to be sure, but such error appears when you have different project set in Gcloud SDK. Please verify if project in gcloud config list project is the same as the project you want to use. If not please submit gcloud config set project [YOUR PROJECT]. You can verify the changes with list command again.

Upvotes: 1

Related Questions