[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] ERROR "Can't get lock on Instance Lock"





Zachary Miller wrote:
There is error message in the master log file
ERROR "Can't get lock on Instance Lock

What does this mean? and how can I solve this?
    

the condor_master process tries to lock a file when it starts
up to prevent you from starting multiple instances of the condor
daemons.

  
Thanks, I did exactly that, there is an old master processing running when I tried to start up condor_master.

for some reason, it can't obtain the lock on your file.  maybe you
are using some shared filesystem for your LOCK dir (which is often
the same as your LOG dir)?


MASTER_INSTANCE_LOCK
  Defines the name of a file for the condor_ master daemon to lock in order to
  prevent multiple condor_ masters from starting. This is useful when using
  shared file systems like NFS which do not technically support locking in the
  case where the lock files reside on a local disk. If this macro is not
  defined, the default file name will be $(LOCK)/InstanceLock. $(LOCK) can
  instead be defined to specify the location of all lock files, not just the
  condor_ master's InstanceLock. If $(LOCK) is undefined, then the master log
  itself is locked.


i think a more useful error message would be nice, but in the meantime, try
using a local file by setting MASTER_INSTANCE_LOCK = /tmp/InstanceLock


cheers,
-zach

_______________________________________________
Condor-users mailing list
Condor-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

  

-- 
Dr. Wenbin Song
Computational Engineering Design Group
School of Engineering Sciences
University of Southampton
SO17 1BJ
UK
Tel: +44(0)2380592350
Fax: +44(0)2380594813
Mob: +44(0)7795103592
Email: w.song@xxxxxxxxxxx