percona-server-server-5.6 misses apparmor file - fails to install on 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
New
|
Undecided
|
Unassigned |
Bug Description
sudo apt-get install percona-
Setting up percona-
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package percona-
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
percona-
This turned out to be caused by at least the apparmor profile not being there.
If a previous install of mysql-server was there, the file was there, but missing the lines to access the percona lib dir.
To fix this I resused that file and added the last two lines:
# Allow data dir access
/var/lib/mysql/ r,
/var/lib/mysql/** rwk,
/var/
/var/
then this to be able to control it (as root):
rm -r /var/lib/mysql* # Remove any old database (WARNING!)
setup mysql_install_db -u mysql # Install new database
systemctl unmask mysql.service # Enables the service for systemd
service mysql start # start the service.
The fix is probable to add a proper apparmor profile to the package, one has to decide if the 'alternative db' dirs have to be included
tags: | added: pkg |
https:/ /bugs.launchpad .net/ubuntu/ +source/ percona- xtradb- cluster- 5.6/+bug/ 1623964 is related.