- Plesk for Linux
There is no free disk space on the partition where the /tmp directory is located:
# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 909G 867G 0 100% /
The inode limit is not exceeded (if it is, see this KB article):
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 116858880 10204285 106654595 9% /
devtmpfs 65536 54 65482 1% /dev
tmpfs 65536 1 65535 1% /dev/shm
tmpfs 65536 260 65276 1% /run
tmpfs 65536 10 65526 1% /sys/fs/cgroup
tmpfs 393216 1 393215 1% /run/user/0
Plesk is not accessible with one of the following error messages in a browser:
PLESK_INFO: PleskFatalException: Unable to connect to database: mysql_connect(): No such file or directory (auth.php:142)
PLESK_INFO: Zend_Db_Adapter_Exception: SQLSTATE[HY000]  No such file or directory (Abstract.php:144)
PLESK_INFO: ERROR: Zend_Db_Statement_ExceptionSQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine
PLESK_INFO: ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000]  MySQL server has gone away
Additionally, an exception has occurred while trying to report this error: Zend_Exception
No entry is registered for key 'translate' (Abstract.php:144)
PLESK_INFO: ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000]: General error: 1021 Disk full (/var/tmp/#sql_77c_0); waiting for someone to free some space..., query was: DESCRIBE `sessions`
PLESK_INFO: ERROR: Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_4f20f_5); waiting for someone to free some space... (Pdo.php:234)
Export/Import of a database fails with one of the errors above.
Websites that are using MySQL databases are not accessible. The following error message is shown in a browser:
PLESK_INFO: Error establishing a database connection
The following error messages appear in /var/log/mysqld.log (CentOS/RHEL) OR /var/log/mysqld.log (Debian/Ubuntu) OR /var/log/mariadb/.err (if MariaDB is installed):
CONFIG_TEXT: [ERROR] Can't start server: can't create PID file: No space left on device
CONFIG_TEXT: [ERROR] InnoDB: Write to file ./ibtmp1failed at offset 0, 1048576 bytes should have been written, only 0 were written. Operating system error number 28. Check that your OS and file system support files of this size. Check also that the disk is not full or a disk quota exceeded.
OR[ERROR] InnoDB: Error number 28 means 'No space left on device'
The Plesk service "sw-cp-server" fails to start:
# service sw-cp-server restart
Restarting control panels server... stale pidfile. /etc/sw-cp-server/applications.d/plesk.socket.sh: line 76: cannot create temp file for here-document: No space left on device
/etc/sw-cp-server/applications.d/plesk.socket.sh: line 83: cannot create temp file for here-document: No space left on device
/etc/sw-cp-server/applications.d/plesk.socket.sh: line 89: cannot create temp file for here-document: No space left on device
- mariadb service fails to start with the following error:
# systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: resources)
Apr 19 08:21:50 hostname systemd: Starting MariaDB database server...
Apr 19 08:21:51 hostname systemd: mariadb.service failed to run 'start-pre' task: No space left on device
Apr 19 08:21:51 hostname systemd: Failed to start MariaDB database server.
Apr 19 08:21:51 hostname systemd: mariadb.service failed.
- sw-engine service fails to start with the following error:
# systemctl status sw-engine.service
● sw-engine.service - Startup script for Panel sw-engine
Loaded: loaded (/usr/lib/systemd/system/sw-engine.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-04-19 09:28:26 UTC; 4min 29s ago
Apr 19 09:28:26 hostname systemd: Starting Startup script for Panel sw-engine...
Apr 19 09:28:26 hostname sw-engine-fpm: Thu Apr 19 09:28:26 2018 (2266): Fatal Error Unable to create lock file: Bad file descriptor (9)
Apr 19 09:28:26 hostname systemd: sw-engine.service: main process exited, code=exited, status=254/n/a
Apr 19 09:28:26 hostname systemd: Failed to start Startup script for Panel sw-engine.
Apr 19 09:28:26 hostname systemd: Unit sw-engine.service entered failed state.
Apr 19 09:28:26 hostname systemd: sw-engine.service failed.
MySQL cannot create temporary files, because there is no free disk space.
Allocate additional disk space to the partition where free disk space is over.
Contact hosting provider of the system for assistance.
Once the disk space has been increased, start MySQL:
for CentOS/RHEL-based distributions:
# service mysqld start
for Debian/Ubuntu-based distributions:
# service mysql start
if MariaDB is installed:
# service mariadb start
Note: In some cases, temporary files can take a significant amount of disk space on the server.
In such case, try to clear temporary files by applying: How to remove unwanted files from the server?