This seems to be a regression introduced by bug fix to lp:1273368
When log_bin is set to a directory that is located inside the datadir, with wsrep_sst_method=xtrabackup-v2 the SST fails as the directory is removed first as any other database dir, and then the script tries to remove the dir for binary logs again.
Both PXC 5.5.15+ and 5.5.37 are affected.
This seems to be a regression introduced by bug fix to lp:1273368
When log_bin is set to a directory that is located inside the datadir, with wsrep_sst_ method= xtrabackup- v2 the SST fails as the directory is removed first as any other database dir, and then the script tries to remove the dir for binary logs again.
Both PXC 5.5.15+ and 5.5.37 are affected.
How to reproduce:
my.cnf: /var/lib/ mysql method= xtrabackup- v2 /var/lib/ mysql/log/ my-bin
datadir=
wsrep_sst_
log-bin=
force an SST results in this error log:
(...) mysql/log' mysql/ib_ logfile0' mysql/log' : No such file or directory xtrabackup- v2 --role 'joiner' --address '10.0.1.6' --auth 'root' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --parent '30482' '' : 1 (Operation not permitted)
removed directory: `/var/lib/
(...)
removed `/var/lib/
WSREP_SST: [INFO] Cleaning the binlog directory /var/lib/mysql/log as well (20140603 15:04:08.295)
find: `/var/lib/
WSREP_SST: [ERROR] Cleanup after exit with status:1 (20140603 15:04:08.304)
WSREP_SST: [INFO] Removing the sst_in_progress file (20140603 15:04:08.306)
2014-06-03 15:04:08 30482 [ERROR] WSREP: Process completed with error: wsrep_sst_
2014-06-03 15:04:08 30482 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.
2014-06-03 15:04:08 30482 [ERROR] WSREP: SST failed: 1 (Operation not permitted)
2014-06-03 15:04:08 30482 [ERROR] Aborting