LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Viewvc & CVS issues (https://www.linuxquestions.org/questions/linux-software-2/viewvc-and-cvs-issues-497576/)

ACDII 11-01-2006 11:00 AM

Viewvc & CVS issues
 
Ran into a problem I dont know how to fix.

Running Fedora Core 4, ISPConfig, Rancid, Tac_plus. ALl 3 programs work OK, the problem I have is I cant get Viewvc to work properly. I think the $CVSROOT environment variable is broken. Rancid uses rancid-cvs to setup the cvs repositories for each group, viewvc when pointed to the main CVS folder should pull the directories, but doesnt. Back when I first started playing with this server I had done something with cvs and had created a /home/cvsroot directory, but dont know why or what for now. If I point viewvc to that directory, it works, I can pull up files that I copy into it, namely the networking folder that rancid created and stores the copies in, and I can view them and they all are doing what it is supposed to, but if I change the directory in rancid.conf to the /home/cvsroot folder and run rancid-cvs, the folders show up, but when I click on the link in viewvc, I get the same error I get when I point viewvc to the CVS folder rancid creates.


An Exception Has Occurred

Rancid not found!
The wrong path for this repository was configured, or the server on which the CVS tree lives may be down. Please try again in a few minutes.

Python Traceback

Traceback (most recent call last):
File "/usr/local/viewvc-1.0.3/lib/viewvc.py", line 3629, in main
request.run_viewvc()
File "/usr/local/viewvc-1.0.3/lib/viewvc.py", line 234, in run_viewvc
raise debug.ViewVCException(
ViewVCException: ViewVC Unrecoverable Error: Rancid not found!
The wrong path for this repository was configured, or the server on which the CVS tree lives may be down. Please try again in a few minutes.


Now if I log in and try to checkout the folder that is in the /home/cvsroot directory that I can view with viewvc, I get the following error;

$ cvs checkout networking
cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.
[t@rancid ~]$ cvs checkout CVSROOT
cvs checkout: No CVSROOT specified! Please use the `-d' option
cvs [checkout aborted]: or set the CVSROOT environment variable.

How do I globally set $CVSROOT so viewvc works?


All times are GMT -5. The time now is 01:25 PM.