[MDEV-25737] version 10.3.29 fails to create "/run/mariadb" directory Created: 2021-05-20  Updated: 2022-09-28  Resolved: 2021-11-01

Status: Closed
Project: MariaDB Server
Component/s: Configuration, Packaging
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Jim Dutton Assignee: Alexey Bychko (Inactive)
Resolution: Not a Bug Votes: 0
Labels: regression
Environment:

Centos-7.9, OraEL-7.9, MariaDB-10.3.29-1.el7 client|common|compat|server

/etc/yum.repos.d/MariaDB.repo


Issue Links:
Blocks
blocks MDEV-18841 Get rid of deprecated /var/run paths Closed

 Description   

Insert "pid-file=/run/mariadb/mariadb.pid" into installed "/etc/my.cnf.d/server.cnf" and the directory does not get created.

"/usr/lib/tmpfiles.d/mariadb.conf" contains only one line:
d /var/lib/mysql 0755 mysql mysql -

Have to manually create and modify new "/etc/tmpfiles.d/mariadb.conf" to include the requisite "d /run/mariadb 0755 mysql mysql -".

There are no instructions/notes/warnings about this - just the error message:
[ERROR] mysqld: Can't create/write to file '/run/mariadb/mariadb.pid'
(Errcode: 2 "No such file or directory")

This was not a problem with MariaDB-10.3.28.



 Comments   
Comment by Jim Dutton [ 2021-06-12 ]

Well something has changed, but I can't see what. The "/usr/lib/tmpfiles/mariadb.conf"
file still exists (dated 05/05/2021) and now contains only the line for "var/lib/mysql". The expected "/run/mariadb" directory is now being generated correctly. The version of MariaDB has not changed nor has it been updated in any system using it since 2021-05-19.

Comment by Jim Dutton [ 2021-11-01 ]

This problem is no longer an issue. Have moved on to 10.3.31. This problem can be closed.

Comment by Alexey Bychko (Inactive) [ 2021-11-01 ]

the following doc explains the logic in details:
https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7

Generated at Thu Feb 08 09:39:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.