xtrabackup fails with default Ubuntu permissions on /etc/my.sql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
New
|
Undecided
|
EvgeniyPatlan |
Bug Description
When using the xtrabackup-v2 SST method, with a default Ubuntu install including the following packages :
ii libmysqlclient1
ii mysql-common 5.5.47-
ii percona-toolkit 2.2.16-1 all Advanced MySQL and system command-line tools
ii percona-xtrabackup 2.3.3-1.trusty amd64 Open source backup tool for InnoDB and XtraDB
iU percona-
ii percona-
ii percona-
ii percona-
iF percona-
SST fails with this error on the target server, in file /var/lib/
Could not open required defaults file: /etc/my.cnf
Fatal error in defaults handling. Program aborted
A workaround is to give read permission to mysql user for this file :
chown root:mysql /etc/mysql/
Changed in percona-xtradb-cluster: | |
assignee: | nobody → EvgeniyPatlan (evgeniy-patlan) |
I am not sure it's an xtrabackup bug. Xtrabackup is used as an tool here. PXC invokes it providing config as an argument. It's under PXC control which user xtrabackup runs under. /etc/my.cnf is also a part of PXC package I believe, not an xtrbackup one.