exrhizo
exrhizo

Reputation: 141

Datastore backup import: Failed to read bucket "XYZ" is not accessible

I'm working with two separate projects. One is for production, the other dev.

I have backed up the production datastore into a bucket. Now I want to import that into the dev datastore. But when I try, I get the message:

Failed to read bucket: Bucket "the.bucket.name" is not accessible

I thought it might be permissions, I added the dev project with owners-devid and editors-devid and my-email as owners of the bucket. But still got the same error.

gsutil ls working for me, I think that I am not having an issue specifying the bucket.

Upvotes: 2

Views: 585

Answers (2)

vicasdia
vicasdia

Reputation: 1

I have the same problem. Setting the permissions as:

 User      [project name]@appspot.gserviceaccount.com   Writer

allows to perform the backup in another project bucket, however it doesn't allow to import from that bucket. I also tried to set owner permission, but the result was the same. The error reported is:

Requested path https://storage.googleapis.com/[bucket_name]/[id_backup_info].info is not accessible/access denied

Upvotes: 0

exrhizo
exrhizo

Reputation: 141

The issue I had was that I was adding the dev project into permissions as

    Project   editors-##############                       Editor

vs

    User      [project name]@appspot.gserviceaccount.com   Editor

The datastore import happens under the user account.

Upvotes: 2

Related Questions