- Plesk Onyx for Linux
Plesk is not accessible. Browser shows 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"
The following can be found 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"'.
/run/lock/lmlibhas ownership different from:
# stat /run/lock/lmlib
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 0/ lock-manager)
Ownership changes back to incorrect after server reboot.
Bug in OpenVZ kernel: https://bugs.openvz.org/browse/OVZ-6384
In order to fix the issue, it is required to have 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
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