[MDEV-13462] Can't start mysql with Galera and SELinux enabled Created: 2017-08-07 Updated: 2020-08-25 Resolved: 2018-06-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Platform RedHat, Server |
| Affects Version/s: | 10.2.7 |
| Fix Version/s: | 10.1.27, 10.2.10 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Anders Karlsson | Assignee: | Sachin Setiya (Inactive) |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.2.1511 (Core) |
||
| Description |
|
This is similar, but not the same as, The issue seems to be with the galera_recover script that fails when run from mariadb.service but runs fine from the commandline when SELinux is enabled, with SELinux disabled all runs fine. This also means that the galera_new_cluster script also does not work, as this restarts mariadb using systemd. Disabling SELinux will fix this. Also, all runs fine with Galera not configured, so SELinux has to be enabled and Galera configured for this issue to appear. |
| Comments |
| Comment by Andrii Nikitin (Inactive) [ 2017-08-10 ] | ||||
|
I can verify this by just putting wsrep_on=1 into my.cnf (no other galera configuration are really required for verification). journalctl -xe shows these when SELinux is enabled:
The service is able to start properly when SELinux is disabled | ||||
| Comment by Sergei Golubchik [ 2018-04-30 ] | ||||
|
Wasn't it fixed in | ||||
| Comment by Chris Calender (Inactive) [ 2018-05-23 ] | ||||
|
This does look to be fixed by | ||||
| Comment by Seppo Jaakola [ 2018-06-14 ] | ||||
|
the fix in |