Decrypt failed with xtrabackup version 2.4.9

Bug #1736210 reported by Rick
6
This bug affects 1 person
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-key-file=/data/config/xtrabackupkey.ini --target-dir=/data/backup/mysql/ --remove-original --parallel=4
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.qp.xbcrypt
171204 18:21:49 [02] decrypting and decompressing ./performance_schema/events_waits_summary_by_host_by_event_name.frm.qp.xbcrypt
171204 18:21:49 [04] decrypting and decompressing ./performance_schema/status_by_host.frm.qp.xbcrypt
171204 18:21:49 [03] decrypting and decompressing ./performance_schema/hosts.frm.qp.xbcrypt
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.qp.xbcrypt

The failed to close error is for every removing entry.

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

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.

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Rick (rick1842) wrote :

Thank you for your fast response. I can confirm that the msg "decrypt: failed to close dest file." was no problem. The decryption and preparing of the backup was successful.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-518

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.