🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46076

Re: changing numbering in active file

#46076
From: rmtodd
Date: Wed, 26 Apr 2000 00:00
116 lines
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))?



Technical Details
Message-ID: <864s8op4ch.fsf@amonduul.ecn.ou.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.mbox.zip!not-for-mail
References: <8e20e0$r12$1@news.jump.net> <863doane7i.fsf@amonduul.ecn.ou.edu> <8e5m05$j69$1@ucan.foad.org> <868zy0po41.fsf@amonduul.ecn.ou.edu> <8e7qub$b9g$1@ucan.foad.org>

Show Full Headers
Complete Article Headers
Message-ID: <864s8op4ch.fsf@amonduul.ecn.ou.edu>
Subject: Re: changing numbering in active file
Date: Wed, 26 Apr 2000 00:00:00 +0000
From: rmtodd <rmtodd@amonduul.ecn.ou.edu>
References: <8e20e0$r12$1@news.jump.net> <863doane7i.fsf@amonduul.ecn.ou.edu> <8e5m05$j69$1@ucan.foad.org> <868zy0po41.fsf@amonduul.ecn.ou.edu> <8e7qub$b9g$1@ucan.foad.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 616199601
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@mailhost.ecn.ou.edu
X-Trace: skywalker.ecn.ou.edu 956808895 43695 129.15.119.201 (27 Apr 2000 04:14:55 GMT)
Organization: University of Oklahoma, Engineering Computer Network
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Canyonlands)
NNTP-Posting-Date: 27 Apr 2000 04:14:55 GMT
Newsgroups: news.software.nntp