Thread View: news.software.nntp
18 messages
18 total messages
Started by John Newman
Mon, 24 Apr 2000 00:00
changing numbering in active file
Author: John Newman
Date: Mon, 24 Apr 2000 00:00
Date: Mon, 24 Apr 2000 00:00
10 lines
1011 bytes
1011 bytes
I need to change the numbering in my active file on my INN 2.2 transit server to match that of my reader box. Can anyone think of anything that this will break? It seems to me that since this is just a transit server with no reading going on changing the article numbering won't affect anything... -- John Newman
Re: changing numbering in active file
Author: Russ Allbery
Date: Mon, 24 Apr 2000 00:00
Date: Mon, 24 Apr 2000 00:00
20 lines
1552 bytes
1552 bytes
Abby Franquemont <abby@eniac.stanford.edu> writes: > As for me, I just have to figure out why the renumber in news.daily > (that didn't suddenly go away, or anything, did it?) is not actually > renumbering. ;-) 'Cause otherwise I'm renumbering with individual > ctlinnds anytime I catch the stupid box throttling. Hm. You shouldn't need renumber in news.daily any more; you should only need lowmark, which increases the low article mark. innd will manage the high article mark itself, or should. I don't know how you could get articles in the spool with higher numbers than is accounted for in the active file range unless you manually populated the spool, and ctlinnd renumber '' should really fix that. Maybe tradspool isn't handling that quite right? -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: changing numbering in active file
Author: Abby Franquemont
Date: Mon, 24 Apr 2000 00:00
Date: Mon, 24 Apr 2000 00:00
34 lines
2400 bytes
2400 bytes
In article <8e20e0$r12$1@news.jump.net>, John Newman <jnn@jump.net> wrote: >I need to change the numbering in my active file on my INN 2.2 transit >server to match that of my reader box. Can anyone think of anything >that this will break? It seems to me that since this is just a transit >server with no reading going on changing the article numbering won't >affect anything... Out of curiousity, why does it matter if your reader box and feeder box have matching active file info? And wouldn't your feeder box naturally have different data in the active file anyway, because you would have a different lomark than your reader box presumably would, unless you were actually spooling stuff for any length of time on your feeder box, which, why would you? Anyway, while I can't speak to anything really all that current, the thing that strikes me as an obvious potential gotcha is the thing I'm running into right now after salvaging what I could of my active file following an unexplained hosure (running the April 16th INN 2.3 beta). Some newsgroup entry himarks are lower than the numbers used for article filenames on spool. Thus, when an article for one of those groups arrives, the server checks the active file, decides to use the next number in sequence for a filename, but uh-oh, that file exists, and the server throttles. So if you're going to pick one set of numbers to use, use the higher ones. As for me, I just have to figure out why the renumber in news.daily (that didn't suddenly go away, or anything, did it?) is not actually renumbering. ;-) 'Cause otherwise I'm renumbering with individual ctlinnds anytime I catch the stupid box throttling. -- Abby Franquemont Systems Software Developer abby@highwire.stanford.edu HighWire Press, Stanford University
Re: changing numbering in active file
Author: rmtodd
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
25 lines
2176 bytes
2176 bytes
abby@eniac.stanford.edu (Abby Franquemont) writes: > Actually, it looks like renumber doesn't update himark. Didn't it > useta do that? I'd swear it did. For alt.guitar.effects, for instance, > I have up to 10093 on spool -- but even after a ctlinnd renumber it's not > updating the active file entry to reflect those, and my active file entry > reads: > > alt.guitar.effects 0000010031 0000010002 y > > Obviously, I could manually tweak this, but yuck. So the question is: > should renumber update himark, or is there a reason it doesn't? Which version of INN are you using? On 2.3, ctlinnd renumber just updates the active files lo/high counts from those stored in the overview system's group.index file (since the overview code needs to keep up-to-date article number bounds anyway). The downside is that if the overview system doesn't know about those extra articles, neither will ctlinnd renumber, and you'll need to do something like 'makehistory -x -O' to rebuild the overview and then ctlinnd renumber to get everything straightened out. If you're running 2.2 or earlier, ignore everything I just said. :-)
Re: changing numbering in active file
Author: Abby Franquemont
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
76 lines
4364 bytes
4364 bytes
In article <ylbt2zni4g.fsf@windlord.stanford.edu>, Russ Allbery <rra@stanford.edu> wrote: >Abby Franquemont <abby@eniac.stanford.edu> writes: > >> As for me, I just have to figure out why the renumber in news.daily >> (that didn't suddenly go away, or anything, did it?) is not actually >> renumbering. ;-) 'Cause otherwise I'm renumbering with individual >> ctlinnds anytime I catch the stupid box throttling. > >Hm. You shouldn't need renumber in news.daily any more; you should only >need lowmark, which increases the low article mark. innd will manage the >high article mark itself, or should. > >I don't know how you could get articles in the spool with higher numbers >than is accounted for in the active file range unless you manually >populated the spool, and ctlinnd renumber '' should really fix that. >Maybe tradspool isn't handling that quite right? Nah, I had a mysterious active file corruption take place, and lost about a hundred entries -- but I had an active file from about an hour previous which had the right data, so I threw the missing lines from the old one into the corrupt one in the course of repair (I've done this kind of thoroughly stupid thing and had it work fine under older INNs). But, since there were articles that had come in for some of those groups whose entries were whacked, during that hour, the entries which had vanished from my active didn't match the entries from the hour-old active. ;-) So let's say I lost the entry for news.froups.whinging, which said: news.froups.whinging 0000062175 0000061996 y and I replaced it with: news.froups.whinging 0000062150 0000061966 y Then, when the next article for news.froups.whinging arrived, with the himark set to 62150, the next article would be 62151, but there's already $spooldir/62151 sitting there, so next thing you know: Server throttled File exists writing SMstore file -- throttling Because SMstore can't write a file that already exists. This was true in old INN too, INN couldn't write it any more than SMstore, in INN 1.3 through INN 1.7, but the fix I used in those days was just to run the renumber in news.daily, which renumbered all froups, updating both lomark and himark. So, I naively skimmed the current man pages, concluded that renumber should work roughly the same (which it does when issued manually) and checked to be sure my news.daily was expecting to do a renumber, and then just ran that figuring it'd take care of the problem like it always useta back when I was an actual real-live sysadmin. Anyway at this point it looks like "ctlinnd renumber" works as I expected but the renumber in news.daily doesn't happen like it used to, and my sh is rusty as hell so I haven't tracked down why that is as of yet (since I also got sidetracked by actual work). Anyway, so I probably am going to throw together some kind of perl fixactive script, which does roughly what makeactive used to do, except that it will only create entries for an active file for directories which contain actual article files... which of course won't be useful at all to anyone who isn't running tradspool, but it would be the right recovery tool for me to have if I ever again encounter this particular unexplained active file hosure. Oh, as to what the active file hosure involved: somehow, no clue how, the file stayed exactly the same size but a hundred or so lines were replaced with a piece of mail that had been archived by majordomo about a year ago. Really, no kidding. I haven't even got a theory. -- Abby Franquemont Systems Software Developer abby@highwire.stanford.edu HighWire Press, Stanford University
Re: changing numbering in active file
Author: Abby Franquemont
Date: Tue, 25 Apr 2000 00:00
Date: Tue, 25 Apr 2000 00:00
15 lines
1290 bytes
1290 bytes
Actually, it looks like renumber doesn't update himark. Didn't it useta do that? I'd swear it did. For alt.guitar.effects, for instance, I have up to 10093 on spool -- but even after a ctlinnd renumber it's not updating the active file entry to reflect those, and my active file entry reads: alt.guitar.effects 0000010031 0000010002 y Obviously, I could manually tweak this, but yuck. So the question is: should renumber update himark, or is there a reason it doesn't? -- Abby Franquemont Systems Software Developer abby@highwire.stanford.edu HighWire Press, Stanford University
Re: changing numbering in active file
Author: Abby Franquemont
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
121 lines
6057 bytes
6057 bytes
In article <868zy0po41.fsf@amonduul.ecn.ou.edu>,
rmtodd <rmtodd@amonduul.ecn.ou.edu> wrote:
>abby@ucan.foad.org (Abby Franquemont) writes:
>>
>> I'm letting INN create overview data rather than using overchan (which
>> I actually know better). Shouldn't articles which INN accepted before
>> the active file got hosed, but after my last good active file that I used
>> to restore parts that were lost, have had overview data stored?
>
>They should have, yes.
Hrmmm. Well, hrmm. Next time I see it I'll go through the overview.DAT
for the group in question, before and after the renumber, to see if that
is in fact failing for some reason. It's possible that I had overview
corruption simultaneous with active corruption.
>> And, of more immediate interest to me since it would also address the
>> other thing I'm toying with (getting old articles from a transitioned
>> 1.7 spool into the overview data so they're visible to readers), is
>> there a method for looking at what's on the spool and getting that
>> lock, stock, and barrel into the overviews? It seems as if makehistory
>> only does so for articles received after the most current changes to
>> storage.conf, which is certainly valid, but if there's a means of
>
>No, makehistory always scans the entire spool (or at least all spool
>areas listed in your storage.conf), and the sample command line I gave
>should do that. I'm not clear on what you mean by "most current changes
>in storage.conf" here.
Well. Actually it's the only storage.conf I've ever had. But the stuff
from my legacy spool, I still haven't been able to get into overviews.
Into the history file, yes -- but for some reason I can't track down,
not into the overviews.
Here's what happens: I run makehistory -bu -O -f filename. Unless I've
missed something, that's -b, remove articles without valid message-ids,
-u, assume innd is running, -O, create overviews too, -f for alternate
filename.
Anyway, the makehistory runs and I get a slew of:
makehistory[29592]: tradspool: can't determine class:
@0500000002510001C8EC0000000000000000@
So, I do "sm @0500000002510001C8EC0000000000000000@" to see what I can see:
Not found. My guess has been that these items are legacy spool items,
for which the storage class cannot be determined for some reason. What
that reason might be escapes me in this case though -- at a wild guess,
the storage manager just plain doesn't know about the legacy spool items.
Similarly, an article from my legacy spool...
Message-ID: <65fo00$isj$1@ucan.foad.org>, which is article 1 from my
local newsgroup foad.splat, posted 25 Nov 1997 (I've been schlepping
pieces of this spool around since I was running 1.4unoff4, about 4
actual physical servers ago, and 3 OS changes ago), and I do a grephistory
for that message-ID:
ucan# ls -al /news/foad/splat/1
-rwxrwxr-x 1 news news 303 Nov 25 1997 /news/foad/splat/1
ucan# head /news/foad/splat/1
Path: ucan.foad.org!nntpbitches-r-us
From: abby@foad.org
Newsgroups: foad.splat
Subject: Testing
Date: 25 Nov 1997 23:46:08 GMT
Organization: Brute Force Cybernetics
Lines: 4
Message-ID: <65fo00$isj$1@ucan.foad.org>
NNTP-Posting-Host: ucan.foad.org
Xref: ucan.foad.org foad.splat:1
That article's there, but I can't get it into the history file or the
overviews. And actually, I guess we can throw out the bad lomark theory
as causing a problem since:
foad.splat 0000000406 0000000001 y
I actually reset those local groups already to have the correct lomark.
>> Oh, and also, is there a way to get the news.froup.IDX to update from
>> the news.froup.DAT? If so, then I can definitely turn out a quick and
>
>I don't think so, no.
Thanks.
>> dirty tool that'll index a legacy spool and get it into the overviews
>> even if the storage manager doesn't know about it, I think.
>
>If you have a 'tradspool' entry defined in storage.conf, the storage
>manager is *supposed* to be able to find all the entries in your legacy spool,
>and makehistory should be able to call upon the storage manager to
>find and index all the articles in your legacy spool. At least, that was
>the intention of the guy who wrote tradspool.c; if it doesn't work, we'd
>all like to know why.
Hrmmm. Well, that's how Russ said it was supposed to work too. I wonder
if my active file's lomark everywhere has gotten upped such that it no
longer reflects what's actually on spool, and that could be causing it
to report the error trying to determine the storage class?
The only storage class I'm using is tradspool. I'm using tradindexed.
My storage.conf entry for tradspool:
method tradspool {
class: 1
newsgroups: *
}
*shrug* It's really of academic interest to me I suppose. I would like to
keep my aged spool for my local froups, and the article numbers all the
same, and I managed to swing it moving from 1.4unoff4 on BSDI to 1.5 on
BSDI to 1.7 on OpenBSD and so now, dangitall, I ain't about to let it go
just 'cause I wanted to play with 2.3 on the latest OpenBSD. *grin*
--
Abby Franquemont "I might have amnesia -- but I'm not stupid!"
J. Random BOFH --Jackie Chan
Re: changing numbering in active file
Author: Abby Franquemont
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
43 lines
3042 bytes
3042 bytes
In article <863doane7i.fsf@amonduul.ecn.ou.edu>, rmtodd <rmtodd@amonduul.ecn.ou.edu> wrote: > >Which version of INN are you using? On 2.3, ctlinnd renumber just updates >the active files lo/high counts from those stored in the overview >system's group.index file (since the overview code needs to keep up-to-date >article number bounds anyway). The downside is that if the overview >system doesn't know about those extra articles, neither will >ctlinnd renumber, and you'll need to do something like 'makehistory -x -O' >to rebuild the overview and then ctlinnd renumber to get everything >straightened out. I'm playing with the April 16th (or is it 17th) 2.3 beta. And that does answer my question. Though of course now it raises more. Here we go... I'm letting INN create overview data rather than using overchan (which I actually know better). Shouldn't articles which INN accepted before the active file got hosed, but after my last good active file that I used to restore parts that were lost, have had overview data stored? And, of more immediate interest to me since it would also address the other thing I'm toying with (getting old articles from a transitioned 1.7 spool into the overview data so they're visible to readers), is there a method for looking at what's on the spool and getting that lock, stock, and barrel into the overviews? It seems as if makehistory only does so for articles received after the most current changes to storage.conf, which is certainly valid, but if there's a means of working with this other than makehistory I'd be interested in learning more about it for the sake of my geekly efforts to fully transition my old spool without re-feeding it all to myself with innxmit. >If you're running 2.2 or earlier, ignore everything I just said. :-) Oh, and also, is there a way to get the news.froup.IDX to update from the news.froup.DAT? If so, then I can definitely turn out a quick and dirty tool that'll index a legacy spool and get it into the overviews even if the storage manager doesn't know about it, I think. -- Abby Franquemont "I might have amnesia -- but I'm not stupid!" J. Random BOFH --Jackie Chan
Re: changing numbering in active file
Author: rmtodd
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
38 lines
2847 bytes
2847 bytes
abby@ucan.foad.org (Abby Franquemont) writes: > > I'm letting INN create overview data rather than using overchan (which > I actually know better). Shouldn't articles which INN accepted before > the active file got hosed, but after my last good active file that I used > to restore parts that were lost, have had overview data stored? They should have, yes. > And, of more immediate interest to me since it would also address the > other thing I'm toying with (getting old articles from a transitioned > 1.7 spool into the overview data so they're visible to readers), is > there a method for looking at what's on the spool and getting that > lock, stock, and barrel into the overviews? It seems as if makehistory > only does so for articles received after the most current changes to > storage.conf, which is certainly valid, but if there's a means of No, makehistory always scans the entire spool (or at least all spool areas listed in your storage.conf), and the sample command line I gave should do that. I'm not clear on what you mean by "most current changes in storage.conf" here. > Oh, and also, is there a way to get the news.froup.IDX to update from > the news.froup.DAT? If so, then I can definitely turn out a quick and I don't think so, no. > dirty tool that'll index a legacy spool and get it into the overviews > even if the storage manager doesn't know about it, I think. If you have a 'tradspool' entry defined in storage.conf, the storage manager is *supposed* to be able to find all the entries in your legacy spool, and makehistory should be able to call upon the storage manager to find and index all the articles in your legacy spool. At least, that was the intention of the guy who wrote tradspool.c; if it doesn't work, we'd all like to know why.
Re: changing numbering in active file
Author: Katsuhiro Kondou
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
11 lines
1396 bytes
1396 bytes
In article <8e5m05$j69$1@ucan.foad.org>, abby@ucan.foad.org (Abby Franquemont) wrote; } Oh, and also, is there a way to get the news.froup.IDX to update from } the news.froup.DAT? If so, then I can definitely turn out a quick and Currently not. -- Katsuhiro Kondou
Re: changing numbering in active file
Author: Abby Franquemont
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
19 lines
1493 bytes
1493 bytes
In article <8e5q6a$130$1@newstest.mesh.ad.jp>, Katsuhiro Kondou <kondou@isc.org> wrote: >In article <8e5m05$j69$1@ucan.foad.org>, > abby@ucan.foad.org (Abby Franquemont) wrote; > >} Oh, and also, is there a way to get the news.froup.IDX to update from >} the news.froup.DAT? If so, then I can definitely turn out a quick and > >Currently not. Hrmmm. So currently the only method for updating overviews is makehistory? Don't suppose there are any plans for any other methods (or that anyone other than me would be likely to use 'em if there were)? -- Abby Franquemont "I might have amnesia -- but I'm not stupid!" J. Random BOFH --Jackie Chan
Re: changing numbering in active file
Author: rmtodd
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
116 lines
6219 bytes
6219 bytes
abby@ucan.foad.org (Abby Franquemont) writes:
> Here's what happens: I run makehistory -bu -O -f filename. Unless I've
> missed something, that's -b, remove articles without valid message-ids,
> -u, assume innd is running, -O, create overviews too, -f for alternate
> filename.
Okay. That should work, though nuking the old overview data before
starting might be a good idea.
> Anyway, the makehistory runs and I get a slew of:
>
> makehistory[29592]: tradspool: can't determine class:
> @0500000002510001C8EC0000000000000000@
> So, I do "sm @0500000002510001C8EC0000000000000000@" to see what I can see:
> Not found. My guess has been that these items are legacy spool items,
> for which the storage class cannot be determined for some reason. What
> that reason might be escapes me in this case though -- at a wild guess,
> the storage manager just plain doesn't know about the legacy spool items.
Well, the storage manager found the article, but wasn't able to figure out
which storage class (the "class:" # from storage.conf, which goes into
the 2nd byte of each token). So it wasn't able to return a proper token
to the caller (makehistory); the token you saw has a 00 in the class field.
I'm not sure why that is; your storage.conf file that you show below looks
right to me. For some reason the SMgetsub() function is failing. And,
unfortunately, its caller doesn't syslog the exact error string that
SMgetsub set. Grumble Try this patch for more info (and Russ, if you're
reading this, feel free to commit it.
Index: storage/interface.c
===================================================================
RCS file: /home/rmtodd/TempCVS/Temp-CVS-Repository/inn-current/storage/interface.c,v
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 interface.c
--- storage/interface.c 1999/11/21 00:51:40 1.1.1.9
+++ storage/interface.c 2000/04/27 04:01:21
@@ -735,6 +735,7 @@
return sub;
}
}
+ SMseterror(SMERR_UNDEFINED, "No entry in storage.conf matched token");
return NULL;
}
Index: storage/tradspool/tradspool.c
===================================================================
RCS file: /home/rmtodd/TempCVS/Temp-CVS-Repository/inn-current/storage/tradspool/tradspool.c,v
retrieving revision 1.1.1.17
diff -u -r1.1.1.17 tradspool.c
--- storage/tradspool/tradspool.c 2000/04/17 21:35:35 1.1.1.17
+++ storage/tradspool/tradspool.c 2000/04/27 03:57:10
@@ -1144,7 +1144,7 @@
if ((sub = SMgetsub(*art)) == NULL || sub->type != TOKEN_TRADSPOOL) {
/* maybe storage.conf is modified, after receiving article */
token = MakeToken(priv.ngtp->ngname, artnum, 0);
- syslog(L_ERROR, "tradspool: can't determine class: %s", TokenToText(token));
+ syslog(L_ERROR, "tradspool: can't determine class: %s:%s", TokenToText(token), SMerrorstr);
} else {
token = MakeToken(priv.ngtp->ngname, artnum, sub->class);
}
> Similarly, an article from my legacy spool...
>
> Message-ID: <65fo00$isj$1@ucan.foad.org>, which is article 1 from my
> local newsgroup foad.splat, posted 25 Nov 1997 (I've been schlepping
[...]
> That article's there, but I can't get it into the history file or the
> overviews. And actually, I guess we can throw out the bad lomark theory
> as causing a problem since:
Yeah. That and all the stuff that creates history and overview doesn't,
I think, ever look at the active file, apart from tradspool.c reading the
names of the ngs itself.
> Hrmmm. Well, that's how Russ said it was supposed to work too. I wonder
> if my active file's lomark everywhere has gotten upped such that it no
> longer reflects what's actually on spool, and that could be causing it
> to report the error trying to determine the storage class?
Nah. The determination of the storage class is done by SMgetsub() in
storage/interface.c; all it does is basically look at the Xref: or
Newsgroups: line in the article, and try to match that against each
storage.conf entry.
> The only storage class I'm using is tradspool. I'm using tradindexed.
> My storage.conf entry for tradspool:
>
> method tradspool {
> class: 1
> newsgroups: *
> }
>
> *shrug* It's really of academic interest to me I suppose. I would like to
> keep my aged spool for my local froups, and the article numbers all the
> same, and I managed to swing it moving from 1.4unoff4 on BSDI to 1.5 on
> BSDI to 1.7 on OpenBSD and so now, dangitall, I ain't about to let it go
> just 'cause I wanted to play with 2.3 on the latest OpenBSD. *grin*
Well, it's of a bit more of academic interest to me, since I and the other
guys who worked on INN claim this should work, but alas I think most of
the INN developers (including me) switched away from old-spool format
way before 2.2 came out, let alone 2.3-beta, so the tradspool.c may well have
problems when trying to handle an entire old-spool-format tree of articles.
Ooh. I had another idea. What do you have the "wireformat" parameter set
to in storage.conf, and was your existing spool written in wireformat or
not (i.e. are the lines terminated in CRLF (wireformat) or LF (not
wireformat))?
Re: changing numbering in active file
Author: rmtodd
Date: Wed, 26 Apr 2000 00:00
Date: Wed, 26 Apr 2000 00:00
47 lines
3190 bytes
3190 bytes
abby@ucan.foad.org (Abby Franquemont) writes: > Checked the overviews, and ba.market.misc.DAT does contain article 20850: > > 20850 FS: Gretsch Drum Set $1350 "Nerak" <espresso@jazzandjava.com> > Sat, 22 Apr 2000 06:29:44 -0700 <uJhM4.978$yY1.25563@news.inreach.com> > 1220 13 Xref: ucan.foad.org ba.market.misc:20850 ba.music:8587 > rec.music.makers.percussion:104223 > > Did a ctlinnd renumber ba.market.misc, checked the active file: > > ucan# grep ba.market.misc /opt/news/db/active > ba.market.misc 0000020827 0000020777 y The .DAT file contains the article, but either the .IDX file doesn't have that info, or the group.index file is confused, I think. > Hrmmm. Very odd. Also checked history file: > > ucan# grephistory '<uJhM4.978$yY1.25563@news.inreach.com>' > @0501000001E800046C0F0000000000000000@ > Checked the file with sm, and it found a file, but: it was, in point > of fact, Message-ID: <38e8f06c@mindmeld.idcomm.com> and not > <uJhM4.978$yY1.25563@news.inreach.com>. What's even better is that I > did the cutover to the new server April 16th, and the article that > grephistory found was posted April 3, and its Path: header indicates > that it's a legacy spool article to be sure, and not something that > (as if it were likely) spent a couple of weeks bouncing around before > it was actually fed to me. I'm not quite sure what all is going on here. I can, however, give you a bit of information in interpreting that massive string of hex digits that may help find some more clues to the problem. Let's look at that token more closely: @0501000001E800046C0F0000000000000000@ The first hex byte, 05, is the storage type (05 == tradspool). 01 is the storage class, which fits with your tradspool entry in the storage.conf file you showed in the previous message. The next 4 bytes, 000001E8, are the newsgroup number. Find the file "tradspool.map" in the root of your article spool directory. This file holds the mappings between newsgroup numbers and their full names. The next 4 bytes, 00046C0F, are the article number in that newsgroup, so in this case 46C0F or 289807.
Re: changing numbering in active file
Author: Russ Allbery
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
36 lines
2472 bytes
2472 bytes
rmtodd <rmtodd@amonduul.ecn.ou.edu> writes: > Well, the storage manager found the article, but wasn't able to figure > out which storage class (the "class:" # from storage.conf, which goes > into the 2nd byte of each token). So it wasn't able to return a proper > token to the caller (makehistory); the token you saw has a 00 in the > class field. I'm not sure why that is; your storage.conf file that you > show below looks right to me. For some reason the SMgetsub() function > is failing. And, unfortunately, its caller doesn't syslog the exact > error string that SMgetsub set. Grumble Try this patch for more info > (and Russ, if you're reading this, feel free to commit it. Done. > Well, it's of a bit more of academic interest to me, since I and the > other guys who worked on INN claim this should work, but alas I think > most of the INN developers (including me) switched away from old-spool > format way before 2.2 came out, let alone 2.3-beta, so the tradspool.c > may well have problems when trying to handle an entire old-spool-format > tree of articles. I still have a traditional spool and plan to keep one, but I'm planning on moving it to my new system using innxmit rather than trying to read it in place. > Ooh. I had another idea. What do you have the "wireformat" parameter > set to in storage.conf, and was your existing spool written in > wireformat or not (i.e. are the lines terminated in CRLF (wireformat) or > LF (not wireformat))? Now that's a good thought. I bet that's it, actually. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: changing numbering in active file
Author: rmtodd
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
58 lines
3995 bytes
3995 bytes
rmtodd <rmtodd@amonduul.ecn.ou.edu> writes:
> abby@ucan.foad.org (Abby Franquemont) writes:
>
> > Here's what happens: I run makehistory -bu -O -f filename. Unless I've
> > missed something, that's -b, remove articles without valid message-ids,
> > -u, assume innd is running, -O, create overviews too, -f for alternate
> > filename.
>
> Okay. That should work, though nuking the old overview data before
> starting might be a good idea.
Murgle. Obviously nuking the old overview data is a bad idea if you're
running in -u mode (which causes makehistory to look only at articles that
*aren't* already in history.) Obviously I need to consume more caffeine
before posting.
In looking at the man page for makehistory, I see that part of it hasn't
been updated to correspond with the way -u actually works in 2.3, and that
if you believed what the docs said, this could explain some of your problems.
Sorry about that.
Specificially, the section on the -u flag says:
-u If the `-u'' flag is given, then makehistory
assumes that innd is running. It will throttle the
server while scanning, and then send `addhist''
commands (see ctlinnd(8)) to the server for any
article that is not found in the dbz database. The
command `makehistory -bu'' is useful after a sys-
tem crash, to delete any mangled articles and bring
the article database back into a more consistent
state.
This is, unfortunately, almost completely wrong.
1) -u does *not* throttle the server. (Note that throttling the server *isn't*
needed for makehistory to do its overview updates with -O; both tradindexed
and buffindexed overview methods do locking such that both innd and
makehistory can add records without turning the database into spam).
2) -u does not send any addhist commands. It doesn't cause makehistory to
add any records to history itself; all it does is cause makehistory to write
the history data for any "missing" articles it finds to the file you specified
with -f. Once makehistory is done, the user still needs to add the entries
to the history file. This can be done by either
a) cooking up a little shell script to 'ctlinnd addhist' them one at
a time, or
b) (recommended) throttle innd, cat the file onto the end of history,
rebuild the .dir/.pag files with makedbz, and unthrottle innd.
b) is recommended as, if there's any significant number of missing articles
to be added, you may be waiting for the addhists to finish until Hell freezes
over. The ctlinnd interface just isn't suitable for trying to cram large
amounts of information down innd's throat (see recent discussion on
inn-workers on why 'ctlinnd cancel' doesn't cut it as a way to implement
NoCeM type services).
Re: changing numbering in active file
Author: Abby Franquemont
Date: Thu, 27 Apr 2000 00:00
Date: Thu, 27 Apr 2000 00:00
78 lines
3836 bytes
3836 bytes
In article <8e7qub$b9g$1@ucan.foad.org>, Abby Franquemont <abby@foad.org> wrote: >In article <868zy0po41.fsf@amonduul.ecn.ou.edu>, >rmtodd <rmtodd@amonduul.ecn.ou.edu> wrote: [I asked about overview creation] >>They should have, yes. > >Hrmmm. Well, hrmm. Next time I see it I'll go through the overview.DAT >for the group in question, before and after the renumber, to see if that >is in fact failing for some reason. It's possible that I had overview >corruption simultaneous with active corruption. Hokay, I ran into it again and gathered up more data. Diagnosed: ucan# ctlinnd mode Server throttled File exists writing SMstore file -- throttling Allowing remote connections Parameters c 14 i 50 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 normal specified Not reserved Readers separate disabled File exists writing SMstore file -- throttling Perl filtering enabled Grabbed the error from the log file... ucan# grep tradspool /var/log/messages Apr 26 15:27:34 ucan innd: tradspool: could not open /news/ba/market/misc/20827 File exists Checked my active file... ucan# grep ba.market.misc /opt/news/db/active ba.market.misc 0000020827 0000020777 y Checked the spool: high numbered article is 20850. Checked the overviews, and ba.market.misc.DAT does contain article 20850: 20850 FS: Gretsch Drum Set $1350 "Nerak" <espresso@jazzandjava.com> Sat, 22 Apr 2000 06:29:44 -0700 <uJhM4.978$yY1.25563@news.inreach.com> 1220 13 Xref: ucan.foad.org ba.market.misc:20850 ba.music:8587 rec.music.makers.percussion:104223 Did a ctlinnd renumber ba.market.misc, checked the active file: ucan# grep ba.market.misc /opt/news/db/active ba.market.misc 0000020827 0000020777 y Hrmmm. Very odd. Also checked history file: ucan# grephistory '<uJhM4.978$yY1.25563@news.inreach.com>' @0501000001E800046C0F0000000000000000@ Checked the file with sm, and it found a file, but: it was, in point of fact, Message-ID: <38e8f06c@mindmeld.idcomm.com> and not <uJhM4.978$yY1.25563@news.inreach.com>. What's even better is that I did the cutover to the new server April 16th, and the article that grephistory found was posted April 3, and its Path: header indicates that it's a legacy spool article to be sure, and not something that (as if it were likely) spent a couple of weeks bouncing around before it was actually fed to me. So I've plainly managed to find a fun way to break beta software. I would hazard a guess that my history file is hosed, the alternative being that grephistory doesn't work right. However if the history file is hosed, it's a good bet it became hosed with the makehistory I ran a couple of hours back. So, I'm intrigued. Renumber doesn't seem to rebuild from the overview data unless the .IDX isn't in sync with the .DAT, but I have other problems too. Heh. More as I figure it out. -- Abby Franquemont "I might have amnesia -- but I'm not stupid!" J. Random BOFH --Jackie Chan
Re: changing numbering in active file
Author: Russ Allbery
Date: Fri, 28 Apr 2000 00:00
Date: Fri, 28 Apr 2000 00:00
42 lines
2880 bytes
2880 bytes
rmtodd <rmtodd@amonduul.ecn.ou.edu> writes: > In looking at the man page for makehistory, I see that part of it hasn't > been updated to correspond with the way -u actually works in 2.3, and > that if you believed what the docs said, this could explain some of your > problems. Sorry about that. > Specificially, the section on the -u flag says: > -u If the `-u'' flag is given, then makehistory > assumes that innd is running. It will throttle the > server while scanning, and then send `addhist'' > commands (see ctlinnd(8)) to the server for any > article that is not found in the dbz database. The > command `makehistory -bu'' is useful after a sys- > tem crash, to delete any mangled articles and bring > the article database back into a more consistent > state. I've now rewritten this man page for the 2.3.0 release. The section on -u now has: =item B<-u> This option enables "update" mode. In this mode, B<makehistory> will only generate history (and overview if B<-O> is given) data for articles not already found in the history file. This can be useful after a system crash, particularly in combination with B<-b> to delete any mangled articles. Note that B<-u> will not throttle innd(8) even if it's running, and the B<-f> option is mandatory to specify the file to which the additional history entries are written. If B<-O> is given, overview information will be updated as B<makehistory> is running; this is safe as the overview storage methods lock against multiple updates. The most useful thing to do with the new history entries, after B<makehistory> finishes, is to throttle innd with ctlinnd(8), append the history entries to the end of the history file, run makedbz(8) to rebuild the indexes, and then unthrottle innd. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: changing numbering in active file
Author: Katsuhiro Kondou
Date: Fri, 28 Apr 2000 00:00
Date: Fri, 28 Apr 2000 00:00
10 lines
1315 bytes
1315 bytes
In article <8e7g14$n6$1@ucan.foad.org>, abby@ucan.foad.org (Abby Franquemont) wrote; } Hrmmm. So currently the only method for updating overviews is makehistory? Yes. -- Katsuhiro Kondou
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads