--stream=tar fails (archive_write_header failed)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Critical
|
Alexey Kopytov | ||
2.0 |
Fix Released
|
Critical
|
Alexey Kopytov | ||
2.1 |
Fix Released
|
Critical
|
Alexey Kopytov |
Bug Description
--stream=tar appears to fail with xtrabackup 2.0.0 (--stream=xbstream works fine).
Platform is Debian Squeeze x64, using the dotdeb percona binaries.
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2012. All Rights Reserved.
[2012-04-10 12:34:11 GMT]
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
[2012-04-10 12:34:11 GMT]
120410 13:33:46 innobackupex: Starting mysql with options: --password=xxxxxxxx --user='root' --unbuffered --
120410 13:33:46 innobackupex: Connected to database with mysql child process (pid=5367)
120410 13:33:52 innobackupex: Connection to database server closed
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
[2012-04-10 12:34:11 GMT]
innobackupex: Using mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2
innobackupex: Using mysql server version Copyright (C) 2002 MySQL AB
[2012-04-10 12:34:11 GMT]
innobackupex: Created backup directory /tmp/tmp.hKYMnWlyCa
120410 13:33:53 innobackupex: Starting mysql with options: --password=xxxxxxxx --user='root' --unbuffered --
120410 13:33:53 innobackupex: Connected to database with mysql child process (pid=5434)
120410 13:33:55 innobackupex: Connection to database server closed
[2012-04-10 12:34:11 GMT]
120410 13:33:55 innobackupex: Starting ibbackup with command: xtrabackup_51 --backup --suspend-at-end --target-dir=/tmp --compress --compress-
innobackupex: Waiting for ibbackup (pid=5464) to suspend
innobackupex: Suspend file '/tmp/xtrabacku
[2012-04-10 12:34:11 GMT]
xtrabackup_51 version 2.0.0 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
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_
>> log scanned up to (375 4004314859)
archive_
[01] xtrabackup: error: cannot open the destination stream for ibdata1
[01] xtrabackup: Error: xtrabackup_
[01] xtrabackup: Error: failed to copy datafile.
innobackupex: Error: ibbackup child process has died at /usr/bin/
Related branches
- Sergei Glushchenko (community): Approve
-
Diff: 38 lines (+9/-2)2 files modifiedsrc/libarchive/libarchive/archive_write_set_format_pax.c (+6/-0)
src/stream.c (+3/-2)
Problem occurs both with and without --compress options.
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy p_suspended' data_home_ dir = /var/lib/mysql data_file_ path = ibdata1: 100M:autoextend log_group_ home_dir = /var/lib/mysql log_files_ in_group = 4 log_file_ size = 268435456 write_header( ) failed. copy_datafile( ) failed. innobackupex line 371.
and Percona Inc 2009-2012. All Rights Reserved.
[2012-04-10 12:37:33 GMT]
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
[2012-04-10 12:37:33 GMT]
120410 13:37:14 innobackupex: Starting mysql with options: --password=xxxxxxxx --user='root' --unbuffered --
120410 13:37:14 innobackupex: Connected to database with mysql child process (pid=7038)
120410 13:37:20 innobackupex: Connection to database server closed
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
[2012-04-10 12:37:33 GMT]
innobackupex: Using mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (x86_64) using readline 5.2
innobackupex: Using mysql server version Copyright (C) 2002 MySQL AB
[2012-04-10 12:37:33 GMT]
innobackupex: Created backup directory /tmp/tmp.QkgecwCPry
120410 13:37:21 innobackupex: Starting mysql with options: --password=xxxxxxxx --user='root' --unbuffered --
120410 13:37:21 innobackupex: Connected to database with mysql child process (pid=7111)
120410 13:37:23 innobackupex: Connection to database server closed
[2012-04-10 12:37:33 GMT]
120410 13:37:23 innobackupex: Starting ibbackup with command: xtrabackup_51 --backup --suspend-at-end --target-dir=/tmp --stream=tar
innobackupex: Waiting for ibbackup (pid=7128) to suspend
innobackupex: Suspend file '/tmp/xtrabacku
[2012-04-10 12:37:33 GMT]
xtrabackup_51 version 2.0.0 for MySQL server 5.1.59 unknown-linux-gnu (x86_64) (revision id: undefined)
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_
>> log scanned up to (375 4007342403)
archive_
[01] xtrabackup: error: cannot open the destination stream for ibdata1
[01] xtrabackup: Error: xtrabackup_
[01] xtrabackup: Error: failed to copy datafile.
innobackupex: Error: ibbackup child process has died at /usr/bin/