Article View: news.software.nntp
Article #83710Re: docheckgroups et al
From: John F. Morse
Date: Sat, 18 Dec 2010 12:32
Date: Sat, 18 Dec 2010 12:32
240 lines
11700 bytes
11700 bytes
Hi Julien,
>> 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.
>
> These are delicate operations. Do you also synchronize your overview
> data to make it aware of the new newsgroups?
I cannot answer that, Julien. Off-hand I wouldn't know how to do it, and
therefore don't remember doing it in the past. It's been many months
since I used the paste-into-active method.
Perhaps the syncing is done at midnight, or with an rc.news start/stop
or ctlinnd reload or xexec innd? I just don't remember. Sorry.
All I can say is the servers have always seemed to be working just fine
after the edits of the active file. I see the new groups when checking
with a newsreader, and can access the articles without problems.
>> What steps would you use if you wanted to add just the complete Big-8
>> hierarchies to your server?
>
> Take the last checkgroups of the hierarchy (in control.checkgroups)
> and process it.
Where is this control.checkgroups file?
If it is the control.checkgroups group on my servers, I can't access it
because it is in CNFS. I don't have a Message-ID to use in grephistory
to obtain the token. Without that, I don't know how to read any article
in the group.
I can't find any archived checkgroups files at the ISC site. Are they
(still) there?
As a side note, I also can no longer locate the history (charter
messages) which created the groups. Did the ISC remove this?
I have a few checkgroups messages in my e-mail archive, but those are
very limited and for only a few small hierarchies.
Hierarchies vs. groups: Then how many hierarchies are there? I count
25,592 newsgroups from the 45,963 total ISC groups (without the alt.*
hierarchy of 20,371 groups) but I don't know just how many hierarchies
there are. I do know there are many and it would be very time consuming
to manually add groups by using each hierarchy.
The obvious solution would be to use a regex pattern like "^c\..*$"
(example for hierarchies beginning with the letter "c"), but so far,
that fails. Maybe the too many variables awk/grep/egrep/sed problem
mentioned at:
https://groups.google.com/group/news.software.nntp/browse_thread/thread/43bf5cc8836e49d
http://inn.eyrie.org/trac/export/8433/trunk/control/docheckgroups.in
(There may be that mention of innshellvars that I remembered seeing and
mentioned earlier.)
> You could feed it to controlchan. I think "controlchan
> /path/to/the/file"
> works. The file is the whole article (headers + body with checkgroups).
>
> (Of course docheckgroups would work on the list of groups.)
I wish it could. I can't seem to get it to work.
>> 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).
>
> Maybe you could try to wrap the call to actsync into stunnel?
> (I have not tested.)
Stunnel would be possible, but it would be simpler to just use ssh and
edit the active file directly on the servers, and I don't like doing that.
I do use Stunnel for accessing several various services from the WAN,
and for using Pan and other non-SSL/TLS equipped newsreaders on the LAN,
but not for inter-server tunneling.
Even worse, the -A option in actsync will not authenticate. I only get
one local group ("info") which doesn't require passwd authentication.
Perhaps my syntax is not correct, but I've tried the command various
ways. I'm not prompted for authentication, and supplying a
username:password combination somewhere in the command causes the
command to fail entirely.
Without authentication I cannot use actsync (to a different server). Now
I could use actsync on an active file and a copy of an active file, but
I could also use that active file to create a ctlinnd newgroup file by
using docheckgroups for use with mod-active.
Then there is another problem: the docheckgroups output cannot be piped
or directed into mod-active. Or more accurately, it doesn't work for me.
No errors, just active is not modified.
But I can run docheckgroups and redirect the output to a file. Then cut
all the pertinent lines of "\t/usr/lib/news/bin/ctlinnd newgroup
{group}" and save them in another textfile. Then I can feed that file
into mod-active. The server accepts those newgroups immediately, and
doesn't log each one.
This works great, is very fast, but I am performing many extra steps,
and having to use five individual files to keep docheckgroups from
gagging on too many egrep values.
Multiply this work on one server by the number of servers (5), and you
can see why the job took around eight hours yesterday!
If you are curious, here are the steps I had to use:
I started with the ISC Newsgroups file on a workstation computer. I
broke it down into eight separate "newsgroups_{alpha-range}" files to
eliminate the egrep overload.
I rsynced these eight files to one INN news server where I could use
docheckgroups on each one. This generated eight
"docheckgroups_{alpha-range}" files.
Then I copied these back to the workstation and removed all lines of
text other than the actual ctlinnd newgroup command lines.
Being smaller, they were then recombined into five
"combined_newgroup_{alpha-range}" files.
These five files were then rsynced to each of the five news servers into
the /var/lib/news directory.
At this point I used "mod-active < combined_newgroup_{alpha-range}" to
do the actual modification of the active file (on each of the five
files, and on each of the five servers).
Quite a bit of work, time-consuming, but faster and safer than direct
edits of the active files on five servers.
Here is what the file listing looks like on the workstation:
john@noc:~/Desktop/newsgroups$ ls -al
total 5788
drwxr-xr-x 2 john john 4096 2010-12-18 05:12 .
drwxrwxrwx 4 john john 4096 2010-12-18 05:12 ..
-rw-r--r-- 1 john john 52164 2010-12-18 05:02 combined_newgroup_a-b_no-alt
-rw-r--r-- 1 john john 106651 2010-12-17 08:53 combined_newgroup_c-e
-rw-r--r-- 1 john john 479566 2010-12-17 06:46 combined_newgroup_f
-rw-r--r-- 1 john john 414951 2010-12-17 07:59 combined_newgroup_g-q
-rw-r--r-- 1 john john 217420 2010-12-17 08:00 combined_newgroup_r-z
-rw-r--r-- 1 john john 39074 2010-12-18 04:54 docheckgroups_a-b_no-alt
-rw-r--r-- 1 john john 197272 2010-12-17 05:35 docheckgroups_c
-rw-r--r-- 1 john john 82431 2010-12-17 06:26 docheckgroups_d-e
-rw-r--r-- 1 john john 1169908 2010-12-17 06:45 docheckgroups_f
-rw-r--r-- 1 john john 382046 2010-12-17 06:57 docheckgroups_g-k
-rw-r--r-- 1 john john 640072 2010-12-17 07:15 docheckgroups_l-q
-rw-r--r-- 1 john john 516272 2010-12-17 07:29 docheckgroups_r-u
-rw-r--r-- 1 john john 32715 2010-12-17 07:38 docheckgroups_v-z
-rw-r--r-- 1 john john 51702 2010-12-17 05:20 newsgroups_a-b_no-alt
-rw-r--r-- 1 john john 127393 2010-12-17 05:28 newsgroups_c
-rw-r--r-- 1 john john 78114 2010-12-17 06:20 newsgroups_d-e
-rw-r--r-- 1 john john 426485 2010-12-17 06:34 newsgroups_f
-rw-r--r-- 1 john john 169026 2010-12-17 06:53 newsgroups_g-k
-rw-r--r-- 1 john john 305817 2010-12-17 07:04 newsgroups_l-q
-rw-r--r-- 1 john john 283551 2010-12-17 07:23 newsgroups_r-u
-rw-r--r-- 1 john john 15671 2010-12-17 07:36 newsgroups_v-z
Then I removed all those extra work files from each server.
Lastly I took a pristine newsgroups file from the ISC, added my local
groups information (which I archive in a text file), cleaned up all
multiple spaces into tabs, and rsynced that file to each server. Not
that newsgroups is any value on the transit servers, but it is available
for future docheckgroups if I can ever get that to function as designed
and documented.
The work here, for now, is nearly finished. The last job remaining is to
take the ISC's alt.* hierarchy and weed out the garbage, and binaries of
various spellings, then add it into the servers (the newsgroups files
will already be current).
I am also using the wanttrash and Aj features on the main transit
server, so if I don't have the groups in the active file, they will
still propagate to peers according to their requested newsfeeds
subscriptions. So far I haven't seen very many unwanted "j" entries in
the news log.
All servers are CNFS so the additional load will not fill up a hard
disk. Retention right now is 574 days on the main reader server, and 52
days on the main transit server.
>>>> 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.
>
> Do you mean that patch?
> http://inn.eyrie.org/trac/changeset/8320/trunk/scripts/innshellvars.in
>
> Export a "C" value for LC_CTYPE so as to treat all input
> as a stream of bytes in our scripts.
> Problems are for instance triggered off by docheckgroups on
> UTF-8 systems when it receives a ISO-8859-15 checkgroups
> control message: sed regexps do not match what they should.
I don't think that is what I noticed. See the reference up above.
> Take care, with the very cold weather you have at your side.
Two days of HVAC servicemen (actually "boys") scratching their heads and
reprogramming, finally gave me heat.
But the question still remains: what actually caused the thermostat's
interface unit to forget the settings?
Reprogramming is treating the symptom, but there is still the disease to
locate and fix.
I'll wait until a warmer season and demand they return and find the
actual cause and fix it -- before the warranty runs out. ;-)
--
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:
<iei9kc$94d$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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!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> <ie9aic$qd8$1@n102.xanadu-bbs.net> <ieb5km$f3l$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <iei9kc$94d$1@n102.xanadu-bbs.net> Subject: Re: docheckgroups et al Date: Sat, 18 Dec 2010 06:32:12 -0600 From: "John F. Morse" <john@example.invalid> References: <ie88v7$hg8$1@n102.xanadu-bbs.net> <ie8fp1$ep3$1@news.trigofacile.com> <ie9aic$qd8$1@n102.xanadu-bbs.net> <ieb5km$f3l$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!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 240 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: n102.xanadu-bbs.net 1292675532 9357 192.168.89.210 (18 Dec 2010 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 18 Dec 2010 12:32:12 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <ieb5km$f3l$1@news.trigofacile.com> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 11523