<br>Most of the config was already commented out, but I overlooked the <i>[general]</i> section in the viewvc config and placed the <i>cvs_roots = Rancid: /usr/local/rancid/var/CVS</i> in the top of the config instead of in the assigned section.<br>
The [cvsdb] section was already commented out so that didn't have an impact when I added my cvsdb info.<br>So now it actually works :-)<br><br>-Martin<br><br><div class="gmail_quote">2010/8/6 Lance Vermilion <span dir="ltr"><<a href="mailto:rancid@gheek.net">rancid@gheek.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Take a look at my attached document. It is not complete but is<br>
certainly a nice source of info. I know the document that you used to<br>
build your setup and mine is very similar but built entirely from a<br>
different set of info and I have expected output of directories/etc.<br>
<br>
For me personally I would attempt without MySQL to start.<br>
<br>
I don't use root_parents I use the following.<br>
<br>
cvs_roots = Rancid: /usr/local/rancid/var/CVS<br>
default_root = Rancid<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 5, 2010 at 11:30 PM, Martin Kristensen <<a href="mailto:martikri@gmail.com">martikri@gmail.com</a>> wrote:<br>
> Thanks for your reply.<br>
> Here is what I've edited in viewvc.conf:<br>
><br>
> root_parents = /usr/local/rancid/var/CVS : cvs<br>
> rcs_path = /usr/local/bin/<br>
> address = <a href=mailto:<a href="mailto:support@domain.com">support@domain.com</a>>IT Support</a><br>
> use_enscript = 1<br>
> enscript_path = /usr/bin/<br>
> use_highlight = 1<br>
> highlight_path = /usr/bin<br>
><br>
> [cvsdb]<br>
> enabled = 1<br>
> host = localhost<br>
> port = 3306<br>
> database_name = ViewVC<br>
> user = ***<br>
> passwd = ***<br>
> readonly_user = ***<br>
> readonly_passwd = ***<br>
> row_limit = 1000<br>
><br>
><br>
> -Martin<br>
><br>
> 2010/8/5 Lance Vermilion <<a href="mailto:rancid@gheek.net">rancid@gheek.net</a>><br>
>><br>
>> Martin,<br>
>><br>
>> Can you post your viewvc.conf? and the directory listing of where your<br>
>> rancid CVS is? that should make it easy to fix this issue...hopefully.<br>
>><br>
>> 2010/8/5 Martin Kristensen <<a href="mailto:martikri@gmail.com">martikri@gmail.com</a>>:<br>
>> > Hi<br>
>> > I used the RhysEvans guide to install rancid and everything seems to be<br>
>> > working except viewvc.<br>
>> > I used tortois to verify that the cvs is working, but I really want the<br>
>> > viewvc web interface to work too.<br>
>> ><br>
>> > This is what I see in the apache error log:<br>
>> ><br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback<br>
>> > (most<br>
>> > recent call last):<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] File<br>
>> > "/var/www/cgi-bin/viewvc.cgi", line 60, in ?<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] cfg =<br>
>> > viewvc.load_config(CONF_<br>
>> > PATHNAME, server)<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] File<br>
>> > "/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]<br>
>> > cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] File<br>
>> > "/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]<br>
>> > parser.read(pathname)<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] File<br>
>> > "/usr/lib64/python2.4/ConfigParser.py", line 267, in read<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]<br>
>> > self._read(fp,<br>
>> > filename)<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] File<br>
>> > "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] raise<br>
>> > MissingSectionHeaderError(fpname, lineno, line)<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]<br>
>> > ConfigParser.MissingSectionHeaderError: File contains no section<br>
>> > headers.<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:<br>
>> > /usr/local/viewvc-1.0.12/viewvc.conf, line: 15<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '<br>
>> > \\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'<br>
>> > [Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature end<br>
>> > of<br>
>> > script headers: viewvc.cgi<br>
>> ><br>
>> > I also get almost the same error message when I runcvsdbadmin rebuild<br>
>> > (point 29 in the guide) :<br>
>> ><br>
>> > [root@rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin<br>
>> > rebuild<br>
>> > /usr/local/rancid/var/CVS/CVSROOT<br>
>> ><br>
>> > Using repository root `/usr/local/rancid/var/CVS'<br>
>> > Traceback (most recent call last):<br>
>> > File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?<br>
>> > cfg = viewvc.load_config(CONF_PATHNAME)<br>
>> > File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in<br>
>> > load_config<br>
>> > cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))<br>
>> > File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in load_config<br>
>> > self.parser.read(self.conf_path or [])<br>
>> > File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read<br>
>> > self._read(fp, filename)<br>
>> > File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read<br>
>> > raise MissingSectionHeaderError(fpname, lineno, line)<br>
>> > ConfigParser.MissingSectionHeaderError: File contains no section<br>
>> > headers.<br>
>> > file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70<br>
>> > 'cvs_roots = cvs:\n'<br>
>> ><br>
>> > Can anyone tell me what I'm doing wrong ?<br>
>> ><br>
>> > Thanks!<br>
>> ><br>
>> > -Martin<br>
>> > _______________________________________________<br>
>> > Rancid-discuss mailing list<br>
>> > <a href="mailto:Rancid-discuss@shrubbery.net">Rancid-discuss@shrubbery.net</a><br>
>> > <a href="http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss" target="_blank">http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>