🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78122

inn2_overview_fix (and expire question)

#78122
From: Matija Nalis
Date: Thu, 25 Oct 2007 15:06
63 lines
3843 bytes
Hi, I've written a tool inn2_overview_fix, which can be found on
http://newsfeed.carnet.hr/programs/

It is tool for checking (and optionally, fixing) out-of-sync errors in inn
tradspool with tradindex overviews. It currently compares tradspool files,
active(5) ranges, and tradindex overviews and reports any inconsistencies
found.

It also brings them in sync (using tradspool storage as authoritative
source). It was written because when things get out of sync in
tradspool/tradindex in inn-2.4.3 (like in Debian Etch) "makeactive -O" which
was run to correct it would often silently fail leaving bunch of groups
unfixed (which would lead to server throttling *again* soon).

This program uses tdx-util to fix tradindex overviews, and ctlinnd renumber
to fix active for groups it finds inconsistencies in; and it seems to work
without problems (as opposed to "makeactive -O"). 

Additional bonus is that it can fix groups while your server is running (by
just throttling it when needed), thus reducing downtime for your users; and
that is has hierarchy priorities so it will first fix groups that are more
important to you.

The program works great, but there is one annoying expire-related problem.

Assume we have a group, which has following articles in tradspool:
-rw-rw-r-- 2 news news 1758 Mar  1  2007 3989
-rw-rw-r-- 1 news news 2379 Oct  5 08:56 4135
-rw-rw-r-- 1 news news  966 Oct  5 08:57 4136
-rw-rw-r-- 1 news news  991 Oct  5 08:58 4137
-rw-rw-r-- 1 news news 1427 Oct  5 09:01 4138
-rw-rw-r-- 1 news news 1185 Oct  8 23:01 4139
-rw-rw-r-- 1 news news 1963 Oct  9 13:27 4140
-rw-rw-r-- 1 news news 1428 Oct 15 23:31 4141
-rw-rw-r-- 1 news news 3147 Oct 21 14:42 4142
-rw-rw-r-- 6 news news 1139 Oct 21 23:34 4143

original tradindex overview had records 4135-4143 (note missing 3989).
The script throttles innd, and runs tdx-util (which generates all overviews,
including previously missing 3989), unthrottles, and runs ctlinnd renumber.

All looks great, now active(5) and tradindex overviews are in sync with
tradspool (all have 3989 + 4135-4143 records)

However, when cron does its daily run, it runs 
"news.daily expireover lowmark delayrm"

(expire.ctl has an 1 month expiration for that group.)

I would expect that news.daily would remove the 3989 article from tradspool
(as it is several months old) and update overview and active file so that
they have only range 4135-4143.

However, while it does update overview and active file to range 4135-4143,
it DOES NOT expire article 3989 from tradspool. 

Any idea why it is so (and prehaps how to fix it) ? 

I've tried also running "news.daily notdaily noexpireover delayrm", but it
seems to behave in the same (broken) manner.

-- 
Opinions above are GNU-copylefted.
Technical Details
Message-ID: <slrnfi1c8e.8k2.mnalis-news@bukavac.carpriv.carnet.hr>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsgate.cistron.nl!xs4all!feeder.news-service.com!feeder2.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnfi1c8e.8k2.mnalis-news@bukavac.carpriv.carnet.hr>
Subject: inn2_overview_fix (and expire question)
Date: Thu, 25 Oct 2007 15:06:50 +0000
From: Matija Nalis <mnalis-news@voyager.hr>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!aotearoa.belnet.be!news.belnet.be!newsgate.cistron.nl!xs4all!feeder.news-service.com!feeder2.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!tudelft.nl!txtfeed1.tudelft.nl!newsfeed.CARNet.hr!not-for-mail
Newsgroups: news.software.nntp
Organization: CARNet, Croatia
Lines: 63
NNTP-Posting-Host: 161.53.12.138
X-Trace: news1.carnet.hr 1193324810 9652 161.53.12.138 (25 Oct 2007 15:06:50
 GMT)
X-Complaints-To: abuse@CARNet.hr
NNTP-Posting-Date: Thu, 25 Oct 2007 15:06:50 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)