no charts in html report

Joost van Baal joostvb at logreport.org
Tue Feb 19 15:34:24 CET 2002


On Tue, Feb 19, 2002 at 03:14:33PM +0100, Christian Martz wrote:
> 
> I have a problem. I get a html report from an apache logfile but no
> charts with the lire.20020214
<snip>
> I saw in the documentation to use :
> lr_run log2report -o html -i err www common < access_log | tar xfC -
> /tmp
> the response is "it's not a tarfile"
> 
> Where is my error ?

It's not your error, it's ours...  There's a bug in the lr_xml2html script.
This patch fixes it:

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

diff -u -r1.30 lr_xml2html.in
--- lr_xml2html.in      23 Jan 2002 21:56:43 -0000      1.30
+++ lr_xml2html.in      19 Feb 2002 14:06:50 -0000
@@ -85,6 +85,7 @@
 fi

 tmpreportdir="$TMPDIR/$PROGRAM.$$/report"
+htmlfile="$tmpreportdir/index.html"
 echo >&2 "$tag debug creating temporary report dir $tmpreportdir"
 if mkdir -p $tmpreportdir
 then
@@ -111,7 +112,7 @@
 oldpwd="`pwd`"

 cd $tmpreportdir
-lr_xslt $DBK_HTML_XSL $dbxfile
+lr_xslt $DBK_HTML_XSL $dbxfile > $htmlfile
 cd ..
 $TAR cf - report

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

Generating XHTML output suffers from the same problems.

I assume you use lire from the tarball;  you can apply the patch on your
extracted lire tarball, reconfigure, rebuild and reinstall.  If this is
too much trouble for you, you can wait for the bugfix release: I will
upload a bugfix release within 8 hours.

Thanks a lot for your bugreport!

Bye,

Joost

-- 
Joost van Baal              . .           http://www.logreport.org/
                           .   .
/^LogReport$/               . .               joostvb at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20020219/ea148b92/attachment.bin 


More information about the Questions mailing list