Upgrade to 5.5.53-0ubuntu0.14.04.1 fails to start daemon, due to missing secure_file_priv directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04.1
MySQL 5.5.52-
MySQL Version 5.5.53-
https:/
This new directory doesn't exist, therefore the daemon will not start.
161027 12:51:30 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/sbin/mysqld: Error on realpath() on '/var/lib/
161027 12:51:30 [ERROR] Failed to access directory for --secure-file-priv. Please make sure that directory exists and is accessible by MySQL Server. Supplied
value : /var/lib/
161027 12:51:30 [ERROR] Aborting
The upgrade should create the new directory required to run the daemon in order to prevent killing the service. Alternatively, this default should not have changed for a minor upgrade in an LTS.
Same problem here. To make MySQL start again, I had to manually type the following commands:
sudo mkdir /var/lib/ mysql-files mysql-files/ mysql-files/
sudo chown -R mysql:mysql /var/lib/
sudo chmod 700 /var/lib/
For some reason, updating does not trigger that code in mysql-server- 5.5-postinst.
I also tried: core-5. 5 core-5. 5
sudo dpkg-reconfigure mysql-server-
and
sudo aptitude reinstall mysql-sever-
with no success.
This was not that easy to find out, because when "sudo service mysql start" is run, no output at all is produced in either of these files: mysql/error. log
/var/log/mysql.err
/var/log/mysql.log
/var/log/
Just the following is printed in /var/log/syslog:
kernel: [ 5613.296491] init: mysql main process (14542) terminated with status 1
kernel: [ 5613.296500] init: mysql main process ended, respawning
kernel: [ 5613.302257] init: mysql post-start process (14543) terminated with status 1
kernel: [ 5613.315931] init: mysql main process (14569) terminated with status 1
kernel: [ 5613.315940] init: mysql main process ended, respawning
kernel: [ 5613.317918] init: mysql post-start process (14570) terminated with status 1
kernel: [ 5613.331260] init: mysql main process (14596) terminated with status 1
kernel: [ 5613.331268] init: mysql respawning too fast, stopped
And to find the actual cause I had to type: sudo mysqld start