Public bug reported:
mariadb fails to start with Apparmor 5.0.0-beta1-0ubuntu3 on resolute
with "permission denied"
mariadb log is:
Mar 25 22:44:28 newton.dooleys.me.uk systemd[1]: Starting mariadb.service -
MariaDB 11.8.6 database server...
Mar 25 22:44:29 newton.dooleys.me.uk (mariadbd)[5847]: mariadb.service:
Referenced but unset environment variable evaluates to an empty string:
MYSQLD_OPTS, _WSREP_NEW_CLUSTER
Mar 25 22:44:29 newton.dooleys.me.uk mariadbd[5847]: 2026-03-25 22:44:29 0
[Warning] Can't create test file '/data/mysql/newton.lower-test' (Errcode: 13
"Permission denied")
Mar 25 22:44:29 newton.dooleys.me.uk mariadbd[5847]: 2026-03-25 22:44:29 0
[Note] Starting MariaDB 11.8.6-MariaDB-4 from Ubuntu-log source revision
9bfea48ce1214cc4470f6f6f8a4e30352cef84e7 >
Mar 25 22:44:29 newton.dooleys.me.uk mariadbd[5847]: 2026-03-25 22:44:29 0
[ERROR] mariadbd: Can't create/write to file './ddl_recovery.log' (Errcode: 13
"Permission denied")
Mar 25 22:44:29 newton.dooleys.me.uk mariadbd[5847]: 2026-03-25 22:44:29 0
[ERROR] DDL_LOG: Failed to create ddl log file: ./ddl_recovery.log
Mar 25 22:44:29 newton.dooleys.me.uk mariadbd[5847]: 2026-03-25 22:44:29 0
[ERROR] Aborting
Mar 25 22:44:29 newton.dooleys.me.uk systemd[1]: mariadb.service: Main process
exited, code=exited, status=1/FAILURE
Mar 25 22:44:29 newton.dooleys.me.uk systemd[1]: mariadb.service: Failed with
result 'exit-code'.
Mar 25 22:44:29 newton.dooleys.me.uk systemd[1]: Failed to start
mariadb.service - MariaDB 11.8.6 database server.
All permissions and ownership checked on mysql and are correct.
Apparmor reports:
2026-03-25T22:58:20.839348+00:00 newton kernel: audit: type=1400
audit(1774479500.835:3493): apparmor="DENIED" operation="mknod"
class="file" profile="mariadbd" name="/data/mysql/newton.lower-test"
pid=20829 comm="mariadbd" requested_mask="c" denied_mask="c" fsuid=113
ouid=113
Apparmor release: 5.0.0~beta1-0ubuntu3
Mariadb release: 1:11.8.6-4
Platform: Raspberry Pi 5
Kernel: 7.0.0-1004-raspi
Ubuntu release: 26.04
Expected:
Mariadb to start as normal
Happened:
Fail to start with "permission denied" error when trying to create test
file and recovery log
** Affects: apparmor (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2146390
Title:
mariadb fails to start with Apparmor 5.0.0-beta1-0ubuntu3 on Resolute
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/2146390/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs