Bug 2579622

Summary: Mariadb 12.3.4 from F45 updates-testing fails to start
Product: [Fedora] Fedora Reporter: Chris Caudle <chris>
Component: mariadb12.3Assignee: Michal Schorm <mschorm>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 45CC: db-sig, mschorm
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mariadb12.3-12.3.4-4.fc45 mariadb12.3-12.3.4-4.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-12-01 01:04:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Caudle 2026-11-20 18:50:36 UTC
The mariadb.service startup fails with 12.3.4 from F45 updates-testing.
The failure message in the journal is "The process' exit code is 'exited' and its exit status is 1."
The status message from systemctl shows this as the last item attempted:
ExecStartPre=/bin/sh -c "[ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=\`/usr/bin/galera_recovery\`; [ \$? -eq 0 ]   && echo _WSREP_START_POSITION=\$VAR > /wsrep-start-position || exit 1" (code=exited, status=1/FAILURE)

That section of the mariadb.service file has this note:
# Perform automatic wsrep recovery. When server is started without wsrep,
# galera_recovery simply returns an empty string. In any case, however,
# the script is not expected to return with a non-zero status.
# It is always safe to remove /wsrep-start-position
# environment file.
# Do not panic if galera_recovery script is not available. (MDEV-10538)

So the comments seem to indicate that this is always expected to succeed.
The mariadb.service file is run with User=mysql and Group=mysql which do not have write permission to /.  It seems that a process running under user mysql would always be expected to fail when attempting to create the file /wsrep-start-position.

Downgrading the package (and related) to 12.3.2 allows the mariadb service to startup successfully again.
The equivalent section in the mariadb.service file has this comment (note the difference in file path):
# Perform automatic wsrep recovery. When server is started without wsrep,
# galera_recovery simply returns an empty string. In any case, however,
# the script is not expected to return with a non-zero status.
# It is always safe to remove /run/mariadb/wsrep-start-position
# environment file.
# Do not panic if galera_recovery script is not available. (MDEV-10538)
ExecStartPre=/bin/sh -c "[ ! -e /usr/bin/galera_recovery ] && VAR= || \
 VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] \
 && echo _WSREP_START_POSITION=$VAR > /run/mariadb/wsrep-start-position || exit 1"

Creating a file in /run/mariadb/ seems appropriate, so it is surprising that updating the 12.3.4 would attempt to create the file in / instead of  /run/mariadb/.  
Hopefully this is an unintentional change easily corrected.


Reproducible: Always

Steps to Reproduce:
1.Update mariadb and mariadb-* packages from updates-testing to 12.3.4
2.??
3.profit! err...I mean crash!
Actual Results:
The mariadb package attempts to create a file in the root directory and fails to start.

Expected Results:
The mariadb package creates files in /run/mariadb/ and starts successfully.

Comment 1 Fedora Update System 2026-11-24 07:19:56 UTC
FEDORA-2026-628a70a5a0 (mariadb12.3-12.3.4-4.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-628a70a5a0

Comment 2 Fedora Update System 2026-11-25 03:30:14 UTC
FEDORA-2026-628a70a5a0 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-628a70a5a0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-628a70a5a0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Chris Caudle 2026-11-25 16:26:24 UTC
Verified updated package in  updates-testing installs and runs correctly now.

Comment 4 Fedora Update System 2026-11-26 22:06:08 UTC
FEDORA-2026-6d1b4a87a7 (mariadb12.3-12.3.4-4.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-6d1b4a87a7

Comment 5 Fedora Update System 2026-11-26 22:06:15 UTC
FEDORA-2026-66404410a8 (mariadb12.3-12.3.4-4.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-66404410a8

Comment 6 Fedora Update System 2026-11-27 02:32:29 UTC
FEDORA-2026-66404410a8 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-66404410a8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-66404410a8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-11-27 03:23:18 UTC
FEDORA-2026-6d1b4a87a7 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-6d1b4a87a7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-6d1b4a87a7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Chris Caudle 2026-11-30 18:50:56 UTC
After a power cycle the check for the mysql user home directory still seems to be flagging a false failure.
Output from systemctl status -l mariadb:
$ systemctl status -l mariadb
● mariadb.service - MariaDB 12.3 database server
     Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: active (running) since Mon 2026-11-30 08:59:27 CST; 3h 46min ago
 Invocation: 4e02d75b894049e691e33f451363750b
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 1333 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 18 (limit: 231953)
     Memory: 132.8M (peak: 132.8M)
        CPU: 5.578s
     CGroup: /system.slice/mariadb.service
             └─1333 /usr/libexec/mariadbd --basedir=/usr

Nov 30 08:59:14 chubb.cc-net systemd[1]: Starting mariadb.service - MariaDB 12.3 database server...
Nov 30 08:59:21 chubb.cc-net mariadbd[1259]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
Nov 30 08:59:21 chubb.cc-net mariadbd[1259]: If this is not the case, make sure the /var/lib/mysql is empty before running mariadb-prepare-db-dir.
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: Warning: Insecure MariaDB home directory detected:
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: Please change it to '/' to ensure that code cannot be run using
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: /.bashrc or /.bash_profile if ever logging in as
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: the 'mysql' user.
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: To change the home directory: usermod -d / mysql
Nov 30 08:59:27 chubb.cc-net mariadbd[1550]: More information: https://www.cve.org/CVERecord?id=CVE-2026-107814
Nov 30 08:59:27 chubb.cc-net systemd[1]: Started mariadb.service - MariaDB 12.3 database server.

The "Please change it to '/' to ensure that code cannot be run using" message does not seem correct, because the home directory for the mysql user was previously changed.

The userdbctl output indicates that the mysql user is running with home directory of / and no login allowed, which as far as I can tell is the recommended secure configuration:
$ userdbctl user mysql
   User name: mysql
 Disposition: system
    Login OK: no (nologin shell)
 Password OK: no (none set)
         UID: 27
         GID: 27 (mysql)
   Real Name: MySQL Server
   Directory: /
     Storage: classic
       Shell: /sbin/nologin
   Passwords: none
 Self Modify: none
      (Blobs) none
 (Privileged) none

So unclear why the message states that the home directory seems to be incorrect.  This does not seem to negatively affect the db operation, so I'm not flagging this as another bug necessarily, just pointing this out in case someone recognizes that it might be a symptom of something else not configured correctly.

Comment 9 Fedora Update System 2026-12-01 01:04:13 UTC
FEDORA-2026-628a70a5a0 (mariadb12.3-12.3.4-4.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2026-12-05 01:35:12 UTC
FEDORA-2026-6d1b4a87a7 (mariadb12.3-12.3.4-4.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.