Unable to access Plesk after upgrade to version 12: Function not implemented

Created:

2016-11-16 12:55:40 UTC

Modified:

2017-04-24 11:16:04 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Unable to access Plesk after upgrade to version 12: Function not implemented

Applicable to:

  • Plesk 10.4 for Linux
  • Plesk 12.0 for Linux

Symptoms

An attempt to open Plesk after it was upgraded to version 12 fails. One of the following errors is displayed:

ERROR: Exception
Function not implemented

or:

what():  Unable to init lock manager shared memory file: Unable to create new lock manager shared memory storage. Please, try to restart sw-engine service as root.

The following errors can be seen in '/var/log/plesk/panel.log' :

[22-May-2014 10:13:07 Europe/Paris] Exception: Function not implemented
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(172): Plesk\\Lock\\Manager_Hierarchical->_getClient()
#2 /opt/psa/admin/plib/Lock/Manager/Hierarchical.php(136): Plesk\\Lock\\Manager_Hierarchical->_applyLock('', Object(Plesk\\Lock\\Resource))
#3 /opt/psa/admin/plib/Lock/Manager.php(80): Plesk\\Lock\\Manager_Hierarchical->lock(Object(Plesk\\Lock\\Resource), '')
#4 /opt/psa/admin/plib/Lock.php(34): Plesk\\Lock\\Manager->lock(1, Array, '', Array)
#5 /opt/psa/admin/plib/Db/Table/Dictionary/ServiceNodeEnvironment.php(80): Plesk\\Lock::write(Object(Plesk\\Lock\\Object_NodeService), '', Array)
#6 /opt/psa/admin/plib/Service/Node/Environment.php(32): Db_Table_Dictionary_ServiceNodeEnvironment->sync()
#7 /opt/psa/admin/plib/Service/Node/Environment.php(142): Service_Node_Environment->_sync(Object(Service_Node_Environment_Components_Packages_Unix))
#8 /opt/psa/admin/plib/Service/Driver/Packages/Unix.php(19): Service_Node_Environment->componentsPackagesUnix(Array)
#9 /opt/psa/admin/plib/Service/Driver/Packages/Unix.php(32): Service_Driver_Packages_Unix->_components()
#10 /opt/psa/admin/plib/Service/Driver/Core/Plesk.php(11): Service_Driver_Packages_Unix->sync(false)
#11 /opt/psa/admin/plib/Db/Table/Row/ServiceNode/ManagementNode.php(15): Service_Driver_Core_Plesk->syncAllData()
#12 /opt/psa/admin/plib/auth.php(233): Db_Table_Row_ServiceNode_ManagementNode->refreshProperties()
#13 /opt/psa/admin/plib/auth.php(686): AutoPrepend->run()
#14 {main}

Cause

The '/dev/shm' mount is missing from 'fstab' in Ubuntu-10.04 OS EZ templates (fixed for new instances of Ubuntu-10.04 in new OS templates:

)

Please note that the following solution is also applicable on Ubuntu 12.04.

Resolution

The fix for this issue has been released in Plesk 12 Micro Update #9, as well as in the latest Ubuntu-10.04 OS EZ templates. Please make sure that you have applied the latest update.

If for some reason you do not want to apply the update, use the following workaround:

  1. To fix the issue for new containers, execute the following on the hardware node:

    Update the Ubuntu-10.04 OS templates and recreate the existing cache for OS templates:

    # vzpkg remove cache ubuntu-10.04-x86
    # vzpkg create cache ubuntu-10.04-x86
    # vzpkg remove cache ubuntu-10.04-x86_64
    # vzpkg create cache ubuntu-10.04-x86_64
  2. To fix containers that have already been provisioned, execute the following in the containers:

    Add the following line to /etc/fstab :

    shm   /dev/shm    tmpfs   defaults    0    0

    When you are done, /etc/fstab will look like:

    # cat /etc/fstab
    proc /proc proc defaults 0 0
    none /dev/pts devpts rw 0 0
    shm /dev/shm tmpfs defaults 0 0

    Mount /dev/shm and run bootstrapper repair:

    # mount /dev/shm
    # /usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair
Have more questions? Submit a request
Please sign in to leave a comment.