TPU VM access Cloud Storage 403 forbidden when uploading and writing files

228 views
Skip to first unread message

Daisy Wang

unread,
Mar 24, 2022, 12:13:10 PM3/24/22
to gce-discussion
When I run my python command to train my model on my tpu-vm, it failed on writing files to Cloud Storage.
I think that maybe there are some permissions that I don't give. I have two service accounts, one is like project-i...@developer.gserviceaccount.com, and the other is like service-p...@cloud-tpu.iam.gserviceaccount.com.
I try to add the storage admin to both of them. But it doesn't work. Looking for your help!

The following link is my question and error picture. Looking for your reply.
https://stackoverflow.com/questions/71603984/tpu-vm-access-cloud-storage-403-forbidden-when-writing-files

mghaya...@google.com

unread,
Mar 24, 2022, 1:24:29 PM3/24/22
to gce-discussion
storage.objects.get is the demand for viewing files from GCS, but it looks like your user account or email does not has the right permission.
How should I know my account has the right permission?
I think there's a simple solution to figure it out.

“403 - Forbidden" errors could be due to having Data access logs in Cloud Audit logs configured [1]. - Verified that indeed the affected bucket had Data Access logging enabled [2].

Reply all
Reply to author
Forward
0 new messages