Discussion:
[rancid] Rancid CVS Issue
Andy Townsend
2012-03-06 17:45:48 UTC
Permalink
Hi,

I've just installed rancid on one of my boxes following the guide here.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid

However, when I run the rancid-cvs command, I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

When as per the docs I should be getting this.


[***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
No conflicts created by this import
cvs checkout: Updating networking
cvs checkout: Updating networking/configs
cvs add: scheduling file `router.db' for addition
cvs add: use 'cvs commit' to add this file permanently
RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
done
Checking in router.db;
/usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
initial revision: 1.1
done


CVS is already installed so no issues there,

[***@router ~]$ rpm -qa | grep cvs
cvs-1.11.22-7.el5


Just wondering if anyone had come across this or know what the next steps
were?

Cheers,
Andy
Nicolai Langfeldt
2012-03-06 19:44:35 UTC
Permalink
I expect you either forgot to update rancid.conf so that it reads:

LIST_OF_GROUPS="networking"

Or you already did rancid-cvs?

Nicolai
________________________________________
Fra: rancid-discuss-***@shrubbery.net [rancid-discuss-***@shrubbery.net] p&#229; vegne av Andy Townsend [***@andytownsend.co.uk]
Sendt: 6. mars 2012 18:45
Til: rancid-***@shrubbery.net
Emne: [rancid] Rancid CVS Issue

Hi,

I've just installed rancid on one of my boxes following the guide here.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid

However, when I run the rancid-cvs command, I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

When as per the docs I should be getting this.




[***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
No conflicts created by this import
cvs checkout: Updating networking
cvs checkout: Updating networking/configs
cvs add: scheduling file `router.db' for addition
cvs add: use 'cvs commit' to add this file permanently
RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
done
Checking in router.db;
/usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
initial revision: 1.1
done


CVS is already installed so no issues there,

[***@router ~]$ rpm -qa | grep cvs
cvs-1.11.22-7.el5


Just wondering if anyone had come across this or know what the next steps were?

Cheers,
Andy
Andy Townsend
2012-03-07 09:07:03 UTC
Permalink
I've already got this in rancid.conf

# list of rancid groups
LIST_OF_GROUPS="networking"

And when I run /usr/local/rancid/bin/rancid-cvs I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

[***@router ~]$ echo $BASEDIR

[***@router ~]$ pwd
/usr/local/rancid
[***@router ~]$ ls -l
total 60
drwxr-xr-x 2 rancid netadm 4096 Mar 6 17:26 bin
drwxr-xr-x 2 rancid netadm 4096 Mar 7 09:04 etc
-rw-r--r-- 1 rancid netadm 12738 Mar 6 17:22 README
drwxr-xr-x 4 rancid netadm 4096 Mar 6 17:13 share
drwxr-xr-x 3 rancid netadm 4096 Oct 26 21:51 tar
drwxr-xr-x 5 rancid netadm 4096 Mar 6 17:21 var

I believe there should be a CVS directory in there. I did install CVS after
rancid so I guess that may have caused the issue. Any ideas?

Thanks,
Andy


On 6 March 2012 19:44, Nicolai Langfeldt <***@ventelo.no>wrote:

> I expect you either forgot to update rancid.conf so that it reads:
>
> LIST_OF_GROUPS="networking"
>
> Or you already did rancid-cvs?
>
> Nicolai
> ________________________________________
> Fra: rancid-discuss-***@shrubbery.net [
> rancid-discuss-***@shrubbery.net] p&#229; vegne av Andy Townsend [
> ***@andytownsend.co.uk]
> Sendt: 6. mars 2012 18:45
> Til: rancid-***@shrubbery.net
> Emne: [rancid] Rancid CVS Issue
>
> Hi,
>
> I've just installed rancid on one of my boxes following the guide here.
>
>
> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid
>
> However, when I run the rancid-cvs command, I get no output.
>
> [***@router ~]$ /usr/local/rancid/bin/rancid-cvs
> [***@router ~]$
>
> When as per the docs I should be getting this.
>
>
>
>
> [***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
> No conflicts created by this import
> cvs checkout: Updating networking
> cvs checkout: Updating networking/configs
> cvs add: scheduling file `router.db' for addition
> cvs add: use 'cvs commit' to add this file permanently
> RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
> done
> Checking in router.db;
> /usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
> initial revision: 1.1
> done
>
>
> CVS is already installed so no issues there,
>
> [***@router ~]$ rpm -qa | grep cvs
> cvs-1.11.22-7.el5
>
>
> Just wondering if anyone had come across this or know what the next steps
> were?
>
> Cheers,
> Andy
>
Nicolai Langfeldt
2012-03-07 09:16:35 UTC
Permalink
Hei,

I note that "echo $BASEDIR" is rather useless, but it's not meant to be useful in the rancid users shell.

Also $BASEDIR should _not_ be quite identical to your rancid install prefix, IMHO at least it's rather messy. If you want it to be within your install prefix at least put it in a subdir such as /usr/local/rancid/backups or somesuch.

Try this:
- cd to the $BASEDIR as defined in rancid.conf (not quite sure if this is required, I just always do it)
- rancid-cvs networking

Nicolai
________________________________________
Fra: Andy Townsend [***@andytownsend.co.uk]
Sendt: 7. mars 2012 10:07
Til: Nicolai Langfeldt
Kopi: rancid-***@shrubbery.net
Emne: Re: [rancid] Rancid CVS Issue

I've already got this in rancid.conf

# list of rancid groups
LIST_OF_GROUPS="networking"

And when I run /usr/local/rancid/bin/rancid-cvs I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

[***@router ~]$ echo $BASEDIR

[***@router ~]$ pwd
/usr/local/rancid
[***@router ~]$ ls -l
total 60
drwxr-xr-x 2 rancid netadm 4096 Mar 6 17:26 bin
drwxr-xr-x 2 rancid netadm 4096 Mar 7 09:04 etc
-rw-r--r-- 1 rancid netadm 12738 Mar 6 17:22 README
drwxr-xr-x 4 rancid netadm 4096 Mar 6 17:13 share
drwxr-xr-x 3 rancid netadm 4096 Oct 26 21:51 tar
drwxr-xr-x 5 rancid netadm 4096 Mar 6 17:21 var

I believe there should be a CVS directory in there. I did install CVS after rancid so I guess that may have caused the issue. Any ideas?

Thanks,
Andy


On 6 March 2012 19:44, Nicolai Langfeldt <***@ventelo.no<mailto:***@ventelo.no>> wrote:
I expect you either forgot to update rancid.conf so that it reads:

LIST_OF_GROUPS="networking"

Or you already did rancid-cvs?

Nicolai
________________________________________
Fra: rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net> [rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net>] p&#229; vegne av Andy Townsend [***@andytownsend.co.uk<mailto:***@andytownsend.co.uk>]
Sendt: 6. mars 2012 18:45
Til: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Emne: [rancid] Rancid CVS Issue

Hi,

I've just installed rancid on one of my boxes following the guide here.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid

However, when I run the rancid-cvs command, I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

When as per the docs I should be getting this.




[***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
No conflicts created by this import
cvs checkout: Updating networking
cvs checkout: Updating networking/configs
cvs add: scheduling file `router.db' for addition
cvs add: use 'cvs commit' to add this file permanently
RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
done
Checking in router.db;
/usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
initial revision: 1.1
done


CVS is already installed so no issues there,

[***@router ~]$ rpm -qa | grep cvs
cvs-1.11.22-7.el5


Just wondering if anyone had come across this or know what the next steps were?

Cheers,
Andy
Eric Girard
2012-03-07 18:48:25 UTC
Permalink
Andy, not sure how many changes you've made to rancid.conf, but the CVS directory in my pretty stock install is in /usr/local/rancid/var/ along with all of my group directories, not in /usr/local/rancid/

From: rancid-discuss-***@shrubbery.net [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Andy Townsend
Sent: Wednesday, March 07, 2012 4:07 AM
To: Nicolai Langfeldt
Cc: rancid-***@shrubbery.net
Subject: Re: [rancid] Rancid CVS Issue

I've already got this in rancid.conf

# list of rancid groups
LIST_OF_GROUPS="networking"

And when I run /usr/local/rancid/bin/rancid-cvs I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

[***@router ~]$ echo $BASEDIR

[***@router ~]$ pwd
/usr/local/rancid
[***@router ~]$ ls -l
total 60
drwxr-xr-x 2 rancid netadm 4096 Mar 6 17:26 bin
drwxr-xr-x 2 rancid netadm 4096 Mar 7 09:04 etc
-rw-r--r-- 1 rancid netadm 12738 Mar 6 17:22 README
drwxr-xr-x 4 rancid netadm 4096 Mar 6 17:13 share
drwxr-xr-x 3 rancid netadm 4096 Oct 26 21:51 tar
drwxr-xr-x 5 rancid netadm 4096 Mar 6 17:21 var

I believe there should be a CVS directory in there. I did install CVS after rancid so I guess that may have caused the issue. Any ideas?

Thanks,
Andy


On 6 March 2012 19:44, Nicolai Langfeldt <***@ventelo.no<mailto:***@ventelo.no>> wrote:
I expect you either forgot to update rancid.conf so that it reads:

LIST_OF_GROUPS="networking"

Or you already did rancid-cvs?

Nicolai
________________________________________
Fra: rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net> [rancid-discuss-***@shrubbery.net<mailto:rancid-discuss-***@shrubbery.net>] p&#229; vegne av Andy Townsend [***@andytownsend.co.uk<mailto:***@andytownsend.co.uk>]
Sendt: 6. mars 2012 18:45
Til: rancid-***@shrubbery.net<mailto:rancid-***@shrubbery.net>
Emne: [rancid] Rancid CVS Issue

Hi,

I've just installed rancid on one of my boxes following the guide here.

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid

However, when I run the rancid-cvs command, I get no output.

[***@router ~]$ /usr/local/rancid/bin/rancid-cvs
[***@router ~]$

When as per the docs I should be getting this.




[***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
No conflicts created by this import
cvs checkout: Updating networking
cvs checkout: Updating networking/configs
cvs add: scheduling file `router.db' for addition
cvs add: use 'cvs commit' to add this file permanently
RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
done
Checking in router.db;
/usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
initial revision: 1.1
done


CVS is already installed so no issues there,

[***@router ~]$ rpm -qa | grep cvs
cvs-1.11.22-7.el5


Just wondering if anyone had come across this or know what the next steps were?

Cheers,
Andy
Andy Townsend
2012-03-07 18:56:51 UTC
Permalink
I've made very few changes apart from those mentioned in the initial
install guide. Was asked for the following from someone else but it could
be handy to someone else as well.

I've not changed the CVS directory but its set to the following as well.

++ CVSROOT=/usr/local/rancid/var/CVS
++ export CVSROOT

[***@router ~]$ sh -x `which rancid-cvs`
+ ENVFILE=/usr/local/rancid/etc/rancid.conf
+ '[' 0 -ge 1 ']'
+ . /usr/local/rancid/etc/rancid.conf
++ TERM=network
++ export TERM
++ LC_COLLATE=POSIX
++ export LC_COLLATE
++ umask 027
++ TMPDIR=/tmp
++ export TMPDIR
++ BASEDIR=/usr/local/rancid/var
++ export BASEDIR
++ PATH=/usr/local/rancid/bin:/usr/bin:.:/bin:/usr/local/bin:/usr/bin
++ export PATH
++ CVSROOT=/usr/local/rancid/var/CVS
++ export CVSROOT
++ LOGDIR=/usr/local/rancid/var/logs
++ export LOGDIR
++ RCSSYS=cvs
++ export RCSSYS
++ FILTER_PWDS=NO
++ export FILTER_PWDS
++ NOCOMMSTR=NO
++ export NOCOMMSTR
++ LIST_OF_GROUPS=networking
++ MAILDOMAIN=@testdomain.com
++ export MAILDOMAIN
+ '[' '!' -d /usr/local/rancid/var ']'
+ cd /usr/local/rancid/var
+ RCSSYS=cvs
+ '[' cvs '!=' cvs -a cvs '!=' svn ']'
+ '[' cvs = cvs ']'
+ '[' '!' -d /usr/local/rancid/var/CVS ']'
+ '[' '!' -d logs ']'
+ '[' 0 -ge 1 ']'
+ '[' networking = '' ']'
++ echo networking
+ for GROUP in '`echo $LIST_OF_GROUPS`'
+ DIR=/usr/local/rancid/var/networking
+ '[' '!' -d /usr/local/rancid/var/networking ']'
+ cd /usr/local/rancid/var/networking
+ '[' '!' -d configs ']'
+ '[' '!' -f routers.all ']'
+ '[' '!' -f routers.down ']'
+ '[' '!' -f routers.up ']'
+ '[' '!' -f router.db ']'

On 7 March 2012 18:48, Eric Girard <***@focustsi.com> wrote:

> Andy, not sure how many changes you’ve made to rancid.conf, but the CVS
> directory in my pretty stock install is in /usr/local/rancid/var/ along
> with all of my group directories, not in /usr/local/rancid/****
>
> ** **
>
> *From:* rancid-discuss-***@shrubbery.net [mailto:
> rancid-discuss-***@shrubbery.net] *On Behalf Of *Andy Townsend
> *Sent:* Wednesday, March 07, 2012 4:07 AM
> *To:* Nicolai Langfeldt
> *Cc:* rancid-***@shrubbery.net
> *Subject:* Re: [rancid] Rancid CVS Issue****
>
> ** **
>
> I've already got this in rancid.conf****
>
> ** **
>
> # list of rancid groups****
>
> LIST_OF_GROUPS="networking"****
>
> ** **
>
> And when I run /usr/local/rancid/bin/rancid-cvs I get no output. ****
>
> ** **
>
> [***@router ~]$ /usr/local/rancid/bin/rancid-cvs****
>
> [***@router ~]$****
>
> ** **
>
> [***@router ~]$ echo $BASEDIR****
>
> ** **
>
> [***@router ~]$ pwd****
>
> /usr/local/rancid****
>
> [***@router ~]$ ls -l****
>
> total 60****
>
> drwxr-xr-x 2 rancid netadm 4096 Mar 6 17:26 bin****
>
> drwxr-xr-x 2 rancid netadm 4096 Mar 7 09:04 etc****
>
> -rw-r--r-- 1 rancid netadm 12738 Mar 6 17:22 README****
>
> drwxr-xr-x 4 rancid netadm 4096 Mar 6 17:13 share****
>
> drwxr-xr-x 3 rancid netadm 4096 Oct 26 21:51 tar****
>
> drwxr-xr-x 5 rancid netadm 4096 Mar 6 17:21 var****
>
> ** **
>
> I believe there should be a CVS directory in there. I did install CVS
> after rancid so I guess that may have caused the issue. Any ideas?****
>
> ** **
>
> Thanks,****
>
> Andy****
>
> ** **
>
> ** **
>
> On 6 March 2012 19:44, Nicolai Langfeldt <***@ventelo.no>
> wrote:****
>
> I expect you either forgot to update rancid.conf so that it reads:
>
> LIST_OF_GROUPS="networking"
>
> Or you already did rancid-cvs?
>
> Nicolai
> ________________________________________
> Fra: rancid-discuss-***@shrubbery.net [
> rancid-discuss-***@shrubbery.net] p&#229; vegne av Andy Townsend [
> ***@andytownsend.co.uk]
> Sendt: 6. mars 2012 18:45
> Til: rancid-***@shrubbery.net
> Emne: [rancid] Rancid CVS Issue****
>
>
> Hi,
>
> I've just installed rancid on one of my boxes following the guide here.
>
>
> http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch1_:_Network_Backups_With_Rancid
>
> However, when I run the rancid-cvs command, I get no output.
>
> [***@router ~]$ /usr/local/rancid/bin/rancid-cvs
> [***@router ~]$
>
> When as per the docs I should be getting this.
>
>
>
>
> [***@bigboy ~]$ /usr/local/rancid/bin/rancid-cvs
> No conflicts created by this import
> cvs checkout: Updating networking
> cvs checkout: Updating networking/configs
> cvs add: scheduling file `router.db' for addition
> cvs add: use 'cvs commit' to add this file permanently
> RCS file: /usr/local/rancid//var/CVS/networking/router.db,v
> done
> Checking in router.db;
> /usr/local/rancid//var/CVS/networking/router.db,v <-- router.db
> initial revision: 1.1
> done
>
>
> CVS is already installed so no issues there,
>
> [***@router ~]$ rpm -qa | grep cvs
> cvs-1.11.22-7.el5
>
>
> Just wondering if anyone had come across this or know what the next steps
> were?
>
> Cheers,
> Andy****
>
> ** **
>
Continue reading on narkive:
Loading...