Stream decryption fails with options in my.cnf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Low
|
Sergei Glushchenko | ||
2.1 |
Won't Fix
|
Low
|
Unassigned | ||
2.2 |
Won't Fix
|
Low
|
Unassigned | ||
2.3 |
Fix Released
|
Low
|
Sergei Glushchenko |
Bug Description
Following fails:
=======
sudo innobackupex --defaults-
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 00:24:47 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:
130613 00:24:47 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
xbcrypt:
130613 00:24:47 innobackupex: Starting ibbackup with command: xtrabackup_55 --defaults-
innobackupex: Waiting for ibbackup (pid=3778) 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 0:24:47 InnoDB: Warning: allocated tablespace 10, old maximum was 9
>> log scanned up to (9615410)
[01] Compressing, encrypting and streaming ./ibdata1
xtrabackup_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 (9615410)
>> log scanned up to (9615410)
^C%
=======
my.cnf - http://
Changed in percona-xtrabackup: | |
status: | New → Incomplete |
status: | Incomplete → New |
tags: | added: pxc |
Note,
sudo innobackupex --defaults- file=/etc/ my.cnf --encrypt=AES256 --encrypt- key=6F3AD9F4281 43F133FD7D50D77 D91EA4 --socket= /var/lib/ mysql/mysql. sock --galera-info --stream=xbstream --user= algo=AES256 --encrypt- key=6F3AD9F4281 43F133FD7D50D77 D91EA4
root --password=test /tmp | xbcrypt -d --encrypt-
works though.
So, it may be something wrong with parsing of my.cnf
Interestingly.
xtrabackup_55 --print-defaults /var/lib/ mysql --log_slow_ queries= /var/lib/ mysql/mysql- slow.log --long_ query_time= 10 --loose- log_slow_ verbosity= microtime, query_plan, innodb, profiling, profiling_ use_getrusage --loose- slow_query_ log_timest slow_query_ log_timestamp_ precision= microsecond --loose- slow_query_ log_use_ global_ control= log_slow_ filter, log_slow_ rate_limit, log_slow_ verbosity, long_query_ time,min_ examined_ row_limit --loose- log_slow_ slave_statement s --log_slave_updates --server-id=908 --log_bin= /var/lib/ mysql/mysql- bin.log --max_binlog_ size=100M --expire_ logs_days= 2 --binlog_format=ROW --thread_stack=256K --thread_ cache_size= 512 --tmp_table_ size=32M --max_heap_ table_size= 32M --max_connectio ns=10000 --open- files-limit= 65535 --table_ open_cache= 8192 --table_ definition_ cache=8192 --key_buffer_ size=64M --innodb_ buffer_ pool_size= 500M --innodb_ flush_log_ at_trx_ commit= 2 --innodb_ flush_method= O_DIRECT --innodb_ log_files_ in_group= 2 --innodb_ log_file_ size=512M --innodb_ file_per_ table=1 --loose- query_response_ time_stats --wsrep_ cluster_ address= gcomm:/ / --wsrep_ provider= /usr/lib64/ libgalera_ smm.so --wsrep_ slave_threads= 2 --wsrep_ cluster_ name=PXC --wsrep_ sst_method= xtrabackup --wsrep_ sst_auth= root:test --wsrep_ node_name= Pxc1 --innodb_ locks_unsafe_ for_binlog= 1 --innodb_ autoinc_ lock_mode= 2 --compress --compact --encrypt=AES256 --encrypt- key=6F3AD9F4281 43F133FD7D50D77 D91EA4
xtrabackup_55 would have been started with the following arguments:
--datadir=
amp_always=true --loose-
shows correctly.