- Plesk for Linux
MariaDB or MySQL service shuts down automatically with the following error message:
CONFIG_TEXT: ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000]  Connection refused
The following error appears when trying to access Plesk:
PLESK_INFO: ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000]  No such file or directory Additionally, an exception has occurred while trying to report this error: Zend_Exception No entry is registered for key 'translate' (Abstract.php:144)
Plesk and websites are down;
/var/log/mysql/error.log), the following error message can be found:
CONFIG_TEXT: [ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] mysqld: Out of memory (Needed 128917504 bytes)
[ERROR] mysqld: Out of memory (Needed 96681984 bytes)
CONFIG_TEXT: mysqld_safe mysqld restarted
/usr/libexec/mysqld: error while loading shared libraries: libc.so.6: cannot map zero-fill pages: Cannot allocate memory
170821 16:10:57 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
The following error may appear in the
CONFIG_TEXT: mysqld_safe: ps: error while loading shared libraries: /lib64/libelf.so.1: cannot allocate version reference table: Cannot allocate memory
Less than 100MB of free RAM is available on the server:
# free -m
total used free shared buff/cache available
Mem: 993M 430M 96M 173M 465M 248M
Swap: 0B 0B 0B
Alternatively, no free space is available on the server:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 10G 10G 20K 100% /
Insufficient RAM or other container resources.
Contact the responsible person and increase server's RAM (add swap if it is not enabled).
Connect to the server via SSH and check its limits if it is a container:
# cat /proc/user_beancounters
Note: All the
failcnt values should be 0. Contact your service provider if required.