5.5.54 fails to start on Debian due refusal to create /var/run/mysqld
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Critical
|
EvgeniyPatlan | ||
5.5 |
Fix Released
|
Undecided
|
EvgeniyPatlan |
Bug Description
Hi,
In 5.5.53-rel38.5-1, there is a portion of /usr/bin/
---
safe_mysql_
# Make sure that directory for $safe_mysql_
mysql_unix_
if [ ! -d $mysql_
then
if [ ! -h $mysql_
mkdir $mysql_
chown $user $mysql_
chmod 755 $mysql_
fi
fi
---
In 5.5.54-rel38.6-1, that part of the script now looks like this:
---
# Check that directory for $safe_mysql_
mysql_unix_
if [ ! -d $mysql_
then
log_error "Directory '$mysql_
exit 1
fi
---
It no longer tries to create /var/run/mysqld (in my case). This is a bit of a crisis, as it prevents MySQL from starting.
Even worse, since apparently MySQL waits forever (at least on Debian Wheezy) to try and start on boot, a reboot of the machine will make it fail to boot. I had to reboot into recovery mode and fix the script. For some reason my Jessie machines finished booting and I resolved by mkdir /var/run/mysqld && chown mysql /var/run/mysqld by hand.
And as a minor note, 'don't exists' isn't good English. It should be 'doesn't exist'.
Changed in percona-server: | |
status: | New → In Progress |
importance: | Undecided → Critical |
Changed in percona-server: | |
status: | In Progress → Fix Released |
Hi.
Thanks for your report, but I wasn't able to reproduce this issue. I have checked on wheezy, jessie, xenial, yakkety
Could you please provide a bit more extended STR and may be logs from installation step.
These logs might shed some light on the situation as the needed directory should be created during package post-installation actions.