Unable to start PXC using systemd if log-error=/var/log/mysql*.log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
New
|
Undecided
|
Unassigned |
Bug Description
Trivial to reproduce.
Environment:
$ rpm -qa | grep -i percona
Percona-
percona-
Percona-
Percona-
Percona-
percona-
Percona-
Consider the following my.cnf:
=====
[mysqld]
log-error=
[mysqld_safe]
log-error=
=====
Then when you try to start the MySQL service via systemd, it fails. When looking at the status:
=====
$ systemctl status mysql
mysql.service - Percona XtraDB Cluster
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Thu 2017-08-24 16:14:31 UTC; 5s ago
Process: 2856 ExecStopPost=
Process: 2173 ExecStop=
Process: 28349 ExecStartPost=
Process: 28348 ExecStart=
Process: 3903 ExecStartPre=
Main PID: 28348 (code=exited, status=0/SUCCESS)
Aug 24 16:14:31 ip-10-0-0-155 systemd[1]: Starting Percona XtraDB Cluster...
Aug 24 16:14:31 ip-10-0-0-155 mysql-systemd[
Aug 24 16:14:31 ip-10-0-0-155 systemd[1]: mysql.service: control process exited, code=exited status=1
Aug 24 16:14:31 ip-10-0-0-155 systemd[1]: Failed to start Percona XtraDB Cluster.
Aug 24 16:14:31 ip-10-0-0-155 systemd[1]: Unit mysql.service entered failed state.
=====
Looking at line 48 of /usr/bin/
=====
mysql*.log) install /dev/null -m0640 -o@MYSQLD_USER@ -g@MYSQLD_USER@ "$log" ;;
=====
Temporary workaround is to replace both '@MYSQLD_USER@' with 'mysql'. However, this doesn't survive package reinstallation or upgrade.
description: | updated |
description: | updated |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PXC-2003