DBMS frequently reloads without reason
Symptoms
The native MySQL or MariaDB database server restarts periodically, even though the DBMS service is active.
Causes
The “srvmon” utility, which monitors information on the PID file or the process name from the process list, restarts the service because it thinks it is not running. The causes can include:
- The database server was installed from a third-party repository rather than the panel;
- The database server PID (process identifier) settings were changed manually;
- An error in the monitoring system arose when determining the service status.
Solution
Specify the correct process name
Ensure that the correct process name for the DBMS is specified in the “Monitoring and logs” - “Services” - “mysql” or “mariadb” - “Change” field in the “Process name” section.
Specify the correct path to the PID file
You can also restore the correct value of the “pid-file” parameter in the configuration files of MySQL or MariaDB services if they have been manually changed or deleted.
Restoring the monitoring service
To restore proper service performance, open the “Notifications” section and remove any restart errors.
In the business version, clear the “problems” table in the panel database on the node causing problems. To do so, run the “sqlite3” utility (install it if not already installed) and execute the command:
sqlite3 /usr/local/mgr5/etc/ispmgrnode_problems.db 'delete from problems';
DBMS parameter table
OS and DBMS type | Process name | Configuration file location | Value of the “pid-file” parameter |
---|---|---|---|
CentOS 7 / MariaDB | mysqld | /etc/my.cnf | /var/run/mariadb/mariadb.pid |
Ubuntu 20 / MySQL | mysqld | /etc/mysql/mysql.conf.d/mysqld.cnf | /var/run/mysqld/mysqld.pid |
Ubuntu 20 / MariaDB | mysqld | /etc/mysql/mariadb.conf.d/50-server.cnf | /run/mysqld/mysqld.pid |
Ubuntu 22 / MySQL | mysqld | /etc/mysql/mysql.conf.d/mysqld.cnf | /var/run/mysqld/mysqld.pid |
Ubuntu 22 / MariaDB | mariadbd | /etc/mysql/mariadb.conf.d/50-server.cnf | /run/mysqld/mysqld.pid |
AlmaLinux 8 / MySQL | mysqld | /etc/my.cnf.d/mysql-server.cnf | /run/mysqld/mysqld.pid |
AlmaLinux 8 / MariaDB | mysqld | /etc/my.cnf.d/mariadb-server.cnf | /run/mariadb/mariadb.pid |
AlmaLinux 9 / MySQL | mysqld | /etc/my.cnf.d/mysql-server.cnf | /run/mysqld/mysqld.pid |
AlmaLinux 9 / MariaDB | mariadbd | /etc/my.cnf.d/mariadb-server.cnf | /run/mariadb/mariadb.pid |
Debian 10 / MariaDB | mysqld | /etc/mysql/mariadb.conf.d/50-server.cnf | /run/mysqld/mysqld.pid |
Debian 11 / MariaDB | mariadbd | /etc/mysql/mariadb.conf.d/50-server.cnf | /run/mysqld/mysqld.pid |