Copying Reseller Config...can't get exclusive lock on

From CPanelDirect
Jump to: navigation, search

A change in cpbackup since late 2007 will cause an error is nfslocking is not running on pkgacct. The error will look similar to this:

Copying Reseller Config...can't get exclusive lock on
/backup/cpbackup/daily/USERNAME/resellerconfig/my_reseller-limits.cache: No locks available at /scripts/cPScript/CachedDataStore.pm line 92

When this error is encountered pkgacct will fail and not backup the account. To resolve nfslock needs to be running.

Redhat/Centos

On Redhat/Centos Systems its provided by the rpm nfs-utils and can be started with

/etc/init.d/nfslock start

To have this start on boot run /sbin/chkconfig nfslock on


FreeBSD

On freebsd to enable it, add the following to the /etc/rc.conf file on both client and server (it is assumed that the NFS client and server are configured already):

rpc_lockd_enable="YES"
rpc_statd_enable="YES"

Start the application by using:

/etc/rc.d/nfslocking start