Thread View: news.software.nntp
11 messages
11 total messages
Started by news
Sun, 10 Dec 2000 02:48
INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Sun, 10 Dec 2000 02:48
Date: Sun, 10 Dec 2000 02:48
21 lines
1592 bytes
1592 bytes
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 ?
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: Russ Allbery
Date: Sun, 10 Dec 2000 07:34
Date: Sun, 10 Dec 2000 07:34
16 lines
1525 bytes
1525 bytes
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/>
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Sun, 10 Dec 2000 17:26
Date: Sun, 10 Dec 2000 17:26
48 lines
2505 bytes
2505 bytes
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
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: Russ Allbery
Date: Sun, 10 Dec 2000 21:45
Date: Sun, 10 Dec 2000 21:45
22 lines
1767 bytes
1767 bytes
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/>
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Sun, 10 Dec 2000 23:58
Date: Sun, 10 Dec 2000 23:58
33 lines
1926 bytes
1926 bytes
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 ?
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: Russ Allbery
Date: Mon, 11 Dec 2000 00:09
Date: Mon, 11 Dec 2000 00:09
14 lines
1611 bytes
1611 bytes
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/>
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Mon, 11 Dec 2000 02:48
Date: Mon, 11 Dec 2000 02:48
19 lines
1497 bytes
1497 bytes
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.
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: Russ Allbery
Date: Mon, 11 Dec 2000 03:49
Date: Mon, 11 Dec 2000 03:49
19 lines
1907 bytes
1907 bytes
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/>
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Mon, 11 Dec 2000 04:13
Date: Mon, 11 Dec 2000 04:13
34 lines
1945 bytes
1945 bytes
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 ?
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: news
Date: Mon, 11 Dec 2000 18:18
Date: Mon, 11 Dec 2000 18:18
31 lines
2025 bytes
2025 bytes
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.
Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Author: Russ Allbery
Date: Sat, 23 Dec 2000 11:53
Date: Sat, 23 Dec 2000 11:53
43 lines
2709 bytes
2709 bytes
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/>
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