[MDEV-31546] Galera mariabackup SST ignores mysqld_safe --chroot directive and loses track of the datadir, causing it to abort Created: 2023-06-26 Updated: 2023-07-24 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.6.8 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Juan | Assignee: | Julius Goryavsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7.7 |
||
| Description |
|
When running the server from within a chroot jail everything works as expected and SSTs complete successfully. However, when starting a chrooted MariaDB server from outside and using mysqld_safe with the --chroot directive, mysqld_safe requires a de-referenced configuration file. For example, if the root of the jail is at /var/mdbj, and the config file is at /var/mdbj/etc/my.cnf, then mysqld_safe needs to be started with an absolute path for the configuration file. Then wsrep_sst_mariabackup appears to run outside the jail, failing to find the data directory, and aborts:
#... these last 2 lines repeats several times, and then:
It's worth noting that when using rsync, the SST fails the first time, but if run a second time it works... |
| Comments |
| Comment by Juan [ 2023-07-19 ] |
|
Hi julien.fritsch, > Juan why setting this customer bug to minor? If so, it will never be fixed. I set it as minor because it's only a problem starting the chrooted server one specific way so there's a trivial workaround. While it would be correct to either remove the switch or fix it, I didn't feel entirely comfortable calling it "major". If you feel that it needs to be set to Major, please do so, or let me know & I will. > Also, have you been able to reproduce this? Yes: the description goes into some detail about how and what the findings were. |