Error:No valid CVS roots found

Jonathan Noack noackjr at alumni.rice.edu
Sat May 10 03:02:47 UTC 2008


Please don't top-post.  See my responses below.

On Fri, May 9, 2008 00:27, sanjay dalal wrote:
> On Thu, May 8, 2008 at 1:41 AM, Jonathan Noack wrote:
>> On Wed, May 7, 2008 01:16, sanjay dalal wrote:
>>> Hi,
>>> I m getting this error
>>> Error: No valid CVS roots found! See @CVSrepositories in the
>>> configuration file (/etc/cvsweb/cvsweb.conf).
>>>
>>> how to resolve this can u help me???
>>
>> Sanjay,
>> Have you configured the @CVSRepositories option in your cvsweb.conf?  If
>> so, have you perhaps forgot to remove the '#' commenting out the line?
>>
>> Below is the relevant portion of my cvsweb.conf:
>> $ grep -m1 -A6 CVSrepositories /usr/local/etc/cvsweb/cvsweb.conf
>> @CVSrepositories = (
>>        'optimator' => ['optimator',        '/usr/home/cvsroot'],
>>        'freebsd'   => ['FreeBSD',          '/home/ncvs'],
>> #       'openbsd'   => ['OpenBSD',          '/var/ncvs'],
>> #       'netbsd'    => ['NetBSD',           '/var/ncvs'],
>> #       'ruby'      => ['Ruby',             '/var/anoncvs/ruby'],
>> );
>
> Hi,
> Thanks for your reply
> i have attached my cvsweb.conf file
> Belove i have mention the configuration file and my repository path
>
> path of cvsweb.conf : /etc/cvsweb/cvsweb.conf
> path of cvsroot : /home/repository/CVSROOT
>                          /home/repository/Baybuy
>                          /home/repository/BayBuy08
>
> i have also mention the repository selinux context
>
> drwxrwxr-x  kamal kamal user_u:object_r:cvs_data_t       Baybuy
> drwxrwxr-x  kamal kamal user_u:object_r:cvs_data_t       BayBuy08
> drwxrwxr-x  kamal kamal user_u:object_r:cvs_data_t       CVSROOT
>
> so can apache can able to read these repository or not??
> which file permission is we have to mentioned here??
>
> i have also attached my cvsweb.conf file...
> please vefify that file if any error is there

Be sure to uncomment the Baybuy and BayBuy08 @CVSrepositories entries in
cvsweb.conf.  You should still be able to see CVSROOT, however.

Check your Apache error logs.  If CVSweb can't see the directory for an
entry in CVSrepositories, it'll print a warning that should appear in the
Apache error logs.  This is almost definitely the problem.

Check /var/log/messages and /var/log/audit/audit.log for any related
SELinux messages.  CVSweb needs read access to your CVS repositories.
Normally the CVSweb cgi script will be run by the same user as Apache.

Regards,
-Jonathan



More information about the freebsd-cvsweb mailing list