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

Created:

2016-11-16 12:42:32 UTC

Modified:

2017-04-24 11:30:44 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

Applicable to:

  • Plesk for Linux
  • Plesk 12.0 for Linux

Symptoms

The following error appears in Plesk after the upgrade from 11.5 to 12:

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

Cause

Insufficient permissions.

Resolution

Please make sure that the below directories have corresponding permissions as per the 'stat' output:

# stat /var/lock/lmlib/container_locks
File: `/var/lock/lmlib/container_locks'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 3460b671h/878753393d Inode: 1586846 Links: 3
Access: (0770/drwxrwx---) Uid: ( 500/ psaadm) Gid: ( 497/lock-manager)
Access: 2015-12-18 14:36:57.608150236 +0700
Modify: 2015-12-18 14:36:57.623150224 +0700
Change: 2015-12-18 14:36:57.623150224 +0700

[root@server ~]# stat /var/lock/lmlib
File: `/var/lock/lmlib/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 34f0b661h/888190561d Inode: 524669 Links: 3
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 499/lock-manager)
Access: 2014-07-08 15:30:40.428981788 +0700
Modify: 2014-06-27 19:26:31.000000000 +0700
Change: 2014-07-08 12:56:42.053490200 +0700

[root@server ~]# stat /var/lock
File: `/var/lock'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 34f0b661h/888190561d Inode: 524335 Links: 7
Access: (0775/drwxrwxr-x) Uid: ( 0/ root) Gid: ( 54/ lock)
Access: 2014-07-08 15:30:40.069161787 +0700
Modify: 2014-07-08 12:56:44.821105696 +0700
Change: 2014-07-08 12:56:44.821105696 +0700

If permissions are different, perform the following commands:

[root@server ~]# chmod 770 /var/lock/lmlib/container_locks
[root@server ~]# chmod 770 /var/lock/lmlib
[root@server ~]# chmod 775 /var/lock

Also, make sure that SELinux is not blocking the access.

Check the status of SELinux:

[root@server ~]#/usr/sbin/getenforce

The getenforce command returns Enforcing when SELinux is enabled.

Run the following command to disable SELinux on server:

[root@server ~]# setenforce 0
Have more questions? Submit a request
Please sign in to leave a comment.