Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2006 18:17:55 +0530
From:      "Jadu Kumar Saikia" <jadu.saikia@in.ness.com>
To:        <freebsd-cvsweb@freebsd.org>
Subject:   Error: No valid CVS roots found! See @CVSrepositories in the configuration file (/etc/cvsweb/cvsweb.conf)... please help
Message-ID:  <MAILSRVVUcDbfodiVRe0000e7b4@mailsrv>

next in thread | raw e-mail | index | archive | help

Hi All,

 

I am very new to CVSWEb, also (probably) the newest member of this list.

 

Describing one duplicate issue (that came into discussion in Aug'2005).

 

I have RANCID and CVSWeb installed on a Fedora Core 3 box.  RANCID is  

working file as per expactation.

 

I have the following lines in cvsweb.conf pointing to my RANCID CVS  

repository:

 

@CVSrepositories = (

        'configs' => ['Lab configs','/var/www/rancid/CVS']

#        'local'   => ['Local Repository', '/var/cvs'],

#       'freebsd' => ['FreeBSD',          '/var/ncvs'],

#       'openbsd' => ['OpenBSD',          '/var/ncvs'],

#       'netbsd'  => ['NetBSD',           '/var/ncvs'],

#       'ruby'    => ['Ruby',             '/var/anoncvs/ruby'],

);

 

 

Pointing my browser at http:/dummy.org/cgi-bin/cvsweb.cgi, faced the
following error

 

 

Error

Error: No valid CVS roots found! See @CVSrepositories in the configuration
file (/etc/cvsweb/cvsweb.conf).

 

----------------------------------------------------------------------------
----

 

In cvsweb.cgi:

 

#

# CVS roots

#

my $rootfound = 0;

for (my $i = 0; $i < scalar(@CVSrepositories); $i += 2) {

  my $key = $CVSrepositories[$i];

  my ($descr, $root) = @{$CVSrepositories[$i+1]};

  $root = canonpath($root);

  unless (-d $root) {

    warn("Root '$root' defined in \@CVSrepositories is not a directory, " .

         'entry ignored');

    next;

  }

  $rootfound ||= 1;

  $cvstreedefault = $key unless defined($cvstreedefault);

  $CVSROOTdescr{$key} = $descr;

  $CVSROOT{$key} = $root;

  push(@CVSROOT, $key);

}

unless ($rootfound) {

  fatal('500 Internal Error',

        'No valid CVS roots found!  See <code>@CVSrepositories</code> in ' .

        'the configuration file (<code>%s</code>).',

        $config);

}

undef $rootfound;

 

 

Please help me to sort this problem. I will be grateful to all of you.

 

Also suggest how to configure RANCID with CVSWEb, Am I missing something
very fundamental?

 

Many Thanks,

 

JKS



Disclaimer

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed.  If you have received this communication in error, please immediately notify the MailAdmin@in.ness.com and destroy the original message. The recipient should check this email and any attachments for the presence of viruses.  Ness has taken every reasonable precaution to minimize this risk, and accepts no liability for any damage caused by any virus transmitted in this email.  Ness reserves the rights to monitor and review the content of all messages sent to or from this E-mail address, and store them on the Ness E-mail system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MAILSRVVUcDbfodiVRe0000e7b4>