[MDEV-12102] Can´t start via systemd but only with mysqld_safe Created: 2017-02-21 Updated: 2017-04-20 Resolved: 2017-04-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration, Galera, Platform RedHat, Server |
| Affects Version/s: | 10.1.21 |
| Fix Version/s: | 10.1.22 |
| Type: | Bug | Priority: | Major |
| Reporter: | Uwe Beierlein | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | configuration, galera, startup, systemd | ||
| Environment: |
CentOS 7.3.1611 |
||
| Attachments: |
|
| Description |
|
SELinux is disabled. "datadir" points to a different location (/mysql/data). Starting MariaDB via systemd fails with the following entries in /var/log/messages:
It looks like systemd completely ignores the configuration. Starting it via "mysqld_safe --verbose --user=mysql &" works like a charm:
|
| Comments |
| Comment by Elena Stepanova [ 2017-02-24 ] |
|
Could you please paste or attach your config file? Is it possible that your non-default datadir is configured in [mysqld_safe] section of the config file? In this case mysqld_safe would pass it over to mysqld, however when you start the server directly (like systemd does), it wouldn't even look into mysqld_safe options, and you'd get the exact error that you've got. |
| Comment by Uwe Beierlein [ 2017-02-24 ] |
|
The datadir-option is not specified under the [mysqd_safe] - section. My Ticket is possibly a duplicate of the MySQL-Ticket: https://bugs.mysql.com/bug.php?id=82709 |
| Comment by Daniel Black [ 2017-02-25 ] |
|
Have you previously had mysql installed? The systemd implementation or mysql and mariadb is rather different. ```journalctl -u mariadb.service``` might show some additional system information regarding the failed attempt at restarting the service. |
| Comment by Uwe Beierlein [ 2017-02-28 ] |
|
We did a fresh-install on centos7. Please find the logs attached. |
| Comment by Uwe Beierlein [ 2017-03-20 ] |
|
Meanwhile we re-installed the system. It is working now. |
| Comment by Elena Stepanova [ 2017-04-20 ] |
|
Since the re-installed version is 10.1.22, while the failing one was 10.1.21, and that Galera is in use, it's quite possible that the problem was fixed by this commit: |