* INN 2.3.0 Linux/Alpha articles gone AWOL
@ 2000-12-10 2:48 news
2000-12-10 7:34 ` Russ Allbery
0 siblings, 1 reply; 11+ messages in thread
From: news @ 2000-12-10 2:48 UTC (permalink / raw)
Just got hold of an old PC164LX and installed Redhat Linux 7 on it.
Then rpm -e'd the versions of inn, inn-devel and cleanfeed,
to replace them with 2.3.0. Had no problems building and installing
it. Next setup the various conf files to match my current INN 2.3.0
setup (on an x86 running RH 6.2) and started it running.
It's only a small spool, < 1GB so I'm just using tradspool/overview
and for initial population I used nntpget to grab all the articles
off the x86 box, all of which seemed to go fine. The articles are
sitting in the spool, the overview, history and active files look ok.
But even from a simple telnet localhost nntp I can't actually
retrieve any articles, or heads, or bodies. The group command
works and returns the correct numbers of articles, until I'd
changed nnrpdcheckart from true to false I couldn't get any
overview information. And now I get a 423 or 430 error code for
article number/messageid.
Any ideas what I've missed ?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-10 2:48 INN 2.3.0 Linux/Alpha articles gone AWOL news
@ 2000-12-10 7:34 ` Russ Allbery
2000-12-10 17:26 ` news
0 siblings, 1 reply; 11+ messages in thread
From: Russ Allbery @ 2000-12-10 7:34 UTC (permalink / raw)
In news.software.nntp, news <news@nospam.invalid> writes:
> But even from a simple telnet localhost nntp I can't actually retrieve
> any articles, or heads, or bodies. The group command works and returns
> the correct numbers of articles, until I'd changed nnrpdcheckart from
> true to false I couldn't get any overview information. And now I get a
> 423 or 430 error code for article number/messageid.
> Any ideas what I've missed ?
What do the logs say? Are there error messages? It sounds like something
(possibly overview) isn't in sync with the news spool.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-10 7:34 ` Russ Allbery
@ 2000-12-10 17:26 ` news
2000-12-10 21:45 ` Russ Allbery
0 siblings, 1 reply; 11+ messages in thread
From: news @ 2000-12-10 17:26 UTC (permalink / raw)
In news.software.nntp Russ Allbery <rra@stanford.edu> wrote:
> In news.software.nntp, news <news@nospam.invalid> writes:
>> But even from a simple telnet localhost nntp I can't actually retrieve
>> any articles, or heads, or bodies. The group command works and returns
>> the correct numbers of articles, until I'd changed nnrpdcheckart from
>> true to false I couldn't get any overview information. And now I get a
>> 423 or 430 error code for article number/messageid.
>> Any ideas what I've missed ?
> What do the logs say? Are there error messages? It sounds like something
> (possibly overview) isn't in sync with the news spool.
I've tried trashing and rebuilding the history, overview and dbz,
it made no difference.
The only log messages are in news.notice
For the session below
sh-2.04$ telnet localhost nntp
group news.software.nntp
211 321 1 321 news.software.nntp
xover 321
224 321 fields follow
321 Re: Where to get NNTP feeds? Andrew Starr <atsnntp0200@emailman.com>
Sat, 09 Dec 2000 21:14:31 -0600 <091220002114318487%atsnntp0200@emailman.com>
<t32infdvn60naf@corp.supernews.com> 1491 16
head 321
423 Bad article number
This was in the log.
Dec 10 16:59:25 alpha1 nnrpd[1185]: SERVER perl filtering enabled
Dec 10 16:59:26 alpha1 nnrpd[1185]: localhost connect
Dec 10 16:59:41 alpha1 nnrpd[1185]: localhost group news.software.nntp 0
Dec 10 16:59:41 alpha1 nnrpd[1185]: localhost times user 0.479 system 0.049 elapsed 15.350
Trying the same thing on the working machine gave a similar log
message, but instead had localhost group news.software.nntp 1.
And yes the file does exist...
sh-2.04$ ls -l /usr/local/news/spool/articles/news/software/nntp
-rw-rw-r-- 1 news news 1451 Dec 10 16:53 321
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-10 17:26 ` news
@ 2000-12-10 21:45 ` Russ Allbery
2000-12-10 23:58 ` news
0 siblings, 1 reply; 11+ messages in thread
From: Russ Allbery @ 2000-12-10 21:45 UTC (permalink / raw)
In news.software.nntp, news <news@nospam.invalid> writes:
> sh-2.04$ telnet localhost nntp
> group news.software.nntp
> 211 321 1 321 news.software.nntp
> xover 321
> 224 321 fields follow
> 321 Re: Where to get NNTP feeds? Andrew Starr <atsnntp0200@emailman.com>
> Sat, 09 Dec 2000 21:14:31 -0600 <091220002114318487%atsnntp0200@emailman.com>
> <t32infdvn60naf@corp.supernews.com> 1491 16
> head 321
> 423 Bad article number
> This was in the log.
So OVgetartinfo is failing. Looking in the overview database for that
group, what does the raw entry look like? I assume you're using
tradindexed, so it will be in the .DAT file.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-10 21:45 ` Russ Allbery
@ 2000-12-10 23:58 ` news
2000-12-11 0:09 ` Russ Allbery
0 siblings, 1 reply; 11+ messages in thread
From: news @ 2000-12-10 23:58 UTC (permalink / raw)
In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
> In news.software.nntp, news <news@nospam.invalid> writes:
>> sh-2.04$ telnet localhost nntp
>> group news.software.nntp
>> 211 321 1 321 news.software.nntp
>> xover 321
>> 224 321 fields follow
>> 321 Re: Where to get NNTP feeds? Andrew Starr <atsnntp0200@emailman.com>
>> Sat, 09 Dec 2000 21:14:31 -0600 <091220002114318487%atsnntp0200@emailman.com>
>> <t32infdvn60naf@corp.supernews.com> 1491 16
>> head 321
>> 423 Bad article number
Or if I try by messageid.
article <091220002114318487%atsnntp0200@emailman.com>
430 No such article
>> This was in the log.
> So OVgetartinfo is failing. Looking in the overview database for that
> group, what does the raw entry look like? I assume you're using
> tradindexed, so it will be in the .DAT file.
The overview file looks just like what is returned by xover.
At least once you include the XRef: part which was the victim of
a bad cut&paste above.
Is there any debugging that would help here ?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-10 23:58 ` news
@ 2000-12-11 0:09 ` Russ Allbery
2000-12-11 2:48 ` news
2000-12-11 4:13 ` news
0 siblings, 2 replies; 11+ messages in thread
From: Russ Allbery @ 2000-12-11 0:09 UTC (permalink / raw)
In news.software.nntp, news <news@nospam.invalid> writes:
> The overview file looks just like what is returned by xover. At least
> once you include the XRef: part which was the victim of a bad cut&paste
> above.
Hm. So it's using the message ID to get the token? This may be pointing
at your history file. What does running grephistory on that message ID
return? If it returns a storage token, does running sm on that token
work?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-11 0:09 ` Russ Allbery
@ 2000-12-11 2:48 ` news
2000-12-11 3:49 ` Russ Allbery
2000-12-11 4:13 ` news
1 sibling, 1 reply; 11+ messages in thread
From: news @ 2000-12-11 2:48 UTC (permalink / raw)
In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
> In news.software.nntp, news <news@nospam.invalid> writes:
>> The overview file looks just like what is returned by xover. At least
>> once you include the XRef: part which was the victim of a bad cut&paste
>> above.
> Hm. So it's using the message ID to get the token? This may be pointing
> at your history file. What does running grephistory on that message ID
> return? If it returns a storage token, does running sm on that token
> work?
grephistory returns a storage token @05 blah @, running sm on
it results in "Could not retrieve @05 blah @".
I've also tried installing inn-2.2.3 from scratch, that works fine.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-11 2:48 ` news
@ 2000-12-11 3:49 ` Russ Allbery
2000-12-11 18:18 ` news
0 siblings, 1 reply; 11+ messages in thread
From: Russ Allbery @ 2000-12-11 3:49 UTC (permalink / raw)
In news.software.nntp, news <news@nospam.invalid> writes:
> In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
>> Hm. So it's using the message ID to get the token? This may be
>> pointing at your history file. What does running grephistory on that
>> message ID return? If it returns a storage token, does running sm on
>> that token work?
> grephistory returns a storage token @05 blah @, running sm on it results
> in "Could not retrieve @05 blah @".
So the storage manager doesn't think that the article is on disk. My
guess at this point is a corrupted tradspool.map file. What does the
entry in tradspool.map for that newsgroup say, and what's the full value
of the article token?
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-11 3:49 ` Russ Allbery
@ 2000-12-11 18:18 ` news
0 siblings, 0 replies; 11+ messages in thread
From: news @ 2000-12-11 18:18 UTC (permalink / raw)
In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
> In news.software.nntp, news <news@nospam.invalid> writes:
>> In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
>>> Hm. So it's using the message ID to get the token? This may be
>>> pointing at your history file. What does running grephistory on that
>>> message ID return? If it returns a storage token, does running sm on
>>> that token work?
>> grephistory returns a storage token @05 blah @, running sm on it results
>> in "Could not retrieve @05 blah @".
> So the storage manager doesn't think that the article is on disk. My
> guess at this point is a corrupted tradspool.map file. What does the
> entry in tradspool.map for that newsgroup say, and what's the full value
> of the article token?
This article I'm following up is article #19 in news.software.nntp
Message-ID: <ylsnnvpqgn.fsf@windlord.stanford.edu>
Token: @05010000703E000000000000001300000000@
Tradspool.map news/software/nntp 28734
Oh, and further to my other post re: tradspool.c, I've moved
the artnum = ntohl(artnum); below the FindNGByNum, and it works,
though I'm very dubious about it being a real fix.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-11 0:09 ` Russ Allbery
2000-12-11 2:48 ` news
@ 2000-12-11 4:13 ` news
2000-12-23 11:53 ` Russ Allbery
1 sibling, 1 reply; 11+ messages in thread
From: news @ 2000-12-11 4:13 UTC (permalink / raw)
In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
> Hm. So it's using the message ID to get the token? This may be pointing
> at your history file. What does running grephistory on that message ID
> return? If it returns a storage token, does running sm on that token
> work?
Another followup, I've worked where things go wrong by hacking
some simple debig statements into storage/tradspool/tradspool.c
in the TokenToPath function,
memcpy(&artnum, &token.token[sizeof(ngnum)], sizeof(artnum));
artnum = 1375797248
artnum = ntohl(artnum);
artnum = 338
ngnum = ntohl(ngnum);
artnum = 338
ng = FindNGByNum(ngnum);
if (ng == NULL) return NULL;
artnum = 1375797248
path = NEW(char, strlen(ng)+20+strlen(innconf->patharticles));
artnum = 1375797248
sprintf(path, "%s/%s/%lu", innconf->patharticles, ng, artnum);
artnum = 1375797248
path = /usr/local/news/spool/articles/news/software/nntp/1375797248
So it seems that for some reason the call to FindNGByNum is somehow
resetting artnum to it's network byte order version ! Uhm, where
does the memory for ng come from ?
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: INN 2.3.0 Linux/Alpha articles gone AWOL
2000-12-11 4:13 ` news
@ 2000-12-23 11:53 ` Russ Allbery
0 siblings, 0 replies; 11+ messages in thread
From: Russ Allbery @ 2000-12-23 11:53 UTC (permalink / raw)
Sorry about how long it took me to get back to this.
In news.software.nntp, news <news@nospam.invalid> writes:
> In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote:
>> Hm. So it's using the message ID to get the token? This may be
>> pointing at your history file. What does running grephistory on that
>> message ID return? If it returns a storage token, does running sm on
>> that token work?
> Another followup, I've worked where things go wrong by hacking some
> simple debig statements into storage/tradspool/tradspool.c in the
> TokenToPath function,
> memcpy(&artnum, &token.token[sizeof(ngnum)], sizeof(artnum));
> artnum = 1375797248
> artnum = ntohl(artnum);
> artnum = 338
> ngnum = ntohl(ngnum);
> artnum = 338
> ng = FindNGByNum(ngnum);
> if (ng == NULL) return NULL;
> artnum = 1375797248
This is looking a *lot* like a compiler bug of some sort to me.
FindNGByNum doesn't write to memory anywhere in the fuction; it only uses
a couple of local variables, and it's a very small function that's pretty
easy to inspect and convince oneself that it's not doing anything odd.
It definitely shouldn't be able to change artnum, which is local to the
calling function. I don't see any chance of a stack overflow or
something.
> So it seems that for some reason the call to FindNGByNum is somehow
> resetting artnum to it's network byte order version ! Uhm, where
> does the memory for ng come from ?
Global data populated from tradspool.map when nnrpd or innd starts.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2000-12-23 11:53 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-10 2:48 INN 2.3.0 Linux/Alpha articles gone AWOL news
2000-12-10 7:34 ` Russ Allbery
2000-12-10 17:26 ` news
2000-12-10 21:45 ` Russ Allbery
2000-12-10 23:58 ` news
2000-12-11 0:09 ` Russ Allbery
2000-12-11 2:48 ` news
2000-12-11 3:49 ` Russ Allbery
2000-12-11 18:18 ` news
2000-12-11 4:13 ` news
2000-12-23 11:53 ` Russ Allbery
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox