# xbcrypt:parse\_xbcrypt\_chunk: wrong chunk magic at offset

**URL:** <https://forums.percona.com/t/xbcrypt-wrong-chunk-magic-at-offset/6067>\
**Category:** Percona XtraBackup\
**Created:** [December 8, 2017, 2:04pm UTC](https://forums.percona.com/t/xbcrypt-wrong-chunk-magic-at-offset/6067 "2017-12-08T14:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschumacher](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mschumacher](https://forums.percona.com/u/mschumacher)\
**Post date:** [December 8, 2017, 2:04pm UTC](https://forums.percona.com/t/xbcrypt-wrong-chunk-magic-at-offset/6067/1 "2017-12-08T14:04:27Z")

</div>

Backed up using  
innobackupex /mnt/win/dbbackups/dms/ --encrypt = AES256 --encrypt-key=… – where '/mnt/win/dbbackups/dms/ is a smb mount

on recovery all but 1 file worked file but on the one file  
getting

#xbcrypt -d --encrypt-algo=AES256 --encrypt-key=…\< 217.ibd.qp.xbcrypt \> 217.ibd.qp  
xbcrypt:parse\_xbcrypt\_chunk: wrong chunk magic at offset 0x45bbbd5f0.  
xbcrypt failed to decrypt: can’t write to output.  
decrypt: failed to close dest file.

or with the -i / -o option..

# xbcrypt -d --encrypt-algo=AES256 --encrypt-key=1726963861B24D16E28969C20BC3AE0A -i 217.ibd.qp.xbcrypt -o 217.ibd.qp

xbcrypt:parse\_xbcrypt\_chunk: wrong chunk magic at offset 0x45bbbd5f0.  
xbcrypt failed to decrypt: can’t write to output.

is that file just corrupt?? any repair tools or way of recoving that?

Thanks
