# Xbcloud can not list items on gcloud buckets

**URL:** <https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977>\
**Category:** General Questions\
**Tags:** mysql, percona\
**Created:** [January 18, 2022, 12:32pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977 "2022-01-18T12:32:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaume\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jaume\_Rodriguez](https://forums.percona.com/u/Jaume_Rodriguez)\
**Post date:** [January 18, 2022, 12:32pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/1 "2022-01-18T12:32:25Z")

</div>

Hi, this is my first post, so i do apologize if i make some mistakes on following the forum rules. I’ll do my best.

I have a percona cluster on GKE and a valid and tested mysql backup residing on it. When i launch  
`xbcloud get s3://mybucket/full-2021-01-01_23-00-01.xbstream --parallel=10 --s3-region=us-central1 --s3-endpoint=https://storage.googleapis.com --s3-access-key=xxxxx --s3-secret-key=xxxxx`  
(credentials regarding a valid service account with bucket admin access)  
i get  
`220118 12:24:59 xbcloud: Successfully connected. 220118 12:25:00 xbcloud: Download failed. Cannot list full-2021-01-01_23-00-01.xbstream.`  
despite the file is on the bucket.  
Any help will be much appreciated.  
Thank you!

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [January 18, 2022, 1:24pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/2 "2022-01-18T13:24:20Z")

</div>

Hi @Jaume_Rodriguez .  
Welcome to our forum!

xbcloud expects to download the files placed on a backup folder. It will download all the files on it. From what I can see, you are trying to download a single file named `full-2021-01-01_23-00-01.xbstream` .

Can you show us which command did you used to upload the files?

---

<div class="post-metadata">

**Author:** ![Jaume\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jaume\_Rodriguez](https://forums.percona.com/u/Jaume_Rodriguez)\
**Post date:** [January 18, 2022, 1:47pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/3 "2022-01-18T13:47:12Z")

</div>

The file was transferred between buckets from different projects on gcloud, and the origin as far as i know can be restored outside GKE on a regular instance. So i don’t know which was the command but the backup file is right and this is the only file on the bucket. I can download it to a local storage through “manual” downloading on the gcloud console. Its size is ~200Gb.

---

<div class="post-metadata">

**Author:** ![Marcelo\_Altmann](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marcelo_altmann/32/11299_2.png) [@Marcelo\_Altmann](https://forums.percona.com/u/Marcelo_Altmann)\
**Post date:** [January 18, 2022, 1:54pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/4 "2022-01-18T13:54:53Z")

</div>

Add the file to a specific folder like `/mybucket/my_backup` and then on xbcloud pass:

```auto
xbcloud get s3://mybucket/my_backup --parallel=10 --s3-region=us-central1 --s3-endpoint=https://storage.googleapis.com --s3-access-key=xxxxx --s3-secret-key=xxxxx

```

---

<div class="post-metadata">

**Author:** ![Jaume\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jaume\_Rodriguez](https://forums.percona.com/u/Jaume_Rodriguez)\
**Post date:** [January 18, 2022, 2:46pm UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/5 "2022-01-18T14:46:38Z")

</div>

> [@Marcelo\_Altmann](#):
>
> ```auto
> xbcloud get s3://mybucket/my_backup --parallel=10 --s3-region=us-central1 --s3-endpoint=https://storage.googleapis.com --s3-access-key=xxxxx --s3-secret-key=xxxxx
> 
> ```

it still does not work, but what is more disturbing is that trying that command without file, just only the path, it completes with a custom filename -with date and 000- and returns a file not found from the api.  
` Downloading back/full-2022-01.00000000000000000000. 220118 14:09:11 xbcloud: Failed to download object mybucket/back/full-2022-01.00000000000000000000. Error message: <?xml version='1.0' encoding='UTF-8'?><Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Details>No such object: mybucket/back/full-2022-01.00000000000000000000</Details></Error>`

So i guess that it can list files on mybucket because otherwise it would not throw this message.

---

<div class="post-metadata">

**Author:** ![Jaume\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/j/85e7bf/32.png) [@Jaume\_Rodriguez](https://forums.percona.com/u/Jaume_Rodriguez)\
**Post date:** [January 21, 2022, 10:31am UTC](https://forums.percona.com/t/xbcloud-can-not-list-items-on-gcloud-buckets/13977/6 "2022-01-21T10:31:15Z")

</div>

also odd is that if i change my backup file name to full-2022-01.00000000000000000000 then the connection and download starts.
