innobackupex stream corrupted "xb_stream_read_chunk(): wrong chunk magic at offset 0x0"

Bug #1503964 reported by orakenneth@gmail.com
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Invalid
Undecided
Unassigned
2.2
Fix Released
Medium
Sergei Glushchenko
2.3
Invalid
Undecided
Unassigned

Bug Description

version : 2.2.5 above
Problem : do not pass chunk magic test
Error Message : xb_stream_read_chunk(): wrong chunk magic at offset 0x0
Command : xbstream -x < backup.xbs -C /backup2
backup option : using xstream option

[mysqld]
datadir = /data/mysql
tmpdir = /data/mytmp
innodb_data_home_dir =
innodb_data_file_path = /data/mysql/ibdata1:100M:autoextend
innodb_log_group_home_dir = /log/innodb-log
........

We do not have set innodb_data_home_dir variables and database is running without any problems.

Restore database using backup set that innodbex with xstream option.

I dug into xbstream source code and find to check chunk magic value. So I open the backup file.

The file start with
"innobackupex:: Warning: Ignored unrecognized line 5 in options : 'innodb_data_home_dir=
'"

It make trouble. anyway I solve this cause.

Solution is modified innobackupex perl script

AS-IS

# unknown
print("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
=>
# unknown
print ("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);

To-BE
# unknown
print("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
=>
# unknown
print STDERR ("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);

Tags: innobackupex
tags: added: innobackupex
Changed in percona-xtradb-cluster:
assignee: nobody → orakenneth@gmail.com (orakenneth)
affects: percona-xtradb-cluster → percona-xtrabackup
Changed in percona-xtrabackup:
assignee: orakenneth@gmail.com (orakenneth) → nobody
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

version_check may also cause trouble

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

correction regarding version_check. Its stdout is redirected to stderr before invocation.

summary: - innobackup stream backup dose not passed Chunk magic value
+ innobackup stream stream corrupted "xb_stream_read_chunk(): wrong chunk
+ magic at offset 0x0"
summary: - innobackup stream stream corrupted "xb_stream_read_chunk(): wrong chunk
- magic at offset 0x0"
+ innobackupex stream stream corrupted "xb_stream_read_chunk(): wrong
+ chunk magic at offset 0x0"
summary: - innobackupex stream stream corrupted "xb_stream_read_chunk(): wrong
- chunk magic at offset 0x0"
+ innobackupex stream corrupted "xb_stream_read_chunk(): wrong chunk magic
+ at offset 0x0"
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
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-1347

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.