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

Refers to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • MT:d970953f6a9374810aa13f5bc3b86030
  • MG:ddda9aa8521aee22d84b8de9dc530cd7

Created:

2016-11-16 12:58:52 UTC

Modified:

2017-02-18 16:18:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Symptoms

After upgrading to Plesk 12, it is not possible to access certain areas of the panel. The " Permission denied " error appears.

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

    Exception: Permission denied 
file: /opt/psa/admin/plib/Lock/Manager/Hierarchical.php
line: 105
code: 0
trace: #0 /opt/psa/admin/plib/Lock/Manager/Hierarchical.php(105): LockManagerClient->__construct()
#1 /opt/psa/admin/plib/Lock/Manager/Hierarchical.php(182): Plesk\\Lock\\Manager_Hierarchical->_getClient()
#2 /opt/psa/admin/plib/Lock/Manager/Hierarchical.php(146): Plesk\\Lock\\Manager_Hierarchical->_applyLockIfFree('', Object(Plesk\\Lock\\Resource))
#3 /opt/psa/admin/plib/Lock/Manager.php(97): Plesk\\Lock\\Manager_Hierarchical->lockIfFree(Object(Plesk\\Lock\\Resource), '')
#4 /opt/psa/admin/plib/Lock.php(56): Plesk\\Lock\\Manager->lockIfFree(1, Array, '')
#5 /opt/psa/admin/plib/Template/Configuration/Applier.php(74): Plesk\\Lock::writeIfFree(Object(Plesk\\Lock\\Object_Service), '', Array)
#6 /opt/psa/admin/plib/CommonPanel/Controller/Helper/WebService.php(47): Template_Configuration_Applier::blockStartTransaction()
#7 /opt/psa/admin/application/admin/controllers/HomeController.php(179): CommonPanel_Controller_Helper_WebService::getFailedConfigurationError()
#8 /opt/psa/admin/application/admin/controllers/HomeController.php(44): Admin_HomeController->_prepareSystemOverview()
#9 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Admin_HomeController->adminAction()
#10 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('adminAction')
#11 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#12 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#13 /opt/psa/admin/htdocs/application.php(15): Plesk\\Application_Web->run()
#14 {main}

cannot create directory: Permission denied: "/var/lock/lmlib/container_locks"

Cause

Incorrect permissions, psaadm user is not included into the lock-manager group, missing /dev/shm/ folder.

Resolution

For Windows, please refer to https://kb.plesk.com/en/126240

  1. On RedHat/CentOS/CloudLinux/Debian 6/Ubuntu 10 , /dev/shm should be mounted as a tmpfs file system:

    # mount | grep shm
    tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")

    If it is missing, the following line should be added to /etc/fstab :

    tmpfs   /dev/shm    tmpfs   defaults    0 0

    Execute the following command:

    # mount tmpfs

    Restart sw-engine :

    # /etc/init.d/sw-engine restart
  2. On Debian 7.0 and Ubuntu 12.04 , /dev/shm is usually a symlink to /run/shm :

    #ls  -ld /dev/shm
    lrwxrwxrwx 1 root root 8 май 30 18:23 /dev/shm -> /run/shm
    #mount | grep shm
    tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=2085020k)

    Make sure that /dev/shm is symlink on /run/shm .

  3. Remove Plesk cache and restart sw-engine service:

    # service sw-engine stop
    # rm -rf /var/lock/lmlib/container_locks
    # rm -f /usr/local/psa/var/cache/*
    # service sw-engine start
  4. Make sure that these folders have permissions as below:

    # stat /usr/local/psa/var/cache/ /usr/local/psa/var/ | egrep "File|Uid"  
    File: ‘/usr/local/psa/var/cache/’
    Access: (0700/drwx------) Uid: ( 997/ psaadm) Gid: ( 0/ root)
    File: ‘/usr/local/psa/var/’
    Access: (0755/drwxr-xr-x) Uid: ( 997/ psaadm) Gid: ( 1000/ psaadm)
Have more questions? Submit a request
Please sign in to leave a comment.