> Context: With a LVM volume mounted on /var/lib/mysql, with owner/group 
> mysql/mysql and mod 755, mariadb-
> server fails to initialize the database on installation because it is blocked 
> by apparmor.

mariadb uses /var/lib/mariadb, not /var/lib/mysql.


> kernel: audit: type=1400 audit(1779296474.464:288): apparmor="DENIED" 
> operation="open" class="file" profile="mariadbd" name="/var/log/mysql.err" 
> pid=190452 comm="mariadbd" requested_mask="ac" denied_mask="ac" fsuid=982 
> ouid=982

That path is also incorrect, there is no such path in mariadb's
configuration.

Did you install mysql, and later switch to mariadb perhaps?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2153455

Title:
  Apparmor blocks mariadb-server initialization when /var/lib/mysql is
  mounted using an LVM volume

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mariadb/+bug/2153455/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to