# Using xbcloud with mitaka swift

**URL:** <https://forums.percona.com/t/using-xbcloud-with-mitaka-swift/4970>\
**Category:** Percona XtraBackup\
**Created:** [July 14, 2016, 11:42am UTC](https://forums.percona.com/t/using-xbcloud-with-mitaka-swift/4970 "2016-07-14T11:42:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpablo.otero](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jpablo.otero](https://forums.percona.com/u/jpablo.otero)\
**Post date:** [July 14, 2016, 11:42am UTC](https://forums.percona.com/t/using-xbcloud-with-mitaka-swift/4970/1 "2016-07-14T11:42:36Z")

</div>

Hi all,  
I’m trying to backup a mysql database to a swift storage using xtrabackup/xbcloud combo:

innobackupex --user=root --password=password --stream=xbstream --parallel 4 /tmp | xbcloud put --storage=Swift --swift-auth-version=3 --swift-container=BKP --swift-user=mysql --swift-auth-url=[http://xx.xx.xx.xx:8080/](http://xx.xx.xx.xx:8080/) --swift-password=password --verbose fullBackup

I obtain the following error in xbcloud when it try to stream the backup to swift.

- About to connect() to xx.xx.xx.xx port 8080 (#0)
- Trying xx.xx.xx.xx… \* connected
- Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 8080 (#0)

> POST /v3/auth/tokens HTTP/1.1  
> Host: xx.xx.xx.xx:8080  
> Content-Type: application/json  
> Accept: application/json  
> Content-Length: 177

- Closing connection #0
- Failure when receiving data from the peer  
error: curl\_easy\_perform() failed: Failure when receiving data from the peer  
error: failed to authenticate

I tried with auth version 2.0 and 3.0 with the same results. I cannot use temp-auth (auth v1.0) because is disabled in swift cluster.  
Is there some other xbcloud parameter that I have omitted or should be used for this version of swift?  
Does anyone know if mitaka swift(newest version of openstack) is suported by xbcloud?

Thanks in advance
