Plesk

MariaDB logrotate on Plesk server reports error: logrotate_script: 3: [: /var/run/mysqld/mysqld.pid: unexpected operator

Symptoms

Cause

Bug MDEV-11884 in MariaDB Debian/Ubuntu packaging, which is planned to be fixed in version 10.5.

Resolution

If MariaDB was installed from the OS repositories (default)

  1. Connect to the server via SSH.

  2. Install the latest updates:

    # apt update && apt upgrade

If MariaDB was installed from unofficial repositories (manually)

Warning: the following solution should be applied at your own risk. It is recommended to use the OS repositories for database servers.

  1. Connect to the server via SSH.

  2. Modify the /etc/logrotate.d/mysql-server file as per the solution suggested in the MariaDB bugtracker.

Exit mobile version