Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permissions Error Exporting a table from Google BigQuery to Google Cloud Storage

Getting the following error as of 2017-07-08 when exporting a table to Cloud Storage.

Access Denied: BigQuery BigQuery: Permission denied while writing data

Working fine before that date, haven't changed anything in the project, big query or cloud storage.

JobId: alert-basis-89415:bquijob_6adfd86e_15d2de5ce1b

like image 340
Breandán Avatar asked Jul 10 '17 20:07

Breandán


2 Answers

I was getting a similar error. It was because I was using a bucket in region different from the BQ dataset, and a incorrect bucket URL. After I ensured following two

  • I double checked and fixed specified bucket URL is correct
  • I created bucket in same region that the data resides

I was good

like image 194
Yogesh Devi Avatar answered Oct 18 '22 20:10

Yogesh Devi


It appears the user running the job doesn't have storage.objects.create permission to the GCS bucket - perhaps something changed with bucket permissions? Is this still recurring, can you explicitly add that user to the bucket ACLs?

like image 45
Victor Mota Avatar answered Oct 18 '22 20:10

Victor Mota