[rancid] viewvc premature end of script problem rancid

Martin Kristensen martikri at gmail.com
Thu Aug 5 10:58:06 UTC 2010


Hi
I used the RhysEvans guide to install rancid and everything seems to be
working except viewvc.
I used tortois to verify that the cvs is working, but I really want the
viewvc web interface to work too.

This is what I see in the apache error log:

[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Traceback (most
recent call last):
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/var/www/cgi-bin/viewvc.cgi", line 60, in ?
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     cfg =
viewvc.load_config(CONF_
PATHNAME, server)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/local/viewvc-1.0.12/lib/viewvc.py", line 3679, in load_config
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/local/viewvc-1.0.12/lib/config.py", line 57, in load_config
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
parser.read(pathname)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/lib64/python2.4/ConfigParser.py", line 267, in read
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     self._read(fp,
filename)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]   File
"/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]     raise
MissingSectionHeaderError(fpname, lineno, line)
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3]
ConfigParser.MissingSectionHeaderError: File contains no section headers.
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] file:
/usr/local/viewvc-1.0.12/viewvc.conf, line: 15
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] '
\\t#cvs_roots = cvs: /usr/local/rancid/var/CVS\\n'
[Wed Aug 04 13:30:56 2010] [error] [client 192.168.101.3] Premature end of
script headers: viewvc.cgi

I also get almost the same error message when I runcvsdbadmin rebuild
(point 29 in the guide) :

[root at rancid viewvc-1.1.6]# /usr/local/viewvc-1.1.6/bin/./cvsdbadmin rebuild
/usr/local/rancid/var/CVS/CVSROOT

Using repository root `/usr/local/rancid/var/CVS'
Traceback (most recent call last):
  File "/usr/local/viewvc-1.1.6/bin/./cvsdbadmin", line 174, in ?
    cfg = viewvc.load_config(CONF_PATHNAME)
  File "/usr/local/viewvc-1.1.6/lib/viewvc.py", line 4277, in load_config
    cfg.load_config(pathname, server and server.getenv("HTTP_HOST"))
  File "/usr/local/viewvc-1.1.6/lib/config.py", line 148, in load_config
    self.parser.read(self.conf_path or [])
  File "/usr/lib64/python2.4/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.4/ConfigParser.py", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /usr/local/viewvc-1.1.6/viewvc.conf, line: 70
'cvs_roots = cvs:\n'

Can anyone tell me what I'm doing wrong ?

Thanks!

-Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20100805/cd2322d3/attachment.html 


More information about the Rancid-discuss mailing list