Xbcloud get from s3 fail

I can’t not get backup data from s3 to use xbcloud.

my command is

xbcloud get s3://bucket/path/
–s3-access-key=****
–s3-secret-key=****
–s3-region=****
| xbstream restore -x -C /backup/FULL/

and then i got result as like this

241024 05:27:06 xbcloud: [0] Download successfull OLD_FILE/XBK_00_FULL/undo_002.qp.00000000000000000001, size 25
241024 05:27:06 xbcloud: [0] Downloading OLD_.00000000000000000000.
241024 05:27:06 xbcloud: S3 error message: The specified key does not exist.
241024 05:27:06 xbcloud: [0] Download failed. Cannot download OLD_.00000000000000000000.
241024 05:27:06 xbcloud: Download failed.

Most weird thing is that there’s no file name as ‘OLD_.00000000000000000000.’ in my s3 bucket path.

I tried on xtrabackup version 8.0.35-31

Enable debug/verbose output for xbcloud and provide here please.

when add --verbose option i got this message

  • Connection #0 to host <my S3 url> left intact
    xbcloud: Error writing file ‘’ (OS errno 32 - Broken pipe)
    241025 02:27:56 xbcloud: [0] Download of file <my S3 path>/20241020_0000/XBK_00_FULL/undo_002.qp.00000000000000000001 failed. Cannot write to output
    241025 02:27:56 xbcloud: Download failed.

and this is log

[root@localhost backup]# cat xbcloud_log.log
xbstream: Can’t create/write to file ‘./xtrabackup_tablespaces.qp’ (OS errno 17 - File exists)
xbstream: failed to create file.
xbstream: Can’t create/write to file ‘./xtrabackup_tablespaces.qp’ (OS errno 17 - File exists)
xbstream: failed to create file.
xbstream: Can’t create/write to file ‘./xtrabackup_info.qp’ (OS errno 17 - File exists)
xbstream: failed to create file.
xbstream: Can’t create/write to file ‘./xtrabackup_info.qp’ (OS errno 17 - File exists)
xbstream: failed to create file.
xbstream: Can’t create/write to file ‘./undo_002.qp’ (OS errno 17 - File exists)
xbstream: failed to create file.
exit code: 1

when I did “xbcloud get” from same bucket but different path using same S3 key, it works. but some path cannot.

This is pretty telling what the problem is. You are trying to pull files from S3 and they already exist locally. Remove any local files first, then try again.