• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Forwarded to devs logrotate: my_print_defaults: unknown option '--mariadbd' with MariaDB 10.5

obendev

Basic Pleskian
User name: obendev

TITLE

logrotate: my_print_defaults: unknown option '--mariadbd' with MariaDB 10.5

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian v18.0.30_build1800200914.12 os_Ubuntu 18.04

PROBLEM DESCRIPTION

In MariaDB version 10.5, my_print_defaults gets called with the option --mariadb, instead of --mysqld
MariaDB/server

STEPS TO REPRODUCE

Upgrade to the latest MariaDB version using curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash (Installing MariaDB .deb Files)

ACTUAL RESULT

Plesk doesn't know --mariadb

EXPECTED RESULT

Plesk should know --mariadb

ANY ADDITIONAL INFORMATION



YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
From developer:

Before:
Code:
root@a10-52-55-192:~# grep -r my_print_defaults /etc/logrotate.* /opt/psa/etc/logrotate.*
root@a10-52-55-192:~# grep -r -- --mariadb /etc/logrotate.* /opt/psa/etc/logrotate.*
root@a10-52-55-192:~# grep -r -- --mysqld /etc/logrotate.* /opt/psa/etc/logrotate.*
root@a10-52-55-192:~#

After upgrading to MariaDB 10.5:
Code:
root@a10-52-55-192:~# curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash
[info] Repository file successfully written to /etc/apt/sources.list.d/mariadb.list
[info] Adding trusted package signing keys...
[info] Running apt-get update...
[info] Done adding trusted package signing keys
root@a10-52-55-192:~# apt-get install mariadb-server mariadb-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  galera-4 libdbd-mysql-perl libdbi-perl libmariadb3 libpcre2-8-0 libreadline5 mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server-10.5 mariadb-server-core-10.5
  socat
Suggested packages:
  libclone-perl libmldbm-perl libnet-daemon-perl libsql-statement-perl mariadb-test
The following packages will be REMOVED:
  mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7
The following NEW packages will be installed:
  galera-4 libdbd-mysql-perl libdbi-perl libmariadb3 libpcre2-8-0 libreadline5 mariadb-client mariadb-client-10.5 mariadb-client-core-10.5 mariadb-common mariadb-server
  mariadb-server-10.5 mariadb-server-core-10.5 socat
0 upgraded, 14 newly installed, 5 to remove and 170 not upgraded.
Need to get 23.5 MB of archives.
After this operation, 42.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
...

The keywords are only encountered in MariaDB 10.5 packages:
Code:
root@a10-52-55-192:~# grep -r my_print_defaults /etc/logrotate.* /opt/psa/etc/logrotate.*
/etc/logrotate.d/mysql-server:          if [ -f `my_print_defaults --mariadbd | grep -oP "pid-file=\K[^$]+"` ]; then
root@a10-52-55-192:~# grep -r -- --mariadb /etc/logrotate.* /opt/psa/etc/logrotate.*
/etc/logrotate.d/mysql-server:          if [ -f `my_print_defaults --mariadbd | grep -oP "pid-file=\K[^$]+"` ]; then
root@a10-52-55-192:~# grep -r -- --mysqld /etc/logrotate.* /opt/psa/etc/logrotate.*
root@a10-52-55-192:~# dpkg -S /etc/logrotate.d/mysql-server
mariadb-server-10.5: /etc/logrotate.d/mysql-server

Also, the keywords are not encountered in Plesk codebase.
So I don't see any issues or problems caused by Plesk here.
 
Back
Top