innobackupex / xtrabackup not working with stream when diverting STDERR
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
High
|
Patrick Crews |
Bug Description
Hi,
As reported here: http://
a simple test case would be like this:
#!/bin/sh
innobackupex –backup ……. –stream=tar /path 1>/file.tar 2>/logfile.
Basically the problem is that if you separate STDOUT and STDERR, certain files doesnt show up (in our case, it was user-related tables from the mysql database), as well as xtrabackup_
Unfortunately I am unable to share the actual source at this time, but the above information should be enough to reproduce this on RHEL5 with MySQL 5.1. Removing the split of stdout and stderr redirects solves the problem, but makes my dba annoyed that he cant log as usual.
Nothing special shows up in the logfile that stderr goes to, although I would have expected it to.
Changed in percona-xtrabackup: | |
importance: | Undecided → High |
Changed in percona-xtrabackup: | |
assignee: | nobody → Patrick Crews (patrick-crews) |
Ran into the same case.
innobackupex --user=root --password=XXXX --tmpdir= /db/db- trx/tmp --slave-info --stream=tar /db/backup/raw 2> backup.log | pv | nc newwcdb-logs 1979
when trying to restore:
110628 10:16:40 InnoDB: Operating system error number 2 in a file operation. logfile. will try to find. logfile. init_temp_ log() failed. bin/innobackupe x line 336.
InnoDB: The error means the system cannot find the path specified.
xtrabackup: Warning: cannot open ./xtrabackup_
110628 10:16:40 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
xtrabackup: Fatal error: cannot find ./xtrabackup_
xtrabackup: Error: xtrabackup_
innobackupex: Error:
innobackupex: ibbackup failed at /usr/local/