Community

Installation fails on AlmaLinux 9 - MariaDB

Ty
Tyson #1

Fresh installation of AlmaLinux 9 on VMware.. Updated to 9.6 - VERSION=“9.6 (Sage Margay)”

Why does the installation script install MariaDB, only to remove it further along and therefore break the installation.

[09.10.2025_17-35-17] #########################################################################

[09.10.2025_17-35-17] Running: curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11

[09.10.2025_17-35-17] #########################################################################

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
# [info] Checking for script prerequisites.
# [info] MariaDB Server version 10.11 is valid
# [info] Repository file successfully written to /etc/yum.repos.d/mariadb.repo
# [info] Adding trusted package signing keys...
/etc/pki/rpm-gpg ~/cyberpanel/install
~/cyberpanel/install
# [info] Successfully added trusted package signing keys
# [info] Cleaning package cache...
Failed to set locale, defaulting to C.UTF-8
78 files removed



[09.10.2025_17-35-23] #########################################################################

[09.10.2025_17-35-23] Successfully ran: curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.11.

[09.10.2025_17-35-23] #########################################################################




[09.10.2025_17-35-23] #########################################################################

[09.10.2025_17-35-23] Running: yum remove mariadb* -y

[09.10.2025_17-35-23] #########################################################################

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Failed to set locale, defaulting to C.UTF-8
Dependencies resolved.
===========================================================================================================================================================================================================================================================================================================================================================================================
 Package                                                                                           Architecture                                                                       Version                                                                                          Repository                                                                                     Size
===========================================================================================================================================================================================================================================================================================================================================================================================
Removing:
 MariaDB-client                                                                                    x86_64                                                                             10.11.14-1.el9                                                                                   @mariadb                                                                                       91 M
 MariaDB-common                                                                                    x86_64                                                                             10.11.14-1.el9                                                                                   @mariadb                                                                                      327 k
 MariaDB-devel                                                                                     x86_64                                                                             10.11.14-1.el9                                                                                   @mariadb                                                                                       54 M
 MariaDB-server                                                                                    x86_64                                                                             10.11.14-1.el9                                                                                   @mariadb                                                                                      139 M
 MariaDB-shared                                                                                    x86_64                                                                             10.11.14-1.el9                                                                                   @mariadb                                                                                      368 k
Removing dependent packages:
 lsphp74-snmp                                                                                      x86_64                                                                             7.4.33-2.el9                                                                                     @litespeed-update                                                                              61 k
 lsphp81-snmp                                                                                      x86_64                                                                             8.1.33-1.el9                                                                                     @litespeed                                                                                     64 k
 lsphp82-snmp                                                                                      x86_64                                                                             8.2.29-1.el9                                                                                     @litespeed                                                                                     68 k
 lsphp83-snmp                                                                                      x86_64                                                                             8.3.24-1.el9                                                                                     @litespeed                                                                                     68 k
Removing unused dependencies:
 boost-program-options                                                                             x86_64                                                                             1.75.0-10.el9                                                                                    @appstream                                                                                    276 k
 galera-4                                                                                          x86_64                                                                             26.4.23-1.el9                                                                                    @mariadb                                                                                      4.0 M
 lm_sensors-libs                                                                                   x86_64                                                                             3.6.0-10.el9                                                                                     @appstream                                                                                     90 k
 lsof                                                                                              x86_64                                                                             4.94.0-3.el9                                                                                     @baseos                                                                                       624 k
 net-snmp                                                                                          x86_64                                                                             1:5.9.1-17.el9                                                                                   @appstream                                                                                    878 k
 net-snmp-agent-libs                                                                               x86_64                                                                             1:5.9.1-17.el9                                                                                   @appstream                                                                                    2.2 M
 net-snmp-libs                                                                                     x86_64                                                                             1:5.9.1-17.el9                                                                                   @appstream                                                                                    3.1 M
 perl-DBI                                                                                          x86_64                                                                             1.643-9.el9                                                                                      @appstream                                                                                    1.9 M
 perl-Math-BigInt                                                                                  noarch                                                                             1:1.9998.18-460.el9                                                                              @appstream                                                                                    709 k
 perl-Math-Complex                                                                                 noarch                                                                             1.59-481.1.el9_6                                                                                 @appstream                                                                                     86 k
 perl-Sys-Hostname                                                                                 x86_64                                                                             1.23-481.1.el9_6                                                                                 @appstream                                                                                     21 k
 perl-Term-ReadLine                                                                                noarch                                                                             1.17-481.1.el9_6                                                                                 @appstream                                                                                     18 k
 pv                                                                                                x86_64                                                                             1.6.20-1.el9                                                                                     @epel                                                                                         136 k
 rsync                                                                                             x86_64                                                                             3.2.5-3.el9                                                                                      @baseos                                                                                       767 k

Transaction Summary
===========================================================================================================================================================================================================================================================================================================================================================================================
Remove  23 Packages

Freed space: 300 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                                                                                                                                   1/1
  Running scriptlet: MariaDB-server-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             1/23
  Erasing          : MariaDB-server-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             1/23
  Running scriptlet: MariaDB-server-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             1/23
  Erasing          : MariaDB-client-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             2/23
  Erasing          : MariaDB-devel-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                              3/23
  Erasing          : lsphp83-snmp-8.3.24-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                 4/23
  Erasing          : lsphp82-snmp-8.2.29-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                 5/23
  Erasing          : lsphp81-snmp-8.1.33-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                 6/23
  Erasing          : lsphp74-snmp-7.4.33-2.el9.x86_64                                                                                                                                                                                                                                                                                                                                 7/23
  Running scriptlet: net-snmp-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                                   8/23
  Erasing          : net-snmp-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                                   8/23
  Running scriptlet: net-snmp-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                                   8/23
  Erasing          : net-snmp-agent-libs-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                        9/23
  Erasing          : MariaDB-shared-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                            10/23
  Running scriptlet: MariaDB-shared-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                            10/23
  Erasing          : MariaDB-common-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                            11/23
  Erasing          : perl-DBI-1.643-9.el9.x86_64                                                                                                                                                                                                                                                                                                                                     12/23
  Erasing          : perl-Math-BigInt-1:1.9998.18-460.el9.noarch                                                                                                                                                                                                                                                                                                                     13/23
  Running scriptlet: galera-4-26.4.23-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                   14/23
  Erasing          : galera-4-26.4.23-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                   14/23
  Erasing          : perl-Math-Complex-1.59-481.1.el9_6.noarch                                                                                                                                                                                                                                                                                                                       15/23
  Erasing          : perl-Term-ReadLine-1.17-481.1.el9_6.noarch                                                                                                                                                                                                                                                                                                                      16/23
  Erasing          : boost-program-options-1.75.0-10.el9.x86_64                                                                                                                                                                                                                                                                                                                      17/23
  Erasing          : net-snmp-libs-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                             18/23
  Erasing          : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                                                                                                                                                                                                                                             19/23
  Erasing          : perl-Sys-Hostname-1.23-481.1.el9_6.x86_64                                                                                                                                                                                                                                                                                                                       20/23
  Erasing          : rsync-3.2.5-3.el9.x86_64                                                                                                                                                                                                                                                                                                                                        21/23
  Erasing          : lsof-4.94.0-3.el9.x86_64                                                                                                                                                                                                                                                                                                                                        22/23
  Erasing          : pv-1.6.20-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                          23/23
  Running scriptlet: pv-1.6.20-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                          23/23

Ty
Tyson #2
  Verifying        : MariaDB-client-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             1/23
  Verifying        : MariaDB-common-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             2/23
  Verifying        : MariaDB-devel-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                              3/23
  Verifying        : MariaDB-server-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             4/23
  Verifying        : MariaDB-shared-10.11.14-1.el9.x86_64                                                                                                                                                                                                                                                                                                                             5/23
  Verifying        : boost-program-options-1.75.0-10.el9.x86_64                                                                                                                                                                                                                                                                                                                       6/23
  Verifying        : galera-4-26.4.23-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                    7/23
  Verifying        : lm_sensors-libs-3.6.0-10.el9.x86_64                                                                                                                                                                                                                                                                                                                              8/23
  Verifying        : lsof-4.94.0-3.el9.x86_64                                                                                                                                                                                                                                                                                                                                         9/23
  Verifying        : lsphp74-snmp-7.4.33-2.el9.x86_64                                                                                                                                                                                                                                                                                                                                10/23
  Verifying        : lsphp81-snmp-8.1.33-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                11/23
  Verifying        : lsphp82-snmp-8.2.29-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                12/23
  Verifying        : lsphp83-snmp-8.3.24-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                13/23
  Verifying        : net-snmp-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                                  14/23
  Verifying        : net-snmp-agent-libs-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                       15/23
  Verifying        : net-snmp-libs-1:5.9.1-17.el9.x86_64                                                                                                                                                                                                                                                                                                                             16/23
  Verifying        : perl-DBI-1.643-9.el9.x86_64                                                                                                                                                                                                                                                                                                                                     17/23
  Verifying        : perl-Math-BigInt-1:1.9998.18-460.el9.noarch                                                                                                                                                                                                                                                                                                                     18/23
  Verifying        : perl-Math-Complex-1.59-481.1.el9_6.noarch                                                                                                                                                                                                                                                                                                                       19/23
  Verifying        : perl-Sys-Hostname-1.23-481.1.el9_6.x86_64                                                                                                                                                                                                                                                                                                                       20/23
  Verifying        : perl-Term-ReadLine-1.17-481.1.el9_6.noarch                                                                                                                                                                                                                                                                                                                      21/23
  Verifying        : pv-1.6.20-1.el9.x86_64                                                                                                                                                                                                                                                                                                                                          22/23
  Verifying        : rsync-3.2.5-3.el9.x86_64                                                                                                                                                                                                                                                                                                                                        23/23

Removed:
  MariaDB-client-10.11.14-1.el9.x86_64       MariaDB-common-10.11.14-1.el9.x86_64              MariaDB-devel-10.11.14-1.el9.x86_64             MariaDB-server-10.11.14-1.el9.x86_64            MariaDB-shared-10.11.14-1.el9.x86_64             boost-program-options-1.75.0-10.el9.x86_64       galera-4-26.4.23-1.el9.x86_64                   lm_sensors-libs-3.6.0-10.el9.x86_64
  lsof-4.94.0-3.el9.x86_64                   lsphp74-snmp-7.4.33-2.el9.x86_64                  lsphp81-snmp-8.1.33-1.el9.x86_64                lsphp82-snmp-8.2.29-1.el9.x86_64                lsphp83-snmp-8.3.24-1.el9.x86_64                 net-snmp-1:5.9.1-17.el9.x86_64                   net-snmp-agent-libs-1:5.9.1-17.el9.x86_64       net-snmp-libs-1:5.9.1-17.el9.x86_64
  perl-DBI-1.643-9.el9.x86_64                perl-Math-BigInt-1:1.9998.18-460.el9.noarch       perl-Math-Complex-1.59-481.1.el9_6.noarch       perl-Sys-Hostname-1.23-481.1.el9_6.x86_64       perl-Term-ReadLine-1.17-481.1.el9_6.noarch       pv-1.6.20-1.el9.x86_64                           rsync-3.2.5-3.el9.x86_64

Complete!



[09.10.2025_17-35-25] #########################################################################

[09.10.2025_17-35-25] Successfully ran: yum remove mariadb* -y.

[09.10.2025_17-35-25] #########################################################################




[09.10.2025_17-35-25] #########################################################################

[09.10.2025_17-35-25] Running: sudo dnf -qy module disable mariadb


[09.10.2025_17-35-25] #########################################################################

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Failed to set locale, defaulting to C.UTF-8
Error: Failed to download metadata for repo 'mariadb-maxscale': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried



[09.10.2025_17-35-59] #########################################################################

[09.10.2025_17-35-59] Successfully ran: sudo dnf -qy module disable mariadb.

[09.10.2025_17-35-59] #########################################################################




[09.10.2025_17-35-59] #########################################################################

[09.10.2025_17-35-59] Running: sudo dnf module reset mariadb -y

[09.10.2025_17-35-59] #########################################################################

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Failed to set locale, defaulting to C.UTF-8
MariaDB MaxScale                                                                                                                                                                                                                                                                                                                                           646  B/s | 109  B     00:00
Errors during downloading metadata for repository 'mariadb-maxscale':
  - Status code: 404 for https://dlm.mariadb.com/repo/maxscale/latest/yum/rhel/9/x86_64/repodata/repomd.xml (IP: 104.17.191.14)
Error: Failed to download metadata for repo 'mariadb-maxscale': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried



[09.10.2025_17-36-00] #########################################################################

[09.10.2025_17-36-00] Successfully ran: sudo dnf module reset mariadb -y.

[09.10.2025_17-36-00] #########################################################################




[09.10.2025_17-36-00] #########################################################################

[09.10.2025_17-36-00] Running: dnf install MariaDB-server MariaDB-client MariaDB-backup -y

[09.10.2025_17-36-00] #########################################################################

/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Failed to set locale, defaulting to C.UTF-8
MariaDB MaxScale                                                                                                                                                                                                                                                                                                                                           1.1 kB/s | 109  B     00:00
Errors during downloading metadata for repository 'mariadb-maxscale':
  - Status code: 404 for https://dlm.mariadb.com/repo/maxscale/latest/yum/rhel/9/x86_64/repodata/repomd.xml (IP: 104.18.135.24)
Error: Failed to download metadata for repo 'mariadb-maxscale': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried



[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Successfully ran: dnf install MariaDB-server MariaDB-client MariaDB-backup -y.

[09.10.2025_17-36-01] #########################################################################




[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Running: systemctl start mariadb

[09.10.2025_17-36-01] #########################################################################

Failed to start mariadb.service: Unit mariadb.service not found.



[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Successfully ran: systemctl start mariadb.

[09.10.2025_17-36-01] #########################################################################




[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Running: systemctl enable mariadb

[09.10.2025_17-36-01] #########################################################################

Failed to enable unit: Unit file mariadb.service does not exist.



[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Successfully ran: systemctl enable mariadb.

[09.10.2025_17-36-01] #########################################################################




[09.10.2025_17-36-01] #########################################################################

[09.10.2025_17-36-01] Running: mariadb -u root -e "use mysql;DROP DATABASE IF EXISTS test;DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%';GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'hYDfi4PdayQvQ2';flush privileges;"

[09.10.2025_17-36-01] #########################################################################

Traceback (most recent call last):
  File "/root/cyberpanel/install/install.py", line 2940, in <module>
    main()
  File "/root/cyberpanel/install/install.py", line 2807, in main
    installCyberPanel.Main(cwd, mysql, distro, ent, serial, port, args.ftp, args.powerdns, args.publicip,
  File "/root/cyberpanel/install/installCyberPanel.py", line 961, in Main
    installer.changeMYSQLRootPassword()
  File "/root/cyberpanel/install/installCyberPanel.py", line 510, in changeMYSQLRootPassword
    install_utils.call(command, self.distro, command, command, 0, 0, os.EX_OSERR)
  File "/root/cyberpanel/install/install_utils.py", line 325, in call
    res = subprocess.call(shlex.split(command))
  File "/usr/lib64/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.9/subprocess.py", line 1837, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mariadb'
Oops, something went wrong...
Al
Aleksey #3

I’m getting the same issue on all fresh servers.

[09.10.2025_06-46-15] #########################################################################

[09.10.2025_06-46-15] Running: mariadb -u root -e "use mysql;DROP DATABASE IF EXISTS test;DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%';GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'kVLyUOkwNonsPb';flush privileges;"

[09.10.2025_06-46-15] #########################################################################

Traceback (most recent call last):
  File "/root/cyberpanel/install/install.py", line 2940, in <module>
    main()
  File "/root/cyberpanel/install/install.py", line 2804, in main
    installCyberPanel.Main(cwd, mysql, distro, ent, None, port, args.ftp, args.powerdns, args.publicip, remotemysql,
  File "/root/cyberpanel/install/installCyberPanel.py", line 961, in Main
    installer.changeMYSQLRootPassword()
  File "/root/cyberpanel/install/installCyberPanel.py", line 510, in changeMYSQLRootPassword
    install_utils.call(command, self.distro, command, command, 0, 0, os.EX_OSERR)
  File "/root/cyberpanel/install/install_utils.py", line 325, in call
    res = subprocess.call(shlex.split(command))
  File "/usr/lib64/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.9/subprocess.py", line 1837, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mariadb'
Oops, something went wrong...
Ty
Tyson #4

I tried adding the baseurl manually, but this still fails, despite it loading in multiple browsers. I think it also rewrites the repo file when running the install again.

The work around was to run the install within screen session and then detach and then set enabled = 0 for mariadb-main and mariadb-maxscale and letting it use the base MariaDB.repo. Not sure how it will be affected by not having Maxscale installed.

This may not be ideal, but the installation completed. I will report back once I’ve had a play around with the features of CyberPanel.

Ma
Master3395 #5

Should be fixed in V2.5.5-dev
Almalinux 9 has some strange issues for some reason.

Sign in to reply