xtrabackup: Error: --defaults-file must be specified first on the command line
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB | Status tracked in 2.4 | |||||
2.3 |
Fix Released
|
High
|
Hrvoje Matijakovic | |||
2.4 |
Fix Released
|
High
|
Hrvoje Matijakovic |
Bug Description
After upgrading to xtrabackup to 2.3.2 version i got an error with my script -> https:/
[root@node1 ~]# /opt/Python-
Warning: Using a password on the command line interface can be insecure.
Server is Up and running+
/usr/bin/mysql exists+
/usr/bin/mysqladmin exists+
MySQL configuration file exists+
Xtrabackup/
Main backup directory exists+
Full Backup directory exists.
Increment directory exists+
Archive folder directory exists+
Creating Test User (test_backup)
Creating Test Database (bck)+-
Database Already exists
Check status: STATUS+
#######
Your full backup is timeout : Taking new Full Backup!- - - - - #
#######
Flushing Binary Logs
FULL BACKUP FAILED!
xtrabackup: Error: --defaults-file must be specified first on the command line
It turns out that now specifying --defaults-file option first is mandatory...
[root@node1 ~]# xtrabackup --version
xtrabackup version 2.3.2 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 306a2e0)
[root@node1 ~]# innobackupex --user=root --password=12345 --defaults-
xtrabackup: Error: --defaults-file must be specified first on the command line
But with 2.2.12 it will work:
[root@node1 ~]# xtrabackup --version
xtrabackup version 2.2.12 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 8726828)
innobackupex --user=root --password=12345 --defaults-
151026 09:41:45 innobackupex: Connection to database server closed
151026 09:41:45 innobackupex: completed OK!
For me, it is critical because now i need to rewrite script (suddenly). Maybe for some other people it is critical too, to fix their scripts, it will take time to realize that, cron jobs did not work after 'yum update' or something similar.
Also documentation should indicate this change for eg, while taking backups:
https:/
Need to add a note here https:/ /www.percona. com/doc/ percona- xtrabackup/ 2.3/innobackupe x/innobackupex_ option_ reference. html#cmdoption- innobackupex- -defaults- file
similar to we see here
https:/ /www.percona. com/doc/ percona- xtrabackup/ 2.3/xtrabackup_ bin/xbk_ option_ reference. html#cmdoption- xtrabackup- -defaults- file