Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcloud compute tpus list => ERROR: (gcloud.compute.tpus.list) PERMISSION_DENIED #227

Closed
alexryan opened this issue Oct 25, 2018 · 2 comments

Comments

@alexryan
Copy link

I was trying to debug an error that I am getting when I try to train with MNIST:
__init__.py:44] file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth

and was following the troubleshooting steps:
https://cloud.google.com/tpu/docs/troubleshooting

when I got this other strange error:
>gcloud compute tpus list ERROR: (gcloud.compute.tpus.list) PERMISSION_DENIED: Read access to project 'annotator-1286' was denied

I am running running version 1.7 of ctpu on macOS High Sierra

I it unclear to me why I am getting this error.
$GOOGLE_APPLICATION_CREDENTIALS is set correctly.

The active config is also correct.
`>gcloud config list
[compute]
region = us-central1
zone = us-central1-a
[core]
account = annotator@annotator-1286.iam.gserviceaccount.com
disable_usage_reporting = False
project = annotator-1286

Your active configuration is: [annotator]
`

The only thing I can think of is that the zone tpu was launched in a different zone like so.
ctpu up --zone us-central1-b --preemptible --name alex-tpu

I'm wondering if this auth issue is related to the auth issue that I am getting when I try to train MNIST on the vm?
https://cloud.google.com/tpu/docs/tutorials/mnist

@chrislarkin
Copy link

@alexryan: gcloud is using us-central1-a as its default zone. If you created the TPU in another zone, you need to either update the default or pass the zone manually:

gcloud compute tpus list --zone us-central1-b

@alexryan
Copy link
Author

@chrislarkin: That works. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants