mysql-server won't start after update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I installed the update (5.1.41-
status mysql reports "mysql start/post-start, (post-start) process 1194" but there is nothing in /var/run/mysqld.
I assume Bug #551130 is related. But the important issue is that the server is just not starting.
When I "su mysql" and run mysqld I get the following:
100519 18:35:25 [Warning] Can't create test file /srv/var/
100519 18:35:25 [Warning] Can't create test file /srv/var/
100519 18:35:25 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Can't find file: './mysql/
100519 18:35:25 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100519 18:35:25 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name ./ibdata1
InnoDB: File operation call: 'open'.
InnoDB: Cannot continue operation.
Permissions in that directory are file. I can create test files as user "mysql" there.
If I run mysql_upgrade, I get errors:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/
FATAL ERROR: Upgrade failed
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mysql-server 5.1.41-3ubuntu12.1
ProcVersionSign
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Wed May 19 18:19:37 2010
MySQLConf.
[mysqld_safe]
syslog
MySQLVarLibDirL
PackageArchitec
ProcEnviron:
LANG=en_GB.utf8
SHELL=/bin/bash
SourcePackage: mysql-dfsg-5.1
/var/log/messages has entries such as:
May 19 18:53:16 dwaible kernel: [ 111.737472] type=1505 audit(127429159 6.871:17) : operation= "profile_ replace" pid=2491 name="/ usr/sbin/ mysqld" 6.961:18) : operation="mknod" pid=2495 parent=1 profile= "/usr/sbin/ mysqld" requested_ mask="c: :" denied_mask="c::" fsuid=0 ouid=0 name="/ srv/var/ lib/mysql/ dwaible. lower-test" 6.961:19) : operation="mknod" pid=2495 parent=1 profile= "/usr/sbin/ mysqld" requested_ mask="c: :" denied_mask="c::" fsuid=0 ouid=0 name="/ srv/var/ lib/mysql/ dwaible. lower-test" 6.981:20) : operation="mknod" pid=2495 parent=1 profile= "/usr/sbin/ mysqld" requested_ mask="c: :" denied_mask="c::" fsuid=123 ouid=123 name="/ srv/var/ log/mysql/ error.log" 6.991:21) : operation="open" pid=2495 parent=1 profile= "/usr/sbin/ mysqld" requested_ mask="r: :" denied_mask="r::" fsuid=123 ouid=123 name="/ srv/var/ lib/mysql/ mysql/plugin. frm"
May 19 18:53:16 dwaible kernel: [ 111.824343] type=1503 audit(127429159
May 19 18:53:16 dwaible kernel: [ 111.824471] type=1503 audit(127429159
May 19 18:53:16 dwaible kernel: [ 111.840412] type=1503 audit(127429159
May 19 18:53:16 dwaible kernel: [ 111.850493] type=1503 audit(127429159
Ok. It's not being given access, even though the permissions on the files are fine. So what's blocking it?