Article View: news.software.nntp
Article #83773Re: docheckgroups et al
From: John F. Morse
Date: Mon, 03 Jan 2011 22:01
Date: Mon, 03 Jan 2011 22:01
266 lines
12449 bytes
12449 bytes
Hi Julien,
>> I had to run actsync, redirecting the output to a file, and then remove
>> everything but the actual ctlinnd newgroup command lines before
>> mod-active would act on it. That is what I believe Russ is suggesting.
>> Since I already had this "answer" I didn't feel I had a question to be
>> answered, and improperly stated this, confusing everybody. Sorry for
>> that.
>
> Could you please tell us what are the lines you are removing?
I'll try.... ;-)
> I for instance have:
>
> 19:36 news@trigo ~/work/inn/trunk% actsync news.lacave.net -p 1 -o c
> actsync: line 607 <trigofacile.test.Ο
ΟΟ8> from localhost has a bad
> newsgroup name
> actsync: line 608 <dk.test.utf8-æøΓ₯> from localhost has a bad
> newsgroup name
> ctlinnd rmgroup af.philo
> ctlinnd rmgroup af.politique
> ctlinnd rmgroup can.francais
> [...]
>
> but it still works with mod-active because unknown lines (with no
> ctlinnd command) are silently ignored.
Well, if I would have used actsync, the lines might be the ones that -v1
through -v4 create. Such as:
actsync: STATUS: obtaining active file from /var/lib/news/active
actsync: STATUS: read 32968 groups, will merge 32968 groups from
/var/lib/news/active
actsync: STATUS: found 0 line errors from /var/lib/news/active
actsync: STATUS: obtaining active file from ./active-news2
actsync: STATUS: read 28102 groups, will merge 28102 groups from
./active-new
actsync: STATUS: found 0 line errors from ./active-new
actsync: STATUS: sorting groups
actsync: STATUS: host2 has 0 =type groups
actsync: STATUS: merging groups
actsync: STATUS: host1 has 0 =type groups
actsync: STATUS: sort-merge passed thru 28102 groups
actsync: STATUS: sort-merge marked 0 groups for removal
actsync: STATUS: marked 0 =type error groups from host1
actsync: STATUS: marked 0 =type error groups from host2
actsync: STATUS: marked 0 error groups for removal
actsync: STATUS: same=32968 add=7, change=0, remove=0
actsync: STATUS: ignore=0, work=7, err=0
actsync: STATUS: same+work+err=32975, host1_same=99.98%
I'm sure it would work with -v0 (or no -v), as I have used actsync in
the past.
Actsync failed because of the missing passwd.nntp data. Testing actsync
looks good now (with -v 0) on a local copy of an active file.
However I used docheckgroups, and that was a little fresher in my memory.
With docheckgroups, one major obstacle is the known egrep overflow:
-rw-rw-r-- 1 news news 2515382 2011-01-01 13:19 newsgroups
-rw-r--r-- 1 news news 2514617 2011-01-03 14:12 newsgroups-ISC
news@optima11:/var/lib/news$ cat newsgroups-ISC | docheckgroups
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
Perhaps a future project would be to improve docheckgroups so egrep
doesn't choke?
To get around that egrep overflow problem, I'll shorten my
newsgroups-ISC list to make it smaller.
Here is docheckgroups with a small newsgroup file, which has a new group
added, and one group description modified:
news@optima11:/var/lib/news$ cat newsgroups-ISC_small | docheckgroups
# The following newsgroups are non-standard.
# abg.allgemein
# abg.amiga
# abg.gruesse
# abg.kultur
# abg.mampf
# abg.member
# abg.spiele
# abg.test04
# abg.veranstaltungen
# abg.witziges
# You can remove them by executing the commands:
/usr/lib/news/bin/ctlinnd rmgroup abg.allgemein
/usr/lib/news/bin/ctlinnd rmgroup abg.amiga
/usr/lib/news/bin/ctlinnd rmgroup abg.gruesse
/usr/lib/news/bin/ctlinnd rmgroup abg.kultur
/usr/lib/news/bin/ctlinnd rmgroup abg.mampf
/usr/lib/news/bin/ctlinnd rmgroup abg.member
/usr/lib/news/bin/ctlinnd rmgroup abg.spiele
/usr/lib/news/bin/ctlinnd rmgroup abg.test04
/usr/lib/news/bin/ctlinnd rmgroup abg.veranstaltungen
/usr/lib/news/bin/ctlinnd rmgroup abg.witziges
# The following newsgroups were missing and should be added.
# abg.fake
# You can do this by executing the command(s):
/usr/lib/news/bin/ctlinnd newgroup abg.fake y
# The following newsgroups descriptions are obsolete.
# abg.allgemein Augsburg: Verschiedenes
# abg.amiga Augsburg: fuer unsere spanischen Freunde
# abg.comp Augsburg: Diskussion ueber Computer
# abg.diskussion Augsburg: fuer alle moeglichen sinnlosen Diskussionen
# abg.english Augsburg: chatten auf englisch auch fuer
nichtenglaender...
# abg.flohmarkt Augsburg: Verkauf von an Privat
# abg.frauen Augsburg: frauenthemen, was immer das auch sein soll
# abg.gruesse Augsburg: was taeten wir nur ohne sie...
# abg.kultur Augsburg: Konzerttermine, Kritiken, Filme, Buecher
# abg.mampf Augsburg: Fuer Rezepte, Kochtips, Kneipentests u.ae.
# abg.member Augsburg: Mitglieder
# abg.spiele Augsburg: spieletips und fragen
# abg.test04 Augsburg: Testgruppe 2004, vorsicht Reflektoren
# abg.veranstaltungen Augsburg: Veranstaltungen
# abg.witziges Augsburg: muss auch sein....
# You can remove them by editing /var/lib/news/newsgroups.
# The following newsgroups descriptions were missing and should be added.
# abg.comp Augsburg: Diskussion ueber Computer
# abg.diskussion Augsburg: fuer alle moeglichen sinnlosen
Diskussionen
# abg.english Augsburg: chat in English even for
non-English people
# abg.fake A fake newsgroup for testing
# abg.flohmarkt Augsburg: Verkauf von
# abg.frauen Augsburg: frauenthemen, was immer das auch
sein soll
# You can add them by editing /var/lib/news/newsgroups.
exit # so you can feed this message into the shell
# And remember to update /var/lib/news/newsgroups.
# Remove these lines:
# abg.allgemein Augsburg: Verschiedenes
# abg.amiga Augsburg: fuer unsere spanischen Freunde
# abg.gruesse Augsburg: was taeten wir nur ohne sie...
# abg.kultur Augsburg: Konzerttermine, Kritiken, Filme, Buecher
# abg.mampf Augsburg: Fuer Rezepte, Kochtips, Kneipentests u.ae.
# abg.member Augsburg: Mitglieder
# abg.spiele Augsburg: spieletips und fragen
# abg.test04 Augsburg: Testgruppe 2004, vorsicht Reflektoren
# abg.veranstaltungen Augsburg: Veranstaltungen
# abg.witziges Augsburg: muss auch sein....
# Add these lines:
# abg.fake A fake newsgroup for testing
news@optima11:/var/lib/news$
------------------------------------------------------------------------
If my memory isn't completely bonkers, there are lines in the above
that, when used as input, cause mod-active to fail, and without any
error given. Perhaps it is this line?:
exit # so you can feed this message into the shell
Anyway, after spending some time trying and failing to get actsync to
supply the input to mod-active, my "fix" was to copy all of the
"/usr/lib/news/bin/ctlinnd ...group ..." lines into a new textfile, and
then use it as the input for mod-active. That works as expected.
Mod-active has no problem that I've encountered, and it is a fine program.
The docheckgroups complaint here is this method is not automated by
piping, and requires the creation of a new file, editing, etc. Not so
much a big deal if only one server were involved, but several remote
headless servers amplifies on the amount of work due to file copying to
each server. Plus there is the egrep problem, which is a non-issue to
someone who isn't wanting to use checkgroups with thousands of groups.
As for actsync, since I used getlist and discovered the -A option
requires a passwd.nntp file, and you verified this, I probably can use
actsync now.
Don't worry about me, Julien. I managed to meet my goal by doing a
little more work, and my servers are up-to-date (at the moment, of
course). ;-)
>> Also possibly connected was considerable checkgroups, plus rmgroup and
>> newgroup control message activity in the same newsgroups in the past
>> couple of days. Were these possibly forged rmgroup messages?
>
> It was an issue with control-active; and owing to your synchronizing
> your active file with the one provided by ftp.isc.org, you were
> affected with the removal and then the re-adding of these newsgroups.
No, it was due to yesterday's control messages and checkgroup messages.
My synchronizing my active (and newsgroups) was made last week, and they
were fine until yesterday.
They are fixed now. I used diff to provide the differences, created the
ctlinnd command prefix on each group, copied this file to each server,
then simply ran mod-active with the file for input.
Next time I'll use actsync on each server (via ssh), which will save me
copying files to each server for mod-active's use.
>> If these removals were just errors by news administrators, they caused
>> the removal of several groups, including their watermarks. Then these
>> groups were replaced with zeroed watermarks when the groups were
>> recreated, and will result in newsreaders not seeing articles until the
>> new watermarks catch up to the various newsreaders (newsrc) databases.
>
> An argument in favour of the experimental LIST REMOVALS command along
> with the βrβ status flag :-)
I'm not familiar with this. Can you elaborate -- a link perhaps?
I do know that the newsrc file in some newsreaders (Mozilla products
especially) can create havoc for users who don't understand watermarks.
First they need to be aware something is wrong. That is often a challenge.
Their simple solution is to unsubscribe from certain groups, or in some
cases, completely remove a news server "account" form their newsreader.
Then start over after manually removing/deleting certain files that
Mozilla loves to keep forever. (It's probably not just Mozilla either.)
Of course they usually don't know how to manually edit the newsrc file
with an editor, or just delete it, and if they do, they don't realize
that they must quit the program before editing or it will simply
overwrite their work with what it has stored in RAM.
This is a problem with newsreading clients, but when a news server
experiences a renumber, it instigates the action.
Is there any easy solution? What about using a date and time instead of
an article Xref number? Doing this would mean totally changing the way
NNRP works.
And it doesn't take into consideration the many computers with incorrect
clock settings. ;-)
Don't stay up late thinking about that idea. Trop de vin peut vous tromper!
Mangez de la nourriture plus mexicaine, comme des enchiladas! ;-)
--
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:
<ifth0a$92v$1@n102.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!aqua.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <ifth0a$92v$1@n102.xanadu-bbs.net> Subject: Re: docheckgroups et al Date: Mon, 03 Jan 2011 16:01:46 -0600 From: "John F. Morse" <john@example.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ifb38e$2m6$1@puck.litech.org> <ifcmdj$h2p$1@n102.xanadu-bbs.net> <87ipydiwys.fsf@windlord.stanford.edu> <ifri8f$4jg$1@puck.litech.org> <ifs1r4$rjh$1@n102.xanadu-bbs.net> <8oejprF38fU1@mid.individual.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.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!aqua.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 266 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: n102.xanadu-bbs.net 1294092106 9311 192.168.89.210 (3 Jan 2011 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 3 Jan 2011 22:01:46 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <8oejprF38fU1@mid.individual.net> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 12201