πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79670

Re: Some thoughts on times

#79670
From: John F. Morse
Date: Tue, 18 Nov 2008 17:47
142 lines
6824 bytes
Julien Γ‰LIE wrote:
> Hi John F. Morse,
>
>> With the approximate four-minute expiry time, I wonder if it would 
>> actually complete far enough along to stamp the date on that day, or 
>> possibly slide into "tomorrow."
>>
>> Received: from news by localhost with local (Exim 4.50) id 
>> 1L1ajG-0004G9-Aq for usenet@news.my.net; Sun, 16 Nov 2008 00:03:26 -0600
>
> It is the time needed for innstat, log rotations and innreport.


Yes, I realize that, and that is why I suggested picking off the date 
from the log instead of the system clock. What I feel is important is 
the date of the logged events, and not the date when they were obtained 
nor when they were mailed.


>> Nothing is "broken" and I've lived with the "incorrect" date for 
>> several years. But if you happen to stumble onto the reason, and the 
>> fix is easy, well....
>
> I do not see how I could easily fix it.
> If you want to tweak innreport, please see the "scanlogs" script (in 
> pathbin).
> The relevant line is:
>
>    ${PATHBIN}/innreport -f ${PATHETC}/innreport.conf ${OLD_SYSLOG} 
> ${OLD_LOG}
>
> ${OLD_SYSLOG} is "news.notice".
> ${OLD_LOG} is "news".
>
> You may want to generate your own "news.notice" and "news" files at 00:00
> and give them to innreport (using /path/to/your.news.notice for 
> instance).
> You will need to rotate these files yourself (because if you only do a 
> copy
> at 00:00, you will lose what is logged between 00:00 and 00:03, when 
> innreport
> rotates them).


Thanks for these tips. Scanlogs and news.daily both work (always using 
"norotate"). I'll look into them as soon as I (we?) get innreport fixed. 
Please read on....


>> I found two files, /var/log/news/news-notice.2006.02.11-00.00.03.html 
>> and one for the following day. I don't know (remember) where those 
>> came from. Perhaps I manually ran some program to generate them. 
>> Would you know?
>
> Maybe you ran innreport by end.


Typo? Did you mean: "Maybe you ran innreport by *hand*."?

If so it would have definately been a manual run since I don't have any 
other HTML reports for any of the three INN servers over the past four 
years, except two last February, which are shown below. Probably 
something I experimented with after reading about it in this group or in 
some inn-* mailing list message. The topic has returned, so I was again 
curious after seeing the reports on other servers, like Ray's.

I tried to work on your suggestions from the bottom up, since the 
innreport command must have worked back in February of this year, but 
now appears to be broken.

Now I cannot get innreport to run -- period. Actually, top shows it 
running for a few seconds, but it does nothing except disappearing from 
top, and I have to ^C to regain control on that BASH terminal. No HTML 
file(s) are to be found.

I checked /etc/news/innreport.conf and it looks good to me. Also, 
/etc/news/inn.conf has pathhttp: /var/log/news correctly. So I tried the 
following:

news@news7:/usr/lib/news/bin$ innreport -f /etc/news
WARNING: can't make graphs as required.
         Install GD.pm or disable this option.

Can't find/load .pm : syntax error at (eval 3) line 1, at EOF

news@news7:/usr/lib/news/bin$ time innreport -f /etc/news -nog
Can't find/load .pm : syntax error at (eval 3) line 1, at EOF

real    0m1.251s
user    0m1.180s
sys     0m0.070s

news@news7:/usr/lib/news/bin$ less innreport | grep eval
  eval "use GD;";
eval $s;  # initialization
      { local $^W = 0; no strict; %data = eval $data }
    %d = eval $t;
    # foreach $key (sort { local $^W = 0; no strict; eval $h } (keys (%d)))
    foreach $key ((eval "sort {local \$^W = 0; no strict; $h} (keys 
(%d))")) {
            { local $^W = 0; no strict; %hh = eval $h }
          { local $^W = 0; no strict; %labels = eval $t }
          { local $^W = 0; no strict; %values = eval $t }
  # eval { local $^W = 0; no strict; ($r) = eval $v; };
  eval " local \$^W = 0; no strict; (\$r) = $v; ";


Does anything above appear to be the cause?

What is the missing ".pm" (perl module?), where should it be, and who 
(user:group) should own it? (I have tried inn report as news, sudo and 
as su with no change in the result, so I don't suspect it is an 
ownership issue).

Something unknown to me has obviously changed since February. I have not 
touched this server except to use htpasswd to add new users' authentication.

This is INN 2.4.3 running on Debian 3.1 -- old, but as I stated, nothing 
has changed that would have broken innreport. For Perl:

news@news7:/usr/lib/news/bin$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
  Platform:
    osname=linux, osvers=2.6.15.4, archname=i386-linux-thread-multi
    uname='linux ninsei 2.6.15.4 #1 smp preempt mon feb 20 09:48:53 pst 
2006 i686 gnulinux '

The following three old files are in /var/log/news

-rw-r--r--   1 news news   1334 2008-02-13 00:00 index.html
-rw-r--r--   1 news news  15990 2008-02-12 00:00 
news-notice.2008.02.11-00.00.03.html
-rw-r--r--   1 news news  15144 2008-02-13 00:00 
news-notice.2008.02.12-00.00.03.html

Ideas?


-- 
John

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID: <gfuv39$42i$1@optima7.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!feeder.erje.net!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail
References: <gfpide$p3n$1@optima7.xanadu-bbs.net> <80od0flhog.fsf@banana.shacknet.nu> <gfpm2s$puk$1@optima7.xanadu-bbs.net> <gfpobr$j4s$1@news.trigofacile.com> <gfpus9$s41$1@optima7.xanadu-bbs.net> <gfq31v$4m1$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gfuv39$42i$1@optima7.xanadu-bbs.net>
Subject: Re: Some thoughts on times
Date: Tue, 18 Nov 2008 11:47:19 -0600
From: "John F. Morse" <xanadu.bbs@example.invalid>
References: <gfpide$p3n$1@optima7.xanadu-bbs.net> <80od0flhog.fsf@banana.shacknet.nu> <gfpm2s$puk$1@optima7.xanadu-bbs.net> <gfpobr$j4s$1@news.trigofacile.com> <gfpus9$s41$1@optima7.xanadu-bbs.net> <gfq31v$4m1$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!feeder.erje.net!85.214.105.209.MISMATCH!news.eternal-september.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 142
Reply-To: dont.bother
NNTP-Posting-Host: wintergreen18.xanadu-bbs.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: optima7.xanadu-bbs.net 1227030441 4178 192.168.89.180 (18 Nov 2008
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Tue, 18 Nov 2008 17:47:21 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.14ubu (X11/20080925)
In-Reply-To: <gfq31v$4m1$1@news.trigofacile.com>