Article View: news.software.nntp
Article #83784Re: docheckgroups et al
From: Russ Allbery
Date: Tue, 04 Jan 2011 17:38
Date: Tue, 04 Jan 2011 17:38
91 lines
5227 bytes
5227 bytes
"John F. Morse" <john@example.invalid> writes:
> For the test I copied a newsgroups file that I had downloaded from the ISC
> on 20101223:
> news@n102:/var/lib/news$ wc newsgroups-ISC
> 45959 236510 2514617 newsgroups-ISC
> news@n102:/var/lib/news$
> It contains 45959 newsgroup descriptions as shown above.
> Then I ran docheckgroups twice, using two different input methods.
> news@n102:/var/lib/news$ cat newsgroups-ISC | docheckgroups
> news@n102:/var/lib/news$
> news@n102:/var/lib/news$ docheckgroups < newsgroups-ISC
> news@n102:/var/lib/news$
> Using either form of input, docheckgroups does nothing but return the
> prompt after about one second:
So apparently you've already synchronized your active file with the ISC
one and there's nothing to change. Given that you've mentioned that
you're running actsync already, that doesn't surprise me. Did you not
expect this behavior?
> I made the input file smaller by cutting out all but 10 lines from the
> newsgroups-ISC file and saved it as "newsgroups-ISC_small":
> news@n102:/var/lib/news$ head newsgroups-ISC > newsgroups-ISC_small | wc
> -l newsgroups-ISC_small
> 10 newsgroups-ISC_small
> news@n102:/var/lib/news$
> Then I ran docheckgroups with this smaller ten-line newsgroup file, and it
> created over 34 thousand lines of corrections and needed changes,
> basically listing the complete alt.* hierarchy, plus my local groups which
> are listed in /etc/news/localgroups.
Well, yes. You created a checkgroups for the alt.* hierarchy that
contained only ten groups and then applied it. docheckgroups dutifully
wanted to remove every other group in the alt.* hierarchy. A checkgroups
is a complete list of the groups in the hierarchy, and applying a
checkgroups for a hierarchy will remove groups on the server in that
hierarchy that aren't listed in the checkgroups.
> It listed 6876 groups for removal. This would have been a catastrophe had
> I been piping this into mod-active!
Well, yes. Among other things that would be a catastrophe would be for
you to randomly rm -rf parts of your server. So don't do that! :)
> Sadly, this is what actually happened to some 900 alt.* groups a couple
> of weeks ago, and the reason for my posting.
You downloaded a newsgroups file, edited it to remove groups that are
already on your server, and ran it through docheckgroups, and then had
problems because the groups you deleted from the checkgroups were removed
from your server?
That's what you demonstrated in this message, so if what happened a couple
of weeks ago was something different, unfortunately this message didn't
help much in figuring out what happened.
> So it appears docheckgroups still has a problem running when using a large
> newsgroup comparison file.
> Then it creates a big mess when the file is small enough to allow
> docheckgroups to actually run.
I don't believe you've demonstrated either of those things. In both
cases, it seems to have done what I would have expected it to do. But
maybe you know there are groups in the large ISC newsgroups file that you
don't have on your server?
> It doesn't appear to recognize the /etc/news/localgroups list.
> It wants to change two local moderated groups to "y" from "m" -- these
> groups have "(no posting)" instead of "(Moderated)" in their descriptions,
> which might be the problem. If I changed them to "n" I'd probably still
> receive the docheckgroups attempt to change them to "y" wouldn't I?
Are these two paragraphs talking about the same issue, or are they two
different things?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87r5csmuwk.fsf@windlord.stanford.edu>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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!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> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net> <ifvkrk$tqg$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <87r5csmuwk.fsf@windlord.stanford.edu> Subject: Re: docheckgroups et al Date: Tue, 04 Jan 2011 09:38:19 -0800 From: Russ Allbery <rra@stanford.edu> 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> <ifth0a$92v$1@n102.xanadu-bbs.net> <8of2b7FqphU1@mid.individual.net> <ifvkrk$tqg$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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 91 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet-its.stanford.edu 1294162699 25745 171.67.225.134 (4 Jan 2011 X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:bWXwoGDhHujA0GlOojSKJA10+Ko= X-Original-Bytes: 5000