[MDEV-12956] datadir must be specified in [mysqld] section of configuration file for mariabackup SST Created: 2017-05-30  Updated: 2020-11-21  Resolved: 2018-09-11

Status: Closed
Project: MariaDB Server
Component/s: Backup, Galera SST
Affects Version/s: 10.1.23
Fix Version/s: 10.1.36, 10.2.18, 10.3.10

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 2
Labels: backup, galera, mariabackup, sst

Issue Links:
Duplicate
is duplicated by MDEV-14966 Fail to restore data with mariabackup... Closed
is duplicated by MDEV-15836 MariaDB galera SST broken using maria... Closed
Relates
relates to MDEV-18863 Galera SST scripts can't read mysqld_... Closed

 Description   

If datadir is not specified in the [mysqld] section of the MariaDB configuration file, then mariabackup SST attempts will fail on the joiner with errors in innobackup.move.log similar to this:

170530 12:06:47 innobackupex: Starting the move-back operation
 
IMPORTANT: Please check that the move-back run completes successfully.
           At the end of a successful move-back run innobackupex
           prints "completed OK!".
 
innobackupex based on MariaDB server 10.1.23-MariaDB Linux (x86_64)
Error: datadir must be specified.

I believe that this behavior was inherited from the xtrabackup-v2 SST method, but it seems a bit unnecessary and it might be fixable. The server obviously knows its own datadir, so can't it specify the value on the command-line or something like that?



 Comments   
Comment by Elena Stepanova [ 2017-05-31 ]

sachin.setiya.007, please reassign to wlad if needed.

Comment by Andrii Nikitin (Inactive) [ 2017-07-18 ]

This should be fixed in 10.1.25 and 10.2.7 as part of MDEV-11459 . Thus I am closing this as duplicate.

Comment by TAO ZHOU [ 2017-09-20 ]

I am running 10.2.7 on FreeBSD and I am still having this error. I checked the code I built from and it has the fix mentioned here.

Comment by Manjot Singh (Inactive) [ 2018-06-28 ]

having this issue in 10.2.16 with customer

Generated at Thu Feb 08 08:01:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.