Iām seeing mariadb startup failures on two different Fedora 42 systems now.
After updating to mariadb Ver 15.1 Distrib 10.11.15-MariaDB mariadb fails to start at reboot.
The issue appears to be that some process is deleting the pidfile directory (/run/mariadb) at reboot.
despite re-adding /run/mariadb and setting ownership to mysql:root, the directory is removed after every reboot (itās unaffected by stopping mariadb.service), causing mariadb startup to fail.
/var/log/mariadb/mariadb.log reports:
2026-01-17 3:53:12 0 [Note] Starting MariaDB 10.11.15-MariaDB source revision cb0d6dd835023a7162ace471cd047161f205dd58 server_uid IFK/IK
+ljKqnJAsyYqNn+oGTS2U= as process 5658
2026-01-17 3:53:12 0 [Note] InnoDB: Compressed tables use zlib 1.3.1.zlib-ng
2026-01-17 3:53:12 0 [Note] InnoDB: Number of transaction pools: 1
2026-01-17 3:53:12 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2026-01-17 3:53:12 0 [Note] InnoDB: Using Linux native AIO
2026-01-17 3:53:12 0 [Note] InnoDB: innodb_buffer_pool_size_max=128m, innodb_buffer_pool_size=128m
2026-01-17 3:53:12 0 [Note] InnoDB: Initialized memory pressure event listener
2026-01-17 3:53:12 0 [Note] InnoDB: Completed initialization of buffer pool
2026-01-17 3:53:12 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2026-01-17 3:53:12 0 [Note] InnoDB: End of log at LSN=111411123468
2026-01-17 3:53:12 0 [Note] InnoDB: 128 rollback segments are active.
2026-01-17 3:53:12 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
2026-01-17 3:53:12 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2026-01-17 3:53:12 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2026-01-17 3:53:12 0 [Note] InnoDB: log sequence number 111411123468; transaction id 225706055
2026-01-17 3:53:12 0 [Note] Plugin 'FEEDBACK' is disabled.
2026-01-17 3:53:12 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2026-01-17 3:53:12 0 [Note] Server socket created on IP: '0.0.0.0', port: '3306'.
2026-01-17 3:53:12 0 [Note] Server socket created on IP: '::', port: '3306'.
2026-01-17 3:53:12 0 [ERROR] mariadbd: Can't create/write to file '/run/mariadb/mariadb.pid' (Errcode: 2 "No such file or directory")
2026-01-17 3:53:12 0 [ERROR] Can't start server: can't create PID file: No such file or directory
terminate called without an active exception
260117 3:53:12 [ERROR] /usr/libexec/mariadbd got signal 6 ;
Sorry, we probably made a mistake, and this is a bug.
I created a systemd-tmpfiles configuration file for mariadb at /usr/lib/tmpfiles.d/mariadb.conf:
d /run/mariadb 0755 mysql mysql
Then reloaded the systemd-tmpfiles configuration with:
systemctl restart systemd-tmpfiles-clean.service
and rebooted to test the change. /run/mariadb with appropriate ownership and permissions is now created at boot time and mariadb now starts up without issue.
It seems that this regression is fixed with adding a mariadb.conf to a tmpfiles.d directory.
However, the suggested fix (comments 8 and 10 in the bug report you linked seems like overkill.
Just creating /usr/lib/tmpfiles.d/mariadb.conf with appropriate info for the pidfile directory does the trick.
Presumably the next update will resolve this and overwrite the created file. Unless Iām missing something. Am I?