- Plesk Onyx for Linux
Plesk is not accessible with the following error:
PLESK_INFO: [LockManagerException] Can't open or create shared memory by shm.name: "/run/lock/lmlib/SharedLockManagerStorage0.2.3"; shm.start_size: "8388608"; error "Permission denied"
One of the following errors might appear in
CONFIG_TEXT: ERR  Lock Manager error: '[LockManagerException] Can't open or create shared memory by shm.name: "/run/lock/lmlib/SharedLockManagerStorage0.2.3"; shm.start_size: "8388608"; error "Permission denied"'.
CONFIG_TEXT: ERR  Lock Manager error: '[LockManagerException] Can't open or create shared memory by shm.name: "/run/lock/lmlib/SharedLockManagerStorage0.2.4"; shm.start_size: "8388608"; error "No such file or directory"'.
The permissions from
/run/lock/lmlibfile differs from the following:
# stat /run/lock/lmlib
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 0/ lock-manager)
Ownership changes back to incorrect after a server reboot.
Bug in OpenVZ kernel:
The OpenVZ kernel bug OVZ-6384 is marked as fixed and patches were included to the next kernel:
CONFIG_TEXT: Both patches was added to 042stab111.1 kernel:
In order to fix the issue, update the kernel.
If it is not possible then create a scheduled task that will fix permissions after the reboot. For that, several options are available:
Log into the server via SSH as a root user.
Start modifying root user crontab:
# crontab -e
Add the following task to the bottom of the file:
CONFIG_TEXT: @reboot mkdir -p /run/lock/lmlib && chown root:lock-manager /run/lock/lmlib && chmod -R 0770 /run/lock/lmlib
Reboot the server
For that situation, it is required to connect to the server in the recovery mode. In the example below, recovery mode of Strato server is described (where original file system is mounted into
Connect to the server in recovery mode.
The actual file system should be located at
/repair/, check whether or not this is true by checking the existence of root user crontab:
# ls -l /repair/var/spool/cron/crontabs/root
Additionally, make sure that the
/repair/var/spool/cron/crontabs/rootfile has correct permissions set:
# chmod 0600 /repair/var/spool/cron/crontabs/root
/repair/var/spool/cron/crontabs/rootwith any text editor and add the following lines to the bottom of the file:
CONFIG_TEXT: @reboot mkdir -p /run/lock/lmlib ; chown root:lock-manager /run/lock/lmlib ; chmod -R 0770 /run/lock/lmlib ; mkdir /var/run/sshd ; chmod 0755 /var/run/sshd ; /etc/init.d/ssh restart
Reboot the server to the normal mode.
If after that Plesk will be accessible, but SSH will not be working, log into Plesk, navigate to Tools & Settings > Scheduled Tasks.
Then Add the following commands to the 'Command' field:
CONFIG_TEXT: mkdir /var/run/sshd && chmod 0755 /var/run/sshd && /etc/init.d/ssh restart
Press 'Run Now' button:
Note: The paths on recovery mode may differ depending on the hosting provider