[rancid] Re: File lock help

Alan Evans aevans at kineto.com
Tue Aug 7 20:35:51 UTC 2007

This maybe a coincidence but I started to get the same problem a couple of days ago.
Rancid would hang after a while and I had to "kill -9" a number of rancid processes and then remove the lock file. It would work for about 12 hours and then hang again.

I knew about the expect patch but hadn't applied it because I didn't have any problems. I applied the expect patch to see if this would fix my problem but it made things worse. After applying the patch I did not get any output in the .new files.

I fixed my problem (hopefully) by installing the ActiveState's ActiveTcl distribution (http://www.activestate.com/Products/activetcl/). 

This distribution includes expect as a package to tclsh rather than a separate executable therefore if you want to use ActiveTcl's expect you need to change the first line in the rancid login scripts:

# /usr/bin/expect --

To something like this:
#! /usr/local/ActiveTcl-8.4/bin/tclsh8.4
package require Expect


From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of Chris Stave
Sent: Monday, August 06, 2007 10:41 AM
To: Todd Heide
Cc: rancid-discuss at shrubbery.net
Subject: [rancid] Re: File lock help

To unlock, you just delete the file in question, /tmp/.Customer_Routers.run.lock

This file gets created during the hourly run, and sometimes doesn't get properly removed. 

Chris Stave
Computing and Network Services
Drew University
On 8/6/07, Todd Heide <Todd at equivoice.com > wrote:
I know I asked this before, but cant find the reply from a year ago. 
hourly config diffs failed: /tmp/.Customer_Routers.run.lock exists
-rw-r-----  1 rancid netadm 0 Aug  2 14:10 /tmp/.Customer_Routers.run.lock
How do I unlock the files? Also what would have locked them in the first place? 

Rancid-discuss mailing list
Rancid-discuss at shrubbery.net

More information about the Rancid-discuss mailing list