[rancid] Re: svn not updating?

Omachonu Ogali oogali at gmail.com
Mon Oct 19 03:55:06 UTC 2009


Your repo directory seems to be in a busted state ("svn: Directory '/cis' is
out of date")...
Try this:cd /var/rancid/cis/ && svn update

I believe it should work after that.

oo

On Sun, Oct 18, 2009 at 12:51 PM, Thomison, Lee <ThomisonL at muni.org> wrote:

> Hi all.
>
> Trying to get rancid set up on a small network. I'm using Centos 5.3 as a
> host and svn as the CVS. It is almost there, I think. It's going to the
> ciscos every hour. It's grabbing configs; the timestamps in
> /var/rancid/ciscos/configs are current. It's emailing results. But the
> results...
>
> The output looks like a diff <config> with a null file. And the 'router
> config diffs' email contents are all the same, from one hour to the next,
> one day to the next. I've diff'ed several of the diffs, and they are all
> identical.
>
> Any idea what's going on, and what do I need to do to fix it?
>
> Here's the what I think may be the relevant extract from /var/rancid/logs:
>
> -----------------
> .
> .
> .
> Sending .
> svn: Commit failed (details follow):
> svn: Directory '/cis' is out of date
>
> ending: Sat Oct 17 17:09:17 AKDT 2009
>
> -------------------
>
> For what it's worth, here's some other maybe relevant info:
>
> here's /etc/rancid/rancid.conf (comments removed):
>
> Code:
>
> TERM=network;export TERM
> umask 027
> TMPDIR=/tmp; export TMPDIR
> BASEDIR=/var/rancid; export BASEDIR
> PATH=/usr/libexec/rancid:/usr/bin:/usr/sbin:/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin;
> export PATH
> CVSROOT=$BASEDIR/CVS; export CVSROOT
> LOGDIR=$BASEDIR/logs; export LOGDIR
> RCSSYS=svn; export RCSSYS
> FILTER_PWDS=NO; export FILTER_PWDS
> NOCOMMSTR=NO; export NOCOMMSTR
> LIST_OF_GROUPS="cis"
>
>
>
>
> permissions is always a gotcha, so here's the /var/rancid permissions tree:
>
> Code:
>
> [ ~]$ ls -la /var/rancid
> /var/rancid:
> total 40
> drwxrwsr-x  5 rancid netadm 4096 Oct 16 12:40 .
> drwxr-xr-x 29 root   root   4096 Oct 16 12:39 ..
> drwxr-s---  6 rancid netadm 4096 Oct 16 12:40 CVS
> drwxr-s---  2 rancid netadm 4096 Oct 17 17:01 logs
> drwxr-s---  4 rancid netadm 4096 Oct 17 17:09 cis
> [ ~]$ ls -la /var/rancid/CVS
> total 64
> drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 .
> drwxrwsr-x 5 rancid netadm 4096 Oct 16 12:40 ..
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 conf
> drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 db
> -r--r----- 1 rancid netadm    2 Oct 16 12:40 format
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 hooks
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 locks
> -rw-r----- 1 rancid netadm  229 Oct 16 12:40 README.txt
>
> [ ~]$ ls -la /var/rancid/CVS/conf
> total 40
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 .
> drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 ..
> -rw-r----- 1 rancid netadm 1080 Oct 16 12:40 authz
> -rw-r----- 1 rancid netadm  309 Oct 16 12:40 passwd
> -rw-r----- 1 rancid netadm 2279 Oct 16 12:40 svnserve.conf
>
> [ ~]$ ls -la /var/rancid/CVS/db
> total 120
> drwxr-s--- 6 rancid netadm 4096 Oct 17 17:09 .
> drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 ..
> -rw-r----- 1 rancid netadm    3 Oct 16 12:45 current
> -r--r----- 1 rancid netadm   22 Oct 16 12:40 format
> -rw-r----- 1 rancid netadm 1920 Oct 16 12:40 fsfs.conf
> -rw-r----- 1 rancid netadm    5 Oct 16 12:40 fs-type
> -rw-r----- 1 rancid netadm    2 Oct 16 12:40 min-unpacked-rev
> -rw-r----- 1 rancid netadm 4096 Oct 16 12:40 rep-cache.db
> drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revprops
> drwxr-s--- 3 rancid netadm 4096 Oct 16 12:40 revs
> drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 transactions
> -rw-r----- 1 rancid netadm    3 Oct 17 17:09 txn-current
> -rw-r----- 1 rancid netadm    0 Oct 16 12:40 txn-current-lock
> drwxr-s--- 2 rancid netadm 4096 Oct 17 17:09 txn-protorevs
> -rw-r----- 1 rancid netadm   37 Oct 16 12:40 uuid
> -rw-r----- 1 rancid netadm    0 Oct 16 12:40 write-lock
>
> [ ~]$ ls -la /var/rancid/CVS/hooks
> total 88
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 .
> drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 ..
> -rw-r----- 1 rancid netadm 1955 Oct 16 12:40 post-commit.tmpl
> -rw-r----- 1 rancid netadm 1638 Oct 16 12:40 post-lock.tmpl
> -rw-r----- 1 rancid netadm 2267 Oct 16 12:40 post-revprop-change.tmpl
> -rw-r----- 1 rancid netadm 1567 Oct 16 12:40 post-unlock.tmpl
> -rw-r----- 1 rancid netadm 3404 Oct 16 12:40 pre-commit.tmpl
> -rw-r----- 1 rancid netadm 2410 Oct 16 12:40 pre-lock.tmpl
> -rw-r----- 1 rancid netadm 2764 Oct 16 12:40 pre-revprop-change.tmpl
> -rw-r----- 1 rancid netadm 2100 Oct 16 12:40 pre-unlock.tmpl
> -rw-r----- 1 rancid netadm 2758 Oct 16 12:40 start-commit.tmpl
>
> [ ~]$ ls -la /var/rancid/CVS/locks
> total 32
> drwxr-s--- 2 rancid netadm 4096 Oct 16 12:40 .
> drwxr-s--- 6 rancid netadm 4096 Oct 16 12:40 ..
> -rw-r----- 1 rancid netadm  139 Oct 16 12:40 db.lock
> -rw-r----- 1 rancid netadm  139 Oct 16 12:40 db-logs.lock
>
> [ ~]$ ls -la /var/rancid/cis/configs/
> total 284
> drwxr-s--- 3 rancid netadm  4096 Oct 17 17:09 .
> drwxr-s--- 4 rancid netadm  4096 Oct 17 17:09 ..
> -rw-r----- 1 rancid netadm     0 Oct 16 12:44 fepts01
> -rw-r----- 1 rancid netadm     0 Oct 16 12:44 fepts02
> -rw-r----- 1 rancid netadm     0 Oct 16 12:44 fepts11
> -rw-r----- 1 rancid netadm     0 Oct 16 12:44 fepts12
> -rw-r----- 1 rancid netadm 17381 Oct 17 17:01 ciscomm1c
> -rw-r----- 1 rancid netadm     0 Oct 16 12:45 ciscomm1d
> -rw-r----- 1 rancid netadm 17526 Oct 17 17:01 ciscomm2c
> -rw-r----- 1 rancid netadm 17559 Oct 17 17:01 ciscomm2d
> -rw-r----- 1 rancid netadm 20598 Oct 17 17:01 cisfw1
> -rw-r----- 1 rancid netadm 20600 Oct 17 17:02 cisfw2
> -rw-r----- 1 rancid netadm 17962 Oct 17 17:01 cismmsi1a
> -rw-r----- 1 rancid netadm 17933 Oct 17 17:01 cismmsi1b
> -rw-r----- 1 rancid netadm 18495 Oct 17 17:02 cismmsi2a
> -rw-r----- 1 rancid netadm 18369 Oct 17 17:02 cismmsi2b
> -rw-r----- 1 rancid netadm     0 Oct 16 12:45 sec-ts01
> -rw-r----- 1 rancid netadm     0 Oct 16 12:45 sec-ts02
> -rw-r----- 1 rancid netadm     0 Oct 16 12:45 sec-ts11
> -rw-r----- 1 rancid netadm     0 Oct 16 12:45 sec-ts12
> drwxr-s--- 6 rancid netadm  4096 Oct 17 17:09 .svn
>
>
>
> Code:
>
> [ ~]$ ls -la /usr/bin/rancid*
> lrwxrwxrwx 1 root root 26 Sep 30 16:18 /usr/bin/rancid ->
> /usr/libexec/rancid/rancid
> lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-cvs ->
> /usr/libexec/rancid/rancid-cvs
> lrwxrwxrwx 1 root root 29 Sep 30 16:18 /usr/bin/rancid-fe ->
> /usr/libexec/rancid/rancid-fe
> lrwxrwxrwx 1 root root 30 Sep 30 16:18 /usr/bin/rancid-run ->
> /usr/libexec/rancid/rancid-run
>
> [ ~]$ ls -la /usr/libexec/rancid/
> total 1220
> drwxr-xr-x  2 rancid netadm  4096 Oct  1 04:06 .
> drwxr-xr-x 15 root   root    4096 Sep 30 16:18 ..
> -rwxr-xr-x  1 rancid netadm 16213 Sep 30 15:07 agmrancid
> -rwxr-xr-x  1 rancid netadm 15581 Sep 30 15:07 alogin
> -rwxr-xr-x  1 rancid netadm 10386 Sep 30 15:07 arancid
> -rwxr-xr-x  1 rancid netadm 21374 Sep 30 15:07 avologin
> -rwxr-xr-x  1 rancid netadm  9703 Sep 30 15:07 avorancid
> -rwxr-xr-x  1 rancid netadm 18726 Sep 30 15:07 blogin
> -rwxr-xr-x  1 rancid netadm 10010 Sep 30 15:07 brancid
> -rwxr-xr-x  1 rancid netadm 37347 Sep 30 15:07 cat5rancid
> -rwxr-xr-x  1 rancid netadm 25906 Sep 30 15:07 clogin
> -rwxr-xr-x  1 rancid netadm 14132 Sep 30 15:07 control_rancid
> -rwxr-xr-x  1 rancid netadm 23123 Sep 30 15:07 cssrancid
> -rwxr-xr-x  1 rancid netadm 14539 Sep 30 15:07 elogin
> -rwxr-xr-x  1 rancid netadm 10502 Sep 30 15:07 erancid
> -rwxr-xr-x  1 rancid netadm 20031 Sep 30 15:07 f10rancid
> -rwxr-xr-x  1 rancid netadm 18667 Sep 30 15:07 f5rancid
> -rwxr-xr-x  1 rancid netadm 19857 Sep 30 15:07 flogin
> -rwxr-xr-x  1 rancid netadm  9546 Sep 30 15:07 fnrancid
> -rwxr-xr-x  1 rancid netadm 15103 Sep 30 15:07 francid
> -rwxr-xr-x  1 rancid netadm 21788 Sep 30 15:07 hlogin
> -rwxr-xr-x  1 rancid netadm 18404 Sep 30 15:07 hpuifilter
> -rwxr-xr-x  1 rancid netadm 18067 Sep 30 15:07 hrancid
> -rwxr-xr-x  1 rancid netadm 14471 Sep 30 15:07 htlogin
> -rwxr-xr-x  1 rancid netadm  9281 Sep 30 15:07 htrancid
> -rwxr-xr-x  1 rancid netadm 20998 Sep 30 15:07 jerancid
> -rwxr-xr-x  1 rancid netadm 16205 Sep 30 15:07 jlogin
> -rwxr-xr-x  1 rancid netadm 22412 Sep 30 15:07 jrancid
> -rwxr-xr-x  1 rancid netadm 24477 Sep 30 15:07 lg.cgi
> -rwxr-xr-x  1 rancid netadm  7786 Sep 30 15:07 lgform.cgi
> -rwxr-xr-x  1 rancid netadm 13695 Sep 30 15:07 mrancid
> -rwxr-xr-x  1 rancid netadm 22128 Sep 30 15:07 mrvlogin
> -rwxr-xr-x  1 rancid netadm 16005 Sep 30 15:07 mrvrancid
> -rwxr-xr-x  1 rancid netadm 16631 Sep 30 15:07 nlogin
> -rwxr-xr-x  1 rancid netadm 11502 Sep 30 15:07 nrancid
> -rwxr-xr-x  1 rancid netadm 18934 Sep 30 15:07 nslogin
> -rwxr-xr-x  1 rancid netadm  9637 Sep 30 15:07 nsrancid
> -rwxr-xr-x  1 rancid netadm 58114 Sep 30 15:07 nxrancid
> -rwxr-xr-x  1 rancid netadm  6043 Sep 30 15:07 par
> -rwxr-xr-x  1 rancid netadm 18781 Sep 30 15:07 prancid
> -rwxr-xr-x  1 rancid netadm 65813 Sep 30 15:07 rancid
> -rwxr-xr-x  1 rancid netadm  4423 Oct 14 11:48 rancid-cvs
> -rwxr-xr-x  1 rancid netadm  3607 Sep 30 15:07 rancid-fe
> -rwxr-xr-x  1 rancid netadm  4865 Sep 30 15:07 rancid-run
> -rwxr-xr-x  1 rancid netadm 23790 Sep 30 15:07 rivlogin
> -rwxr-xr-x  1 rancid netadm 10922 Sep 30 15:07 rivrancid
> -rwxr-xr-x  1 rancid netadm 13242 Sep 30 15:07 rrancid
> -rwxr-xr-x  1 rancid netadm 12982 Sep 30 15:07 srancid
> -rwxr-xr-x  1 rancid netadm 24375 Sep 30 15:07 tlogin
> -rwxr-xr-x  1 rancid netadm 15483 Sep 30 15:07 tntlogin
> -rwxr-xr-x  1 rancid netadm  9919 Sep 30 15:07 tntrancid
> -rwxr-xr-x  1 rancid netadm  9692 Sep 30 15:07 trancid
> -rwxr-xr-x  1 rancid netadm 16827 Sep 30 15:07 xrancid
> -rwxr-xr-x  1 rancid netadm 13755 Sep 30 15:07 zrancid
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20091018/4455144a/attachment.html 


More information about the Rancid-discuss mailing list