File /server created on startup

Bug #1566335 reported by Stefan Pasel
6
This bug affects 1 person
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-XtraDB-Cluster-server-56 on CentOS 7.x via the official repositories.

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)
Revision history for this message
Stefan Pasel (pasel) wrote :

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
        [ -e $log ] || touch $log
        chmod 0640 $log
        chown mysql:mysql $log || exit 1
        if [ -x /usr/sbin/restorecon ]; then
            /usr/sbin/restorecon $log
        fi
    fi

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1894

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.