Plesk cannot be accessed because of the error "Can't create/write to file"

Refers to:

  • Plesk 10.4 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk
  • Plesk 12.0 for Linux
  • MT:2b071c4531b2bf60bb7854e98b246b4b
  • MT:4c0d77c81e9784fd828a188bf3341876
  • MT:7dca4b794b5c3cbabb9743783cc082f8
  • MG:58baf81e50d23195c4354da55a3378a6
  • MT:93c3646bb55e4b9ad62f6c9427470f65
  • MT:9cfe8948b72c25ac26d4bd04a1bdbd8b
  • MT:c37804f5416733d8805671442298a43f
  • MT:cadb3e2b899979400276ecb34dcf1229
  • MT:fefb2d1dcd85711d0535f0978c1de361
  • MG:c8d63ca2c92ba4764ccd3e8d92b376ad
  • MT:2f2d3dac815aa4718a1f5daa1683204d
  • MT:5cb2cc66214670a3bdcd514277ace0fa
  • MG:43d46ed44dc0f40b7e13f4f0fc9238e4
  • MG:376fd833cd7e3563c2bf2fe6c3d524a4
  • MT:a0944b326c141cc6ff6624c0df88a68b
  • MT:a5201db65b00bac2ad3411fec08e8e3c
  • MT:af23bf8a2ee52a4cb310afda7d40b5a3
  • MT:f68dd6b69407ecee0f458f4da5592bb5

Created:

2016-11-16 12:57:46 UTC

Modified:

2017-02-13 06:36:48 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Plesk cannot be accessed because of the error "Can't create/write to file"

Symptoms

Parallels Plesk shows the following errors if you browse the Control Panel.

ERROR: Zend_Db_Statement_Exception
SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_de3_0.MYI' (Errcode: 13)


0: Pdo.php:238
Zend_Db_Statement_Pdo->_execute(array)
1: Statement.php:283
Zend_Db_Statement->execute(array)
2: Abstract.php:433
Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `sessions`', array)
3: Abstract.php:230
Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `sessions`')
4: Mysql.php:136
Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'sessions', NULL null)
5: Abstract.php:696
Zend_Db_Table_Abstract->_setupMetadata()
6: Abstract.php:722
Zend_Db_Table_Abstract->_getCols()
7: Abstract.php:762
Zend_Db_Table_Abstract->_setupPrimaryKey()
8: DbTable.php:517
Zend_Session_SaveHandler_DbTable->_getPrimary(string '63bb27967cbeefc660a97b01a78f9034')
9: DbTable.php:316
Zend_Session_SaveHandler_DbTable->read(string '63bb27967cbeefc660a97b01a78f9034')
10: SaveHandler.php:26
CommonPanel_Session_SaveHandler->read(string '63bb27967cbeefc660a97b01a78f9034')
11: :
session_start()
12: class.Session.php:150
Session->Session()
13: auth.php3:183

Or Parallels Plesk is not accessible with the following error:

ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory

and MySQL service cannot start:

# service mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]

Cause

  • ' /tmp ' partition has run out of space and the file can't be created
  • For some reason the ' mysqld ' process cannot write to the directory mentioned in the error message because of permission problems. Invalid SELinux settings can also be a reason of such error.

Resolution

Make sure that the /tmp directory is granted full permissions.

# ls -ld /tmp
drwxrwxrwt 3 root root 12288 Mar 16 22:49 /tmp

Full permissions can be granted to the /tmp directory with the following command:

# chmod 1777 /tmp

Start MySQL service after fixing the permissions.

# service mysqld start
Have more questions? Submit a request
Please sign in to leave a comment.