Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: "ERROR: Exception | Permission denied" on accessing Plesk panel after upgrade  (Read 4041 times)

0 Members and 1 Guest are viewing this topic.

Jithin M

  • Guest
After upgrading the Parallels Plesk to version 12.0.18, sometimes there are possibilities for getting the following error upon accessing the Plesk control panel:

Code: [Select]
"ERROR: Exception | Permission denied"

The following error can be found in /var/log/plesk/panel.log

Code: [Select]
#tailf /var/log/plesk/panel.log

#3 /usr/local/psa/admin/plib/Lock/Manager.php(80): Plesk\Lock\Manager_Hierarchical->lock(Object(Plesk\Lock\Resource), '')
#4 /usr/local/psa/admin/plib/Lock.php(34): Plesk\Lock\Manager->lock(1, Array, '', Array)
#5 /usr/local/psa/admin/plib/Db/Table/Dictionary/ServiceNodeEnvironment.php(80): Plesk\Lock::write(Object(Plesk\Lock\Object_NodeService), '', Array)
#6 /usr/local/psa/admin/plib/Service/Driver/Packages/Unix.php(32): Db_Table_Dictionary_ServiceNodeEnvironment->sync()
#7 /usr/local/psa/admin/plib/Service/Driver/Core/Plesk.php(11): Service_Driver_Packages_Unix->sync(false)
#8 /usr/local/psa/admin/plib/Db/Table/Row/ServiceNode/ManagementNode.php(15): Service_Driver_Core_Plesk->syncAllData()
#9 /usr/local/psa/admin/plib/auth.php(233): Db_Table_Row_ServiceNode_ManagementNode->refreshProperties()
#10 /usr/local/psa/admin/plib/auth.php(690): AutoPrepend->run()
#11 {main}


The issue happens due to incorrect permissions on the SharedLockManagerStorage_v2 file, or the psaadm user is not included in the lock-manager group.


This issue can be resolved using the following commands::
Code: [Select]
# mount | grep shm
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")

If the above mentioned output is missing, the following line should be added to '/etc/fstab' file:
Code: [Select]
tmpfs   /dev/shm    tmpfs   defaults    0 0

After that, execute the following command:
Code: [Select]
# mount tmpfs

Then, restart sw-engine:
Code: [Select]
# /etc/init.d/sw-engine restart     

Make sure that the psaadm user is included in the 'lock-manager' group. You can check with following command:
Code: [Select]
# groups psaadm
psaadm : psaadm swkey-data psaserv psasb lock-manager

If 'lock-manager' is missing in the list of 'psaadm' groups, modify the group membership manually:
Code: [Select]
# usermod -G psaadm,psaserv,swkey-data,psasb,lock-manager psaadm