Decryption fails at a later stage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
George Ormond Lorch III | ||
2.1 |
Fix Released
|
High
|
George Ormond Lorch III |
Bug Description
I see another error even with parameters provided through innobackupex:
xbcrypt:
is the error on receiving side.
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Ireland Ltd 2009-2012. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
130613 01:37:12 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:
word: YES).
130613 01:37:12 innobackupex: Connected to MySQL server
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.5.30-log
innobackupex: Created backup directory /tmp
130613 01:37:12 innobackupex: Starting ibbackup with command: xtrabackup_55 --defaults-
ncrypt-
innobackupex: Waiting for ibbackup (pid=6175) to suspend
innobackupex: Suspend file '/tmp/xtrabacku
xtrabackup_55 version 2.1.3 for Percona Server 5.5.16 Linux (x86_64) (revision id: 608)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: using O_DIRECT
130613 1:37:12 InnoDB: Warning: allocated tablespace 10, old maximum was 9
>> log scanned up to (9616286)
[01] Compressing, encrypting and streaming ./ibdata1
^Gxtrabackup_55: Error writing file 'UNOPENED' (Errcode: 32)
encrypt: write to the destination file failed.
xb_stream_
compress: write to the destination stream failed.
>> log scanned up to (9616286)
>> log scanned up to (9616286)
>> log scanned up to (9616286)
>> log scanned up to (9616286)
>> log scanned up to (9616286)
>> log scanned up to (9616286)
>> log scanned up to (9616286)
is the error on sending side.
from commit of https:/
but it has not helped.
backup-my.cnf was transferred correctly, only after that it failed (as the offset explains).
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 51 lines (+5/-5)3 files modifiedsrc/xbcrypt.c (+2/-2)
src/xbcrypt.h (+1/-1)
src/xbcrypt_read.c (+2/-2)
To reliably repeat this:
a) Consider NodeA NodeB
b) Run netcat listener on nodeB: nc -dl $ip-addr2 $port | xbcrypt -d --encrypt- algo=$ealgo --encrypt-key=$ekey | xbstream -x -C ${dir}
c) Write to netcat on nodeA: innobackupex --galera-info --encrypt=$ealgo --encrypt-key=$ekey --stream=xbstream /tmp | nc $ip-addr2 $port