From owner-freebsd-cvsweb@FreeBSD.ORG Thu Jun 3 02:30:45 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 701A216A4CE for ; Thu, 3 Jun 2004 02:30:45 -0700 (PDT) Received: from mail.vgelder.com (vge.xs4all.nl [80.127.85.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id D737D43D2F for ; Thu, 3 Jun 2004 02:30:44 -0700 (PDT) (envelope-from k.vriezen@vgelder.com) Received: by mail.vgelder.com (Postfix, from userid 106) id 8A6399CE; Thu, 3 Jun 2004 11:34:32 +0200 (CEST) Received: from santiago.intern (santiago.dmz [192.168.2.200])by mail.vgelder.com (Postfix) with ESMTP id 4360F48Dfor ; Thu, 3 Jun 2004 11:34:32 +0200 (CEST) Received: from santiago.intern (localhost.localdomain [127.0.0.1])by santiago.intern (8.12.11/8.12.11/Debian-3) with ESMTP id i539Ug2v018919for ; Thu, 3 Jun 2004 11:30:42 +0200 Received: (from kv@localhost)by santiago.intern (8.12.11/8.12.11/Debian-3) id i539UgxU018916for freebsd-cvsweb@FreeBSD.org; Thu, 3 Jun 2004 11:30:42 +0200 X-Authentication-Warning: santiago.intern: kv set sender to k.vriezen@vgelder.com using -f Date: Thu, 3 Jun 2004 11:30:42 +0200 From: Koos Vriezen To: freebsd-cvsweb@FreeBSD.org Message-ID: <20040603093042.GB12805@vgelder.com> References: <20040602171019.GA12732@vgelder.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040602171019.GA12732@vgelder.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Copyrighted-Material: Please visit http://www.company.com/privacy.htm Subject: Re: cvsweb version 3:3.0.1-1 diff problems (and howto debug this) X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 09:30:45 -0000 You wrote: > On Wed, 2004-06-02 at 20:10, Koos Vriezen wrote: > > > The various projects show fine, also the history of a file works. What > > doesn't work are the links from a file history page (and this did work > > in the previous version). Eg. the links 'text'/'markeup' return the > > same > > history file. The 'preferred' link (for diff) shows a page with: > > Error: module/file.diff: no such file or directory > > for file 'file' in module 'module'. > > Some shooting-in-the-dark questions: > What do the URLs in the server's access log look like for each of these > (text/markup/preferred) when you hit the links? Do the "download", > "annotated" and "colored" links work as expected? download works, annotated AFAICS doesn't (but I never used this one) and colored does not work either. For revision 1.2 for file 'myfile' in module 'mymodule' for our internal web server (www.intern): preferred: http://www.intern/cgi-bin/cvsweb/mymodule/myfile.diff?r1=1.1;r2=1.2 colored: http://www.intern/cgi-bin/cvsweb/mymodule/myfile.diff?r1=1.1;r2=1.2;f=h text: http://www.intern/cgi-bin/cvsweb/mymodule/myfile?rev=1.2;content-type=text%2Fplain markup: http://www.intern/cgi-bin/cvsweb/mymodule/myfile?rev=1.2;content-type=text%2Fx-cvsweb-markup and a working one (download): http://www.intern/cgi-bin/cvsweb/~checkout~/mymodule/myfile?rev=1.2;content-type=text%2Fplain colored/preferred both return that error page: Error Error: mymodule/myfile.diff: no such file or directory -------------------------------------------------------------- FreeBSD-CVSweb > Which web server and browser do you use? $ apt-show-versions apache2-mpm-prefork apache2-mpm-prefork/testing uptodate 2.0.49-1 IE6 and konqueror-3.2.2 > Does it happen with all files in CVS, or just some of them? All of them > Anything in the server error log? No (I guess you mean apache log files). Even not when commenting "open(STDERR, '>', devnull())" (two cases). > > But what is the best way to debug these configuration errors? > > I don't know if they're configuration errors or plain bugs, and dunno > about the best way to debug either, but one lowly approach is to insert > some warn() statements in the code and watch the web server error log. Recommendations where? Already tried just before the above error page is generated: line1380: } else { my $fh = do { local (*FH); }; my $module; # Assume it's a module name with a potential path following it. my $xtra = (($module = $where) =~ s|/.*||) ? $& : ''; warn("xtra: $xtra\nmodule: $module\nfh: $fh\n"); # Is there an indexed version of modules? if (open($fh, "< $cvsroot/CVSROOT/modules")) { warn("$cvsroot/CVSROOT/modules opened\n"); while (<$fh>) { generates this when pressing 'preferred': [Thu Jun 03 11:21:37 2004] [error] [client 192.168.1.106] xtra: /myfile.diff, referer: http://www.intern/cgi-bin/cvsweb/mymodule/myfile [Thu Jun 03 11:21:37 2004] [error] [client 192.168.1.106] module: mymodule, referer: http://www.intern/cgi-bin/cvsweb/mymodule/myfile [Thu Jun 03 11:21:37 2004] [error] [client 192.168.1.106] fh: *main::FH, referer: http://www.intern/cgi-bin/cvsweb/mymodule/myfile [Thu Jun 03 11:21:37 2004] [error] [client 192.168.1.106] /var/smb/ontwikkel/cvs/CVSROOT/modules opened, referer: http://www.intern/cgi-bin/cvsweb/mymodule/myfile Btw, /var/smb/ontwikkel/cvs/CVSROOT/modules only contains lines starting with '#'. But maybe cvsweb should even come to this part? Thanks, Koos ***************DISCLAIMER*************** Bewijs van Afstand: Dit emailbericht is slechts bestemd voor de personen aan wie het is gericht en kan informatie bevatten die persoonlijk of vertrouwelijk is en niet openbaar mag worden gemaakt zonder goedkeuring van de auteur. Indien u dit bericht per vergissing heeft ontvangen, verzoeken wij u ons op de hoogte te stellen en het bericht te vernietigen zonder het te kopiëren of te distribueren. Ons bedrijf staat niet in voor juiste en volledige overbrenging van de inhoud van een verzonden bericht, noch voor de tijdige ontvangst daarvan. Disclaimer: This E-mail is for use of the intended recipient(s) only and can contain information that is personal or confidential. It is prohibited to distribute the content of this message without the author's prior permission. If you have received it in error, please notify the sender and immediately delete this message without distributing or retaining copies hereof. Our company is not responsible for the comprehensiveness of this message nor it's time of delivery. *********************************************