Firestore Export

449 views
Skip to first unread message

phi...@nex.team

unread,
Aug 13, 2018, 9:07:11 PM8/13/18
to Firebase Google Group
Hi there,

I am trying out the new export feature of the FireStore as shown on this link, and I keep getting error message:

gcloud alpha firestore export gs://backup --async

ERROR: (gcloud.alpha.firestore.export) PERMISSION_DENIED: Service account does not have access to Google Cloud Storage file: /backup. See https://cloud.google.com/datastore/docs/export-import-entities#permissions for a list of permissions needed. Error details: proje...@appspot.gserviceaccount.com does not have storage.buckets.get access to backup.


I've run the command to add my service account as a storage.admin, and that command succeed:

gcloud projects add-iam-policy-binding projectABC --member='serviceAccount: proje...@appspot.gserviceaccount.com' --role='roles/storage.admin'


Could someone help?

Ian Barber

unread,
Aug 14, 2018, 1:43:36 PM8/14/18
to Firebase Google Group
Is your bucket actually called "backup" in the console, or was that a placeholder? Otherwise, it might be trying to access a bucket outside your product.


On Monday, 13 August 2018 18:07:11 UTC-7, phi...@nex.team wrote:
Hi there,

I am trying out the new export feature of the FireStore as shown on this link, and I keep getting error message:

gcloud alpha firestore export gs://backup --async

ERROR: (gcloud.alpha.firestore.export) PERMISSION_DENIED: Service account does not have access to Google Cloud Storage file: /backup. See https://cloud.google.com/datastore/docs/export-import-entities#permissions for a list of permissions needed. Error details: projectABC@appspot.gserviceaccount.com does not have storage.buckets.get access to backup.


I've run the command to add my service account as a storage.admin, and that command succeed:

gcloud projects add-iam-policy-binding projectABC --member='serviceAccount: projectABC@appspot.gserviceaccount.com' --role='roles/storage.admin'


Could someone help?

Ian Barber

unread,
Aug 14, 2018, 2:09:28 PM8/14/18
to Firebase Google Group
Ah, Doug answered this on StackOverflow: https://stackoverflow.com/questions/51835150/failed-to-export-firestore-database/51835327 - please do try and mention if you cross-post to avoid duplicating work, thanks!
Reply all
Reply to author
Forward
0 new messages