πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82914

Re: INN 2.5.1 Owner-Group different than 2.4.5

#82914
From: John F. Morse
Date: Thu, 11 Mar 2010 16:00
315 lines
15339 bytes
Hi Julien,

Julien Γ‰LIE wrote:

> That's a bug, already present in INN 2.4.
> Still not fixed.
>
> Maybe the note with Russ' suggestion is the right thing to do.
> Besides, it does not look complicated and could be done for INN 2.5.2 
> (?).
>
>  innreport doesn't properly track checkpoints across days
>  http://inn.eyrie.org/trac/ticket/7


Well, now that I understand that "problem," maybe I can add to Russ' 
suggestion(s)?

Why not drop all connections at the time news.daily runs from cron? That 
sounds like a simple "fix." The peers will reconnect. (Maybe I'm missing 
something that would not work for those who use batch feeds, etc.?)

If that is not desired for some reason, then why couldn't the "wc -l" of 
<PATHLOG>/news be used to tally the received articles?

You mention that cancel messages have two entries in <PATHLOG>/news but 
I fail to understand or see this behavior. I find only one entry for the 
cancel message, and another earlier entry for the message to be 
canceled, so this is correctly tallying two separate articles.


>> I don't know what you are using to tally "articles" as they arrive 
>> and are relayed, but here is what I see for yesterday's totals 
>> (servers are in the order that they stream the articles):
>>
>> Server Log  Incoming  Incoming  Outgoing
>>        Inn     Inn    Articles  Innfeed
>>
>>  1    32360   31167    29350     30471
>>  2    30563   30153    29348     29653
>>  3    30563   29405    29348     27766
>>  4    30559   49963    29343    no peer
>>
>> Look at the irregularity in the Incoming INN column for server #4 
>> (2.5.1) compared to the others (2.4.5).
>
> I understand that column 1 is the number of lines of the "news" log file.
> Column 2 "Taken" in "Incoming Feeds (INN)" and column 3 "Articles"
> in "Incoming articles".
> Do you confirm?
>
> Column 2 should normally have "Taken" + "Reject".


Using the counts for Server #1 above:



Column 1 -- Yes, it should reflect the lines (32360) in the news log, 
but I actually took the numbers from the Daily Report's "Log entries by 
program" the Program name "inn" line, and the  "Lines" column area, as 
shown here:

Daily Usenet report for news1 from Mar  9 00:00:03 to Mar 10 00:00:03


Log entries by program:
Program name                                     Lines  %Lines      Size  %Size
inn                                              32360   81.8%    5.0 MB  85.0%
innd                                              5273   13.3%  656.0 KB  11.0%
innfeed                                           1216    3.1%  145.1 KB   2.4%
nocem                                              732    1.8%   93.9 KB   1.6%

TOTAL: 4                                         39581  100.0%    5.8 MB 100.0%


The example I gave for the INN 2.5.1 server's figures from the Daily 
Report's total lines did agree with the "wc -l" on that <PATHLOG>/news 
that I provided.

Just to be sure, I'll verify this with server #1:

news@news1:/var/log/news/OLD$ zcat news.2.gz | wc -l
32360

So I would safely say "yes" that the lines are counted and reported as 
they actually exist on 2.5.1 and also on 2.4.5.



Column 2 -- Yes, it is the total "Taken" (31167 in my example):

Incoming Feeds (INN):
Server                Connects  Offered   Taken Refused  Reject %Accpt  Elapsed
peer1                       25    26421   15581    9510    1330   58%  23:31:33
peer2                       13    24341    9222   14913     206   37%  28:45:57
peer3                      193    43359    5518   37466     375   12%  95:57:13
peer4                      576    32472     799   31550     123    2%  47:29:38
peer.local                  23       47      47       0       0  100%  04:07:44
localhost                   25        0       0       0       0    0%  00:00:00

TOTAL: 6                   855   126640   31167   93439    2034   24% 199:52:05


You stated that my Column 2 should normally have "Taken" + "Reject".

But shouldn't "Taken" actually reflect only "Offered" minus "Refused" 
minus "Rejected"? Or those added to the spool?

31167 minus the 2034 rejects is 29133, a figure that doesn't show up 
anywhere.

I realize you have to receive an 
"offered-and-then-sent-to-you-and-received article before rejecting it. 
This is an abnormal condition usually caused by propagation timing issues.

I also realize you have to receive parts of the header (the Message-ID 
as a minimum) before refusing an article. This is the normal way 
articles should propagate.

So it appears that even small parts of the header used for refused 
articles are still tallied in the "Offered" count.

Consider also what numbers the "%Accpt" uses for computation.



Column 3 -- Yes, it is from the TOTAL line in the Articles column:

Incoming articles:
Date                        Articles    %Arts Art/sec      Size   %Size  KB/sec
Mar  9 00:00:03 - 00:59:59       703     2.4%    0.20    2.9 MB    2.2%    0.81
Mar  9 01:00:00 - 01:59:59       603     2.1%    0.17    2.3 MB    1.7%    0.65
Mar  9 02:00:00 - 02:59:59       620     2.1%    0.17    3.5 MB    2.7%    1.00
Mar  9 03:00:00 - 03:59:59       625     2.1%    0.17    2.5 MB    1.9%    0.70
Mar  9 04:00:00 - 04:59:59       813     2.8%    0.23    4.1 MB    3.1%    1.16
Mar  9 05:00:00 - 05:59:59      1609     5.5%    0.45    8.6 MB    6.5%    2.44
Mar  9 06:00:00 - 06:59:59      1100     3.7%    0.31    6.0 MB    4.5%    1.70
Mar  9 07:00:00 - 07:59:59      1257     4.3%    0.35    6.0 MB    4.5%    1.70
Mar  9 08:00:00 - 08:59:59      1418     4.8%    0.39   16.2 MB   12.3%    4.61
Mar  9 09:00:00 - 09:59:59      1564     5.3%    0.43    5.7 MB    4.3%    1.61
Mar  9 10:00:00 - 10:59:59      1681     5.7%    0.47    6.5 MB    4.9%    1.84
Mar  9 11:00:00 - 11:59:59      1602     5.5%    0.45    6.5 MB    4.9%    1.84
Mar  9 12:00:00 - 12:59:59      1668     5.7%    0.46    7.6 MB    5.7%    2.15
Mar  9 13:00:00 - 13:59:59      1426     4.9%    0.40    5.2 MB    4.0%    1.49
Mar  9 14:00:00 - 14:59:59      1507     5.1%    0.42    5.9 MB    4.5%    1.68
Mar  9 15:00:00 - 15:59:59      1553     5.3%    0.43    5.6 MB    4.2%    1.59
Mar  9 16:00:00 - 16:59:59      1576     5.4%    0.44    6.1 MB    4.6%    1.73
Mar  9 17:00:00 - 17:59:59      1336     4.6%    0.37    5.1 MB    3.9%    1.46
Mar  9 18:00:00 - 18:59:59      1239     4.2%    0.34    6.1 MB    4.6%    1.74
Mar  9 19:00:00 - 19:59:59      1176     4.0%    0.33    4.2 MB    3.2%    1.20
Mar  9 20:00:00 - 20:59:59      1188     4.0%    0.33    3.9 MB    2.9%    1.10
Mar  9 21:00:00 - 21:59:59      1151     3.9%    0.32    3.7 MB    2.8%    1.06
Mar  9 22:00:00 - 22:59:59      1034     3.5%    0.29    3.7 MB    2.8%    1.05
Mar  9 23:00:00 - 23:59:59       894     3.0%    0.25    4.2 MB    3.2%    1.20
Mar 10 00:00:00 - 00:00:03         7     0.0%    2.33   23.9 KB    0.0%    7.97

TOTAL: 24:00:00                29350   100.0%    0.34  131.9 MB  100.0%    1.56


>> Cleanfeed is involved in the first three servers, but the fourth only 
>> has the Cleanfeed provided in the generic Debian Squeeze INN 2.5.1-1 
>> download package. I assume it is filtering some articles -- if there 
>> is much filtering to do after they have traversed through three 
>> earlier servers -- and the small reduction of articles at each stage 
>> indicates some Cleanfeed action has transpired.
>
> Is the configuration of Cleanfeed the same?
> It is strange that less and less articles are received (if of course the
> same behaviour is seen every day).


Cleanfeed has differences. The transit server's filters are not as tight 
as the reader's server's filtering. IOW, more filtering is added at the 
reader servers. The incoming transit server will filter the obvious 
(binaries, etc.), but the reader server also filters a few bad guys 
(porn, etc.). The reader servers also allow limited binary and HTML 
posting to select local groups, and to one Usenet group which my peers 
allow.

The new INN 2.5.1 only has the out-of-the-box Perl filtering 
(filter_innd.pl) -- nothing has been changed and no cleanfeed.local added.

Where did you see something that made Cleanfeed questionable?

If it was the outgoing vs. the incoming, that tally would be Cleanfeed, 
NoCeM arrival times, slight differences in active, maybe slight 
differences in newsfeeds, unrecoverable LAN collisions, unknown problems 
with INN, ....

Hard to determine without a lot of digging. And when you dig a hole, 
there is usually nothing in it to examine. ;-)


>> /var/log/news/news has 30559 lines
>>
>> One article -- one news log entry, eh? Don't they (or shouldn't they) 
>> always be equal? Doesn't <PATHLOG>/news record _every_ incoming 
>> article, whether accepted (+) or rejected (-), and the cancel (c) 
>> articles?
>
> Not exactly.  There are two lines for only one article when it is
> a cancel ("c") or badly formed ("?").
> More explanation about these flags on the "LOGGING" section of
> <http://www.eyrie.org/~eagle/software/inn/docs/innd.html>.


I'm sorry Julien, but I do not see where that or anything else states 
there are two entries for a cancel message. I have not investigated my 
theory, but I do question why would a cancel message be listed twice? It 
is only one article. (I do not think a cancel message and the message it 
cancels should be counted as only one message.)

The same for the ? status. One article.

I'm thinking <PATHLOG>/news here, not news.notice nor syslog, which 
lists much more activity, including the checkpoints data, which is 
useful for "points" in time, but not necessarily good for 24-hour days 
as we've seen.

That http://www.eyrie.org/~eagle/software/inn/docs/innd.html explanation 
(the process I do understand) is IMHO poorly worded.

This "j" and "junk" and "trash" discussion was recent in this group.

"The fourth field indicates whether the article was accepted or not. If 
it is a plus sign, then the article was accepted. If it is the letter 
|j|, then the article was accepted, but all of the newsgroups to which 
the article was posted were set to status |j| in the /active/ file (or 
not listed in the /active/ file and /wanttrash/ was set in /inn.conf/) 
so the article was filed into the |junk| newsgroup. In both of these 
cases, the article has been accepted and the |site ...| field contains 
the space-separated list of sites to which the article is being sent."

The third sentence reads as though the "j" flag is actually setting 
flags in the active file, or even de-listing groups!

I think it would be more clear with the substitution of "if" instead of 
"but" and maybe "and then" instead of "so":

"... If it is the letter |j|, then the article was accepted *if* all of 
the newsgroups to which the article was posted were set to status |j| in 
the /active/ file (or not listed in the /active/ file and /wanttrash/ 
was set in /inn.conf/), *and then* the article was filed into the |junk| 
newsgroup...."

Just my humble opinion on English. ;-)


>> Why does INN 2.5.1's Daily Report show 49963 articles, which is way 
>> more than the 29343 hourly totals it shows?
>
> 29343 from column 3 is taken from the "news" log file.  It takes into 
> account
> "+" and "j" lines.


But all articles should be tallied. They are all incoming.


> 30559 from column 1 is the number of lines in the "news" log file.  I 
> believe
> the difference is the number of other flags ("-", "?" and "c").


Those are incoming articles. The flag means nothing in a count of articles.


> 49963 from column 2 is taken from the checkpoints in the "news.notice" 
> log file.
> I think it is related to bug #7 explained at the beginning of this 
> article.
> Both INN 2.4.x and 2.5.(0|1) are affected but here, for a reason I do 
> not know,
> the result seems wronger with your INN 2.5 server than with your INN 
> 2.4 servers!


Yes, this could be a bug, or something a simple change might fix, like 
closing connections at news.daily time, or simply using the "wc -l" of 
<PATHLOG>/news.

I say "simple" because I know you know how to do it, but not necessarily 
me!


> I see on my INN 2.5.1 (or 2.6.0):
>
> 8th March: 4337 taken, 4251 incoming (hourly totals)
> 9th March: 4393 taken, 4975 incoming
> 10th March: 5077 taken, 4186 incoming
>
> You see that checkpoints are handled accross days (on 9th, less 
> "taken" than
> incoming articles).  We can neglect rejects here (less than 100 for 
> each of
> these days).


I understand that, but the Daily report should reflect only that 
specific day's information, not indeterminable numbers from some other 
unknown era.

I wish I could program so I could assist you and others, but at this 
stage of the game, about all I can do to help is report things I believe 
are either bugs or need improvement.

Please don't think of me as a constant whiner who only "sits on my 
thumb" waiting on others to fix things. ;-)


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <hnb436$m2$1@optima5.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!news.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
References: <hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$1@news.trigofacile.com> <hl4nt6$d7d$1@optima5.xanadu-bbs.net> <hl4osg$km4$1@news.trigofacile.com> <hl4qt2$e1p$1@optima5.xanadu-bbs.net> <hl5o2r$icr$1@news.trigofacile.com> <hmjcao$b0a$1@optima5.xanadu-bbs.net> <hmjkfm$voo$1@news.trigofacile.com> <hmjlaf$do3$1@optima5.xanadu-bbs.net> <slrnhp4hi4.3ck.mnalis-news@eagle102.home.lan> <hmtmfr$6oo$1@optima5.xanadu-bbs.net> <hmtpfm$put$1@remote5bge0.ripco.com> <hmtqth$7vt$1@optima5.xanadu-bbs.net> <hn0q4c$en0$1@news.trigofacile.com> <hn1hib$9f2$1@optima5.xanadu-bbs.net> <hn3hsp$2cv$1@news.trigofacile.com> <hn5asl$c0h$1@optima5.xanadu-bbs.net> <hn64ua$h7l$1@news.trigofacile.com> <hn848n$536$1@optima5.xanadu-bbs.net> <hn8td1$5p2$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <hnb436$m2$1@optima5.xanadu-bbs.net>
Subject: Re: INN 2.5.1 Owner-Group different than 2.4.5
Date: Thu, 11 Mar 2010 10:00:38 -0600
From: "John F. Morse" <john@example.invalid>
References: <hl2qud$srr$2@optima5.xanadu-bbs.net> <87d40apbfq.fsf@windlord.stanford.edu> <hl480b$8q7$1@optima5.xanadu-bbs.net> <hl4gbh$ckg$1@news.trigofacile.com> <hl4nt6$d7d$1@optima5.xanadu-bbs.net> <hl4osg$km4$1@news.trigofacile.com> <hl4qt2$e1p$1@optima5.xanadu-bbs.net> <hl5o2r$icr$1@news.trigofacile.com> <hmjcao$b0a$1@optima5.xanadu-bbs.net> <hmjkfm$voo$1@news.trigofacile.com> <hmjlaf$do3$1@optima5.xanadu-bbs.net> <slrnhp4hi4.3ck.mnalis-news@eagle102.home.lan> <hmtmfr$6oo$1@optima5.xanadu-bbs.net> <hmtpfm$put$1@remote5bge0.ripco.com> <hmtqth$7vt$1@optima5.xanadu-bbs.net> <hn0q4c$en0$1@news.trigofacile.com> <hn1hib$9f2$1@optima5.xanadu-bbs.net> <hn3hsp$2cv$1@news.trigofacile.com> <hn5asl$c0h$1@optima5.xanadu-bbs.net> <hn64ua$h7l$1@news.trigofacile.com> <hn848n$536$1@optima5.xanadu-bbs.net> <hn8td1$5p2$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!postnews.google.com!news2.google.com!news.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 315
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: optima5.xanadu-bbs.net 1268323238 706 192.168.89.210 (11 Mar 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Thu, 11 Mar 2010 16:00:38 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
In-Reply-To: <hn8td1$5p2$1@news.trigofacile.com>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 15090