🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83706

docheckgroups et al

#83706
From: John F. Morse
Date: Tue, 14 Dec 2010 17:19
177 lines
8309 bytes
I cannot get docheckgroups to output the differences between my
newsgroups and active files, and downloaded copies of the newsgroups
file from isc.org.

My notes from an old INN 2.4.3 server last year shows it did run:

------------------------------------------------------------------------

news@optima7:/var/lib/news$ date ; cat newsgroups |
/usr/lib/news/bin/docheckgroups ; date
Mon Apr 27 09:21:29 CDT 2009

Mon Apr 27 10:36:57 CDT 2009
news@optima7:/var/lib/news$

# Change these lines:
#   comp.parallel        Massively parallel hardware/software. (Moderated)
#   comp.protocols.dns.bind    Berkeley Internet Name Domain (BIND).
(Moderated)
#   comp.unix.bsd.freebsd.announce    Announcements pertaining to
FreeBSD. (Moderated)
#   comp.unix.bsd.netbsd.announce    Announcements pertaining to NetBSD.
(Moderated)
#   comp.unix.bsd.openbsd.announce    OpenBSD announcements. (Moderated)
#   info.bind        *The Berkeley BIND server (bind@arpa.berkeley.edu).
(Moderated)
#   linux.debian.announce    debian-announce@lists.debian.org (Moderated)
#   linux.debian.announce.devel   
debian-devel-announce@lists.debian.org (Moderated)
#   linux.debian.announce.security   
debian-security-announce@lists.debian.org (Moderated)
#   linux.debian.beowulf    debian-beowulf@lists.debian.org (Moderated)
#   linux.debian.doc    debian-doc@lists.debian.org (Moderated)
#   linux.debian.isp    debian-isp@lists.debian.org (Moderated)
#   linux.debian.laptop    debian-laptop@lists.debian.org (Moderated)
#   linux.debian.maint.boot    debian-boot@lists.debian.org (Moderated)
#   linux.debian.maint.dpkg    debian-dpkg@lists.debian.org (Moderated)
#   linux.debian.maint.firewall    debian-firewall@lists.debian.org
(Moderated)
#   linux.debian.news    debian-news@lists.debian.org (Moderated)
#   linux.debian.policy    debian-policy@lists.debian.org (Moderated)
#   linux.debian.ports.68k    debian-68k@lists.debian.org (Moderated)
#   linux.debian.ports.powerpc    debian-powerpc@lists.debian.org
(Moderated)
#   linux.debian.project    debian-project@lists.debian.org (Moderated)
#   linux.debian.security    debian-security@lists.debian.org (Moderated)
#   linux.debian.user    debian-user@lists.debian.org (Moderated)
#   linux.debian.www    debian-www@lists.debian.org (Moderated)
#   linux.samba        samba@lists.samba.org (Moderated)
#   linux.samba.announce    samba-announce@lists.samba.org (Moderated)
#   rec.radio.broadcasting    Discussion of global domestic broadcast
radio. (Moderated)

Mon Apr 27 10:36:57 CDT 2009

------------------------------------------------------------------------

However I cannot get this to work on INN 2.4.5 nor 2.5.2. Here's what
INN 2.4.5 shows:

news@optima11:/var/lib/news$ date ; cat newsgroups |
/usr/lib/news/bin/docheckgroups ; date
Tue Dec 14 10:07:18 CST 2010
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
Tue Dec 14 10:07:35 CST 2010

------------------------------------------------------------------------

When I run it against the downloaded newsgroup file from ISC, it does
identically:

news@optima11:/var/lib/news$ date ; cat 'newsgroups-ISC_20101214-45962'
| /usr/lib/news/bin/docheckgroups ; date
Tue Dec 14 10:08:52 CST 2010
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
Tue Dec 14 10:09:12 CST 2010

------------------------------------------------------------------------

Another way to run it also returns the same egrep errors:

news@optima11:/var/lib/news$ date ; docheckgroups <
newsgroups-ISC_20101214-45962 ; date
Tue Dec 14 10:10:29 CST 2010
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
egrep: Unmatched ) or \)
Tue Dec 14 10:10:45 CST 2010

------------------------------------------------------------------------

Run either way on a INN 2.5.2 box it silently does nothing:

news@n102:/var/lib/news$ date ; cat newsgroups |
/usr/lib/news/bin/docheckgroups ; date
Tue Dec 14 10:12:00 CST 2010
Tue Dec 14 10:12:00 CST 2010
news@n102:/var/lib/news$

news@n102:/var/lib/news$ date ; docheckgroups <
newsgroups-ISC_20101214-45962 ; date
Tue Dec 14 10:13:29 CST 2010
Tue Dec 14 10:13:29 CST 2010
news@n102:/var/lib/news$

------------------------------------------------------------------------

The purpose of using docheckgroups locally is to see what I need to do
to update my active file with missing groups.

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.

The docheckgroups command seems to just do the work when the output is
piped into mod-active, without leaving behind miles of logs, malformed
group names, etc.

If the docheckgroups groups output is what I really want, then I can run
it a second time with the -u option and with the pipe to mod-active
without worry of losing groups.

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?

Is there a difference between docheckgroups for INN 2.4.3, 2.4.5 and
2.5.2? I see a docheckgroups change at 2.4.4, but don't believe it would
affect this.

The unmatched egrep errors may be in the existing newsgroups file (or
perhaps ISC's). The files are far too large to search manually, and I
don't know how to do it otherwise.

I would rather just ignore newsgroups and work with only the active
file. I can always simply wget a current newsgroups file, and add my
local group descriptions, which I've always done in the past.

Any suggestions on how to update the local active files (or in
hierarchical parts or stages, using a pattern like docheckgroups
"^c\..*$") with the current ISC active file?

I certainly do not want to throttle a server, copy and paste ranges of
the ISC's active file text into the working active file, reload, go,
etc., and on multiple remote servers. Not a good method at all. :-(

BTW, received control checkgroups messages are working just fine.

With that in mind, perhaps the local ISC copy needs to be formatted as a
"here-document" (something unusual like <<zRbJ inserted at beginning and
end), or can it be used as-is?

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: <ie88v7$hg8$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!xlned.com!feeder1.xlned.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

Show Full Headers
Complete Article Headers
Message-ID: <ie88v7$hg8$1@n102.xanadu-bbs.net>
Subject: docheckgroups et al
Date: Tue, 14 Dec 2010 11:19:34 -0600
From: "John F. Morse" <john@example.invalid>
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!xlned.com!feeder1.xlned.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: 177
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 1292347175 17928 192.168.89.210 (14 Dec 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Tue, 14 Dec 2010 17:19:35 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 8060