innobackupex InnoDB version detection fails using Percona-supplied RPM versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Sergei Glushchenko | ||
1.6 |
Fix Released
|
Medium
|
Sergei Glushchenko | ||
2.0 |
Fix Released
|
Medium
|
Sergei Glushchenko |
Bug Description
Using:
Percona-
Percona-
Percona-
xtrabackup-
In sub set_xtrabackup_
When using the RPMs listed, the MySQL version is "5.1.60-
For 5.1, there are three possible regexes:
$var_innodb_version =~ m//
$var_innodb_version =~ m/1\.0\.\d+$/
$var_innodb_version =~ m/1\.0\.\d+-\d/
"1.0.17-rel13.1" does not match the later two, but I'm not entirely sure why it's failing the first, which should match anything.
I corrected my local copy by simply setting the initial value of $ibbackup_binary to 'xtrabackup', which will work correctly for my specific installation. This may be the safest bet. Otherwise, adding a check before returning to ensure that *something* was selected along with an appropriate error if not would be a good idea.
Irritatingly, this problem manifested itself with a misleading error message:
innobackupex: fatal error: no 'mysqld' group in MySQL options
innobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 34 lines (+4/-4)2 files modifiedinnobackupex (+2/-2)
test/bootstrap.sh (+2/-2)
- Alexey Kopytov (community): Approve
-
Diff: 34 lines (+4/-4)2 files modifiedinnobackupex (+2/-2)
test/bootstrap.sh (+2/-2)
description: | updated |
description: | updated |
Changed in percona-xtrabackup: | |
assignee: | nobody → Valentine Gostev (longbow) |
importance: | Undecided → Medium |
Changed in percona-xtrabackup: | |
assignee: | Valentine Gostev (longbow) → Sergei Glushchenko (sergei.glushchenko) |
Changed in percona-xtrabackup: | |
status: | Confirmed → Fix Committed |
For whatever reason, I seem to be seeing this as well while trying to port the test for bug810269
I have xtrabackup_55 in my PATH, but the innobackupex script seems to be searching for xtrabackup:
Doing some additional troubleshooting to see if this is me (or my repo is old), but it looks similar, so wanted to share info.
qp-xtrabackup/ Percona- Server- 5.5/storage/ innobase/ xtrabackup: qp-xtrabackup/ libtar- 1.2.11/ libtar: /usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/usr/ games ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- kewpie/ percona_ tests/xtrabacku p_main/bug817132_test.py", line 115, in test_bug817132 l(retcode, 0, output) ------- ------- ------- ------- ------- ------- ------- ------- -------
20111230-183007 xtrabackup_main.bug817132_test [ fail ] 36188
20111230-183007 --copy-back without explicit --ibbackup specification defaults to 'xtrabackup'. ... FAIL
20111230-183007
20111230-183007 =======
20111230-183007 FAIL: --copy-back without explicit --ibbackup specification defaults to 'xtrabackup'.
20111230-183007 -------
20111230-183007 Traceback (most recent call last):
20111230-183007 File "qp-xtrabackup/
20111230-183007 self.assertEqua
20111230-183007 AssertionError:
20111230-183007 InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
20111230-183007 and Percona Inc 2009-2011. All Rights Reserved.
20111230-183007
20111230-183007 This software is published under
20111230-183007 the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
20111230-183007
20111230-183007 IMPORTANT: Please check that the copy-back run completes successfully.
20111230-183007 At the end of a successful copy-back run innobackupex
20111230-183007 prints "completed OK!".
20111230-183007
20111230-183007 sh: xtrabackup: not found
20111230-183007 innobackupex: fatal error: no 'mysqld' group in MySQL options
20111230-183007 innobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
20111230-183007
20111230-183007
20111230-183007 -------
20111230-183007 Ran 1 test in 36.188s