Decrypt failed with xtrabackup version 2.4.9
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB | Status tracked in 2.4 | |||||
2.3 |
Fix Released
|
High
|
Sergei Glushchenko | |||
2.4 |
Fix Released
|
High
|
Sergei Glushchenko |
Bug Description
I just upgraded to the newest version of xtrabackup on Centos. I now get a decrypt error:
[root@es01 backup]# xtrabackup --decompress --decrypt=AES256 --encrypt-
xtrabackup version 2.4.9 based on MySQL server 5.7.13 Linux (x86_64) (revision id: a467167cdd4)
171204 18:21:49 [01] decrypting and decompressing ./ibdata1.
171204 18:21:49 [02] decrypting and decompressing ./performance_
171204 18:21:49 [04] decrypting and decompressing ./performance_
171204 18:21:49 [03] decrypting and decompressing ./performance_
encryption: both encryption key and key file specified.
encryption: both encryption key and key file specified.
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
encryption: unable to set libgcrypt cipher key - User defined source 1 : Invalid key length
encryption: both encryption key and key file specified.
I do not use the encrypt-key option, only encrypt-key-file option.
If i change the decrypt command to use encrypt-key=<mykey> option i get the following error:
decrypt: failed to close dest file.
171204 18:28:04 [01] removing ./ibdata1.
The failed to close error is for every removing entry.
Thank you for bug report. --encrypt-key-file seems to broken with xbcrypt. "decrypt: failed to close dest file." doesn't cause any harm, but should be fixed as well.