# Xtrabackup restore from Swift fail with: wrong chunk magic at offset 0x0.

**URL:** <https://forums.percona.com/t/xtrabackup-restore-from-swift-fail-with-wrong-chunk-magic-at-offset-0x0/4516>\
**Category:** Percona XtraBackup\
**Created:** [November 12, 2015, 12:33pm UTC](https://forums.percona.com/t/xtrabackup-restore-from-swift-fail-with-wrong-chunk-magic-at-offset-0x0/4516 "2015-11-12T12:33:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedwards](https://avatars.discourse-cdn.com/v4/letter/v/8e8cbc/32.png) [@vedwards](https://forums.percona.com/u/vedwards)\
**Post date:** [November 12, 2015, 12:33pm UTC](https://forums.percona.com/t/xtrabackup-restore-from-swift-fail-with-wrong-chunk-magic-at-offset-0x0/4516/1 "2015-11-12T12:33:07Z")

</div>

Hello,  
I am having an issue with trying to retrieve a backup from our swift cluster I receive the error: xb\_stream\_read\_chunk(): wrong chunk magic at offset 0x0.

Here is the information for our setup:  
Xtrabackup version → xtrabackup version 2.3.2 based on MySQL server 5.6.24 Linux (x86\_64) (revision id: 306a2e0)  
MariaDB Galera Cluster Version → Server version: 10.0.21-MariaDB-wsrep MariaDB Server, wsrep\_25.10.r4144  
Swift Version → swift 2.4.0

Here is the command I run for backups (I get the completed ok message at the end of the backup - see nippit) :  
innobackupex --user=$USER --password=$PASSWORD   
–socket=/var/lib/mysql/mysql.sock --stream=xbstream   
–extra-lsndir=/tmp/swift-lsn /tmp/swift-lsn   
| xbcloud put --storage=Swift --swift-container=$SWIFT\_BACKUP\_CONTAINER   
–swift-user=$SWIFT\_BACKUP\_USER   
–swift-auth-url=$SWIFT\_BACKUP\_AUTH\_ADDRESS   
–swift-key=$SWIFT\_BACKUP\_KEY   
–parallel=4 full\_backup

Here is my log saying my backup completed successfully:  
151111 21:35:27 Executing UNLOCK TABLES  
151111 21:35:27 All tables unlocked  
151111 21:35:27 Backup created in directory ‘/tmp/swift-lsn/2015-11-11\_21-35-21’  
151111 21:35:27 [00] Streaming backup-my.cnf  
151111 21:35:27 [00] …done  
151111 21:35:27 [00] Streaming xtrabackup\_info  
151111 21:35:27 [00] …done  
xtrabackup: Transaction log of lsn (1620087) to (1620087) was copied.  
151111 21:35:27 completed OK!  
acked chunk a3e9a9389924cb9e6229ad75e92618e7  
a3e9a9389924cb9e6229ad75e92618e7 is done

Here is the command I run for restore( this is where I receive the error):

xbcloud get --storage=Swift --swift-container=$SWIFT\_BACKUP\_CONTAINER   
–swift-user=$SWIFT\_BACKUP\_USER --swift-auth-url=$SWIFT\_BACKUP\_AUTH\_ADDRESS   
–swift-key=$SWIFT\_BACKUP\_KEY full\_backup | xbstream -xv -C /tmp/

Has anyone ran across this issue?

---

<div class="post-metadata">

**Author:** ![noodlesnz](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@noodlesnz](https://forums.percona.com/u/noodlesnz)\
**Post date:** [November 17, 2015, 7:53pm UTC](https://forums.percona.com/t/xtrabackup-restore-from-swift-fail-with-wrong-chunk-magic-at-offset-0x0/4516/2 "2015-11-17T19:53:17Z")

</div>

I have this problem as well, but the documentation around xbcloud is very limited at the moment and I can’t get any response from Percona. I logged a bug here: [url][https://bugs.launchpad.net/percona-xtrabackup/+bug/1510706[/url]](https://bugs.launchpad.net/percona-xtrabackup/+bug/1510706%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![noodlesnz](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@noodlesnz](https://forums.percona.com/u/noodlesnz)\
**Post date:** [December 17, 2015, 4:12pm UTC](https://forums.percona.com/t/xtrabackup-restore-from-swift-fail-with-wrong-chunk-magic-at-offset-0x0/4516/3 "2015-12-17T16:12:42Z")

</div>

I’ve just tested 2.3.3 and it doesn’t look like this has been fixed. I have a job open with Percona to look at this, but I don’t see it being done until the new year.
