mysqld-systemd error when MySQL error-log doesn't exist in Centos/RHEL7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
New
|
Medium
|
EvgeniyPatlan | ||
5.7 |
New
|
Medium
|
EvgeniyPatlan |
Bug Description
If MySQL error-log doesn't exist a MySQL restart will cause mysqld-systemd to throw an error:
mysql-
There's an unreplaced variable @MYSQLD_USER@ in mysqld-systemd script:
# If log file is not specified it's put into datadir by default
if [ ! -z $log ]; then
if [ ! -e "$log" -a ! -h "$log" -a x$(dirname "$log") = "x/var/log" ]; then
case $(basename "$log") in
*) ;;
esac
fi
if [ -x /usr/sbin/
[ -e "$log" ] && /usr/sbin/
fi
fi
The problem occurs only in PXC 5.7 (I've tested it against 5.7.19-29.22.1.el7) on Centos/RHEL 7.
tags: | added: i209060 |
Changed in percona-xtradb-cluster: | |
assignee: | nobody → EvgeniyPatlan (evgeniy-patlan) |
The workaround for this issue is to change log-error directive in MySQL's configuration to other directory (for example, MySQL's data directory) or create an empty file with correct owner and group.