Plesk shows: Lock Manager error: 'Permission denied'

Created:

2016-11-16 13:24:15 UTC

Modified:

2017-08-11 13:39:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows: Lock Manager error: 'Permission denied'

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Plesk 12.5 shows the following error after an attempt to login:

Internal error: Lock Manager error: 'Permission denied'.
Message Lock Manager error: 'Permission denied'.
File Hierarchical.php
Line 120
Type Plesk\\Lock\\Exception

Or:

Plesk 12.0 shows the following error in home page:

Internal error: Permission denied
Message Permission denied
File Hierarchical.php
Line 105
Type Exception

In /var/log/plesk/panel.log similar error can be found:

[2016-03-22 12:47:22] ERR [panel] Permission denied
[2016-03-22 12:47:22] ERR [panel] Lock Manager error: 'Permission denied'.:
0: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:120
Plesk\\Lock\\Manager_Hierarchical->_getClient()
1: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:193
Plesk\\Lock\\Manager_Hierarchical->_applyLock(string '', object of type Plesk\\Lock\\Resource)
2: /usr/local/psa/admin/plib/Lock/Manager/Hierarchical.php:155
Plesk\\Lock\\Manager_Hierarchical->lock(object of type Plesk\\Lock\\Resource, string '')
3: /usr/local/psa/admin/plib/Lock/Manager.php:83
Plesk\\Lock\\Manager->lock(integer '1', array, string '', array)
4: /usr/local/psa/admin/plib/Lock.php:34
Plesk\\Lock::write(object of type Plesk\\Lock\\Object_NodeService, string '', array)
5: /usr/local/psa/admin/plib/Db/Table/Dictionary/ServiceNodeEnvironment.php:80
Db_Table_Dictionary_ServiceNodeEnvironment->sync()
6: /usr/local/psa/admin/plib/Service/Driver/Packages/Unix.php:32
Service_Driver_Packages_Unix->sync(boolean false)
7: /usr/local/psa/admin/plib/Service/Driver/Core/Plesk.php:11
Service_Driver_Core_Plesk->syncAllData()
8: /usr/local/psa/admin/plib/Db/Table/Row/ServiceNode/ManagementNode.php:15
Db_Table_Row_ServiceNode_ManagementNode->refreshProperties()
9: /usr/local/psa/admin/plib/auth.php:250
AutoPrepend->run()
10: /usr/local/psa/admin/plib/auth.php:768
[2016-03-22 12:47:22] ERR [1] Lock Manager error: 'Permission denied'.

Cause

Incorrect permissions were set on Plesk's directories.

Resolution

Set correct permissions and ownership. They should be following:

# stat /usr/local/psa/var/cache/ /usr/local/psa/var/ /usr/local/psa /usr/local /usr / | grep -E "File|Uid"
File: `/usr/local/psa/var/cache/'
Access: (0700/drwx------) Uid: ( 498/ psaadm) Gid: ( 0/ root)
File: `/usr/local/psa/var/'
Access: (0755/drwxr-xr-x) Uid: ( 498/ psaadm) Gid: ( 500/ psaadm)
File: `/usr/local/psa'
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: `/usr/local'
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: `/usr'
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: `/'
Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)

If it doesn't help check following articles:

  • #213384369 After a Plesk Upgrade, Error Appears: Internal error: Permission denied

  • #213943125 Plesk is partly inaccessible after upgrade: Permission denied

Have more questions? Submit a request
Please sign in to leave a comment.