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

Refers to:

  • Plesk for Linux
  • Plesk 12.0 for Linux
  • MG:61c77323a8e17aeb180af5322ca3bc07
  • MT:15524784b6155aba48376f8beba2a470
  • MT:47a3ea78e966f5efae7bc3939dcb0770
  • MT:6591868b2264a024f4733c9daeb48436
  • MT:a6c5a6e592c84e0a999f945fc0511fc2
  • MT:b40e3b288f36e8d383f0c3987898b64e
  • MT:cf14139db95ff9a5980df168078333bb
  • MT:088bc4522a571356e9cc4ffcf024a473

Created:

2016-11-16 12:42:32 UTC

Modified:

2017-02-13 06:36:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

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

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.