Article View: news.software.nntp
Article #83708Re: docheckgroups et al
From: John F. Morse
Date: Wed, 15 Dec 2010 02:53
Date: Wed, 15 Dec 2010 02:53
168 lines
8492 bytes
8492 bytes
Hi Julien
> Is it linked to the issue you reported last year?
>
> https://groups.google.com/group/news.software.nntp/browse_thread/thread/43bf5cc8836e49d
That does look familiar. I don't remember anything about it though.
Maybe I'm getting senile or Alzheimer's is setting in.
> Wasn't the problem solved last time?!?
I don't remember, Julien. It was nearly two years ago. I barely remember
last week. :-(
I do remember this last weekend when my two-year-old heat pump and
furnace decided it no longer had the fossil fuel heat kit, which comes
on using natural gas when the outside temperature drops below 40 F (4
C), and the heat pump doesn't have enough warm air to pump into the house.
Sunday and Monday the outdoor temperature was near zero F (-15C) with
20-30 MPH (32-48 k/h) wind, and the house dropped to 58 F (14 C) for the
two days.
The service company came Sunday morning but the young kid didn't know
anything about this type of system.
Monday a slightly older guy arrived, with a little more experience. He
called an "old-timer" who provided a few suggestions (guesstimates) for
reprogramming several options on the digital Honeywell thermostat, and
it's running fine now.
But will it fail again? I ask because why did it "forget" the settings
it had?
I have to get onto them to find out why the settings were changed on
their own before the warranty expires. If I don't, well.... $$$
Maybe my brain froze? ;-)
I think I just gave up trying to use docheckgroups and mod-active.
Instead I probably used either actsync, or just "dumped" many textfiles
of around 30 or so ctlinnd newgroup commands per time.
I hate using that method for more than a handful of groups. It is slow,
hogs the server, and can cause corrupted groups if I try using too many
on each "dump." It's quicker to just stop the server, paste in the new
text to the active file, and restart the server. However that opens up
the possibility of accidentally adding groups that already exist in the
active file.
So a lot of rcp/scp copying and diff checking is required, including awk
to remove the watermarks (awk '{print $1, $4}' active > active1-4.txt),
then sorting because the real active file is not in order, all over ssh,
plus any editing to eliminate duplicate groups. Quite a bit of work that
one of the utilities should be able to do quickly.
Actsync is difficult to impossible to use amongst the servers due to
ssl/tls and authentication. I would probably just scp the files to my
main workstation, work on them here, then scp them back to the server(s)
and run actsync against the local file instead of a host. Since I don't
remember using actsync before, I don't know if it pauses/throttles and
adds groups, whether it creates miles of logs and Daily Report entries,
or is "quiet."
>> I realize actsync can do this, but it wastes far too much server time,
>> reporting every ctlinnd command, restarting all connections, etc., for
>> each and every newsgroup added. Dumping a list of newgroup commands into
>> a terminal also causes malformed newsgroup names when the ssh connection
>> is adding ctlinnd newgroup commands faster than the server can
>> process them.
>
> I do not understand how the fastness of the SSH connection affects
> the way ctlinnd newgroup commands are parsed.
I can "dump" a ctlinnd newgroup textfile from the clip into a terminal
on a remote ssh session, and after about 20 newgroup commands, the
groups start getting their names truncated, with the truncated portion
just ignored as a bad BASH command. Or it can be added to another
newsgroup name.
Doesn't matter whether the server is throttled or not, or even if it is
to one of the new fast CPU servers. There is just too much overhead in
sequential ctlinnd newgroup commands for INN to keep up with.
It acts like old serial handshaking, where some kind of flow control is
needed (like XON/XOFF, RTS/CTS).
I was under the impression that one of the utilities (actsync,
docheckgroups, mod-active) could automate the process of expanding a
smaller active file, like Big-8 only plus a few local groups, to
something closer to the larger ISC active file, hopefully using a regex
to skip (not select) certain hierarchies (like alt.*).
I have the complete Big-8 and quite a few alt.comp.* and other computer
groups, plus several hundred local groups, and many foreign language
hierarchies. I've added all groups in the ^a.* and ^b.* hierarchies
except the alt.* hierarchy. From ^c.* to ^z.* are quite a few more.
There are presently the same 6723 groups on each of my servers
(transits, readers, test).
I'd like to add everything the ISC has in the active file except alt.*
and then later add in the "worthwhile" alt groups, skipping any binary
groups and the ones kiddies create. "Everything" here meaning groups and
hierarchies like houston.*, k12.*, law.*, etc.
What steps would you use if you wanted to add just the complete Big-8
hierarchies to your server?
> Idea: why wouldn't you pipe the actsync result to mod-active?
> It does not restart all connections after every command.
> Another suggestion would be to use actsyncd (with a "d").
I never thought about that method. I'll give it a try with a few
newsgroups and see how it does. Thanks.
But see above where I mention actsync is difficult between two hosts
when servers use SSL/TLS, password authentication (-A usually will not
work), and ports other than 119 (which could be overcome with the colon).
>> I say this because an earlier trial resulted in hundreds of faulty
>> newgroups in the active file. These were valid group names but had the
>> descriptions from the newsgroups file immediately appended to the group
>> name. I suspect the newsgroups file I used may have had multiple spaces
>> and no tab characters, but I could not verify that. All of them I have
>> do have tabs and not spaces. Perhaps mod-active is broken?
>
> It might. If you find out any example of wrong behaviour, please
> give it and I will try to fix it.
I will if it does this again. It did it on both of the new fast servers.
Several hundred identical corrupted newsgroups in the active file, which
took considerable time (several hours) to straighten out.
Somehow it also removed at least one group which I had to manually add
back in with ctlinnd newgroup. Amazingly none of the articles were lost.
It is a CNFS group if that matters (no real "file" was deleted, like
tradspool article files or the group directory would have been).
>> Is there a difference between docheckgroups for INN 2.4.3, 2.4.5 and
>> 2.5.2?
>
> Yes. For instance the new "-u" flag.
Of course, but I meant something like a patch, maybe it was
innshellvars? I noticed a reference to that somewhere, which appeared to
possibly be a prior fix you provided. But I can't find it now.
I gotta hit the bed. Been up far too many hours. Maybe you'll wake up
and give me a shove in the right direction. ;-)
TIA.
--
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:
<ie9aic$qd8$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eweka.nl!hq-usenetpeers.eweka.nl!news.glorb.com!news2.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<ie88v7$hg8$1@n102.xanadu-bbs.net> <ie8fp1$ep3$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <ie9aic$qd8$1@n102.xanadu-bbs.net> Subject: Re: docheckgroups et al Date: Tue, 14 Dec 2010 20:53:00 -0600 From: "John F. Morse" <john@example.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ie8fp1$ep3$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!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!eweka.nl!hq-usenetpeers.eweka.nl!news.glorb.com!news2.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 168 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: n102.xanadu-bbs.net 1292381580 27048 192.168.89.210 (15 Dec 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Wed, 15 Dec 2010 02:53:00 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <ie8fp1$ep3$1@news.trigofacile.com> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 8243