Dave W
Regular Pleskian
Username:
TITLE
Mariadb 10.6 /etc/my.cnf issue
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.44.3
OS version: AlmaLinux 8.6 x86_64
Build date: 2022/06/14 18:00
Revision: 706e0d50fa11eb71b2f8c735856695131f29ef86
PROBLEM DESCRIPTION
Clean install of AlmaLinux, no db server installed. We add the repo for MariaDB 10.6 to the server;
cat << EOF > /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/$mariadb_version/rhel8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
so that the plesk installer will add Mariadb 10.6 while installing.
When plesk installs Mariadb fails to start because the my.cnf file has
bind-address = ::ffff:127.0.0.1
which is not compatible with MariaDB 10.6 and Mariadb fails to start.
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [Note] Server socket created on IP: '127.0.0.1'.
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 22: Invalid argument
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Do you already have another server running on port: 3306 ?
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Aborting
STEPS TO REPRODUCE
Basic install of AlmaLinux
We add the repo for Mariadb 10.6
Run the plesk installer
MariaDB fails to start.
ACTUAL RESULT
From logs it seems the installer is installing a my.cnf from the Plesk repo
mariadb-server-3:10.3.32-2.module_el8.6.0+2867+72759d2f
which is not compatible with MariaDB 10.6
Further on the install logs:
Installing: MariaDB-shared-10.6.8-1.el8.x86_64 [6/282] Done
Running scriptlet: MariaDB-shared-10.6.8-1.el8.x86_64 [6/282] Done
Running scriptlet: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
Installing: MariaDB-common-10.6.8-1.el8.x86_64 [7/282]...
Installing: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
rpm scriptlet: warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
Running scriptlet: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
So it seems that the correct my.cnf for MariaDB10.6 is installed as /etc/my.cnf.rpmnew
EXPECTED RESULT
Plesk would install a MariaDB 10.6 compatible my.cnf
ANY ADDITIONAL INFORMATION
The fix is to remove change the line
bind-address = ::ffff:127.0.0.1
to
bind-address = 127.0.0.1
in /etc/my.cnf
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Mariadb 10.6 /etc/my.cnf issue
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Product version: Plesk Obsidian 18.0.44.3
OS version: AlmaLinux 8.6 x86_64
Build date: 2022/06/14 18:00
Revision: 706e0d50fa11eb71b2f8c735856695131f29ef86
PROBLEM DESCRIPTION
Clean install of AlmaLinux, no db server installed. We add the repo for MariaDB 10.6 to the server;
cat << EOF > /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/$mariadb_version/rhel8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
EOF
so that the plesk installer will add Mariadb 10.6 while installing.
When plesk installs Mariadb fails to start because the my.cnf file has
bind-address = ::ffff:127.0.0.1
which is not compatible with MariaDB 10.6 and Mariadb fails to start.
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [Note] Server socket created on IP: '127.0.0.1'.
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 22: Invalid argument
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Do you already have another server running on port: 3306 ?
Jun 30 03:32:25 alma.myhost.ie mariadbd[44410]: 2022-06-30 3:32:25 0 [ERROR] Aborting
STEPS TO REPRODUCE
Basic install of AlmaLinux
We add the repo for Mariadb 10.6
Run the plesk installer
MariaDB fails to start.
ACTUAL RESULT
From logs it seems the installer is installing a my.cnf from the Plesk repo
mariadb-server-3:10.3.32-2.module_el8.6.0+2867+72759d2f
which is not compatible with MariaDB 10.6
Further on the install logs:
Installing: MariaDB-shared-10.6.8-1.el8.x86_64 [6/282] Done
Running scriptlet: MariaDB-shared-10.6.8-1.el8.x86_64 [6/282] Done
Running scriptlet: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
Installing: MariaDB-common-10.6.8-1.el8.x86_64 [7/282]...
Installing: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
rpm scriptlet: warning: /etc/my.cnf created as /etc/my.cnf.rpmnew
Running scriptlet: MariaDB-common-10.6.8-1.el8.x86_64 [7/282] Done
So it seems that the correct my.cnf for MariaDB10.6 is installed as /etc/my.cnf.rpmnew
EXPECTED RESULT
Plesk would install a MariaDB 10.6 compatible my.cnf
ANY ADDITIONAL INFORMATION
The fix is to remove change the line
bind-address = ::ffff:127.0.0.1
to
bind-address = 127.0.0.1
in /etc/my.cnf
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug