File /server created on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
New
|
Undecided
|
Alexey Bychko |
Bug Description
On startup an empty file /server for user mysql.mysql is created:
-rw-r----- 1 mysql mysql
If there is a directory in place with this name, the directory gets chmodded and the ownership changes (even if the directory is owned by root only)
I have installed Percona-
The installed version is 5.6.28-25.14.1.el7 , the problem also happened with 5.6.24-25.11.1.el7 on a different setup.
The problem occurs whenever i start or restart the mysql/percona process using systemctl, e.g.
systemctl start <email address hidden> or systemctl start mysql.service
Unfortunately we are using /server already which is leading to nasty problems and we are currently required to always move this directory somewhere else.
It does not matter where i put datadir, basedir or any other path variable.
Changed in percona-xtradb-cluster: | |
assignee: | nobody → Alexey Bychko (abychko) |
I have found a way to work around this issue by setting the log_error var in the mysql cnf.
The problem itself is resulting in the file
/usr/bin/ mysql-systemd
The responsible lines are (Lines 48 ff) :
if [ ! -z $log ]; then restorecon ]; then
/usr/ sbin/restorecon $log
[ -e $log ] || touch $log
chmod 0640 $log
chown mysql:mysql $log || exit 1
if [ -x /usr/sbin/
fi
fi