[rancid] no CVS directory created for new groups

Tim McIntire Tim.McIntire at infinite.com
Tue Apr 28 14:53:58 UTC 2020


Understood, but CVSROOT is defined in the rancid.conf file and is working just fine for the original 3 groups that I created when I configured the new rancid server.  

In both cases, I was running this as the rancid user.

Got it to work.. here is what I did:
	Removed the broken GROUP entries from the rancid.conf file
	Ran /opt/rancid/bin/rancid-cvs
	renamed the broken GROUP directories in /opt/rancid/var/
	added the GROUP entries back into the rancid.conf file.   
	Ran /opt/rancid/bin/rancid-cvs again.. this time I saw it create the directories in the CVS dir.
	Copied the router.db file back over to the GROUP dir

When I ran rancid-run, I got the email with the config updates.

Tim

-----Original Message-----
From: Charles T. Brooks [mailto:Charles.Brooks at hbcs.org] 
Sent: Tuesday, April 28, 2020 9:05 AM
To: Tim McIntire <Tim.McIntire at infinite.com>; Rancid-discuss at www.shrubbery.net
Subject: Re: no CVS directory created for new groups

If you haven't defined CVSROOT then CVS won't know where to create CVS objects, n'est-ce pas?

Until you define it, CVS can't work.  Google your error message.

CVSROOT is usually set in a bash profile (or whatever login initialization script is used by your chosen OS.)

Remember, the environment variable has to be set for the process actually running CVS.  If you are running CVS from a user login, that's quite likely got different environment configuration than when you're running it out of cron or some other job scheduler.

 --Charlie
 
 From: Rancid-discuss <rancid-discuss-bounces at www.shrubbery.net> on behalf of Tim McIntire <Tim.McIntire at infinite.com>
Sent: Tuesday, April 28, 2020 9:45 AM
To: Rancid-discuss at www.shrubbery.net
Subject: [rancid] no CVS directory created for new groups
  

Hi,
 
I recently migrated to rancid 3.9.  I created 3 groups initially and it is all working fine, but when I added two more, I was not getting any emails for the changes.  I tested email to the alias, that is working.  Looked through the archives  and it  appears to be related to not running rancid-cvs after adding the group to rancid.conf.    I can run rancid-run and it created the var/GROUP/configs dir and saves the config, but it is not keeping track of differences.  When I run 
 
cvs  log -bSh router.db 
 
I get
 
cvs log: No CVSROOT specified!  Please use the `-d' option cvs [log aborted]: or set the CVSROOT environment variable.
 
I ran 
 
rancid-cvs -V -f /opt/rancid/etc/rancid.conf
 
but it is still not creating the GROUP in /opt/rancid/var/CVS.
 
Any suggestions?
 
Thanks..
 
Tim
 
------------------  CONFIDENTIALITY NOTICE  ---------------

  This message, including any attachments, is for the sole use of the intended recipient(s) and may contain privileged confidential information protected by law. Any unauthorized review, use, disclosure or distribution of this message is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of this message.
 
     ------------------  CONFIDENTIALITY NOTICE  ---------------

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify so to the sender by e-mail and delete the original message. In such cases, please notify us immediately at info at infinite.com . Further, you are not to copy, disclose, or distribute this e-mail or its contents to any unauthorized person(s). Any such actions are considered unlawful. This e-mail may contain viruses. Infinite has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachments. Infinite reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infinite e-mail system. 

 

***INFINITE******** End of Disclaimer********INFINITE********



More information about the Rancid-discuss mailing list