🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by bill davidsen Wed, 21 Jul 1999 00:00
INN-2.3 makehistory problems
#38770
Author: bill davidsen
Date: Wed, 21 Jul 1999 00:00
27 lines
1816 bytes
I asked this before, got no answer. Is makehistory generally broken in
2.3. I've tried up to 7/13 or so snaps, all fail on both Linux and AIX.

Symptoms are a "can't write" or "can't close" error after most of the
history file has been written, and makedbz giving hundreds of duplicate
hash entry warnings.

This leaves no way to recover from any of the things which tend to
happen when shaking out a new server config, and are the last thing
holding me back from trying this in some very non-critical production
applications.

I'm just running 'makehistory -O' because none of the other options in
the code or usage blurb seem to apply to what I want. The man page is
for some other program of the same name, no help there.

I'd really like to get some reader feedback on what this is like in
production, but not if the fallback on any problem is rebuilding the
article base from zero.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: INN-2.3 makehistory problems
#38771
Author: Richard Michael Todd
Date: Tue, 20 Jul 1999 00:00
40 lines
2768 bytes
davidsen@tmr.com (bill davidsen) writes:

> I asked this before, got no answer. Is makehistory generally broken in
> 2.3. I've tried up to 7/13 or so snaps, all fail on both Linux and AIX.
> 
> Symptoms are a "can't write" or "can't close" error after most of the
> history file has been written, and makedbz giving hundreds of duplicate
> hash entry warnings.
[...]
> I'm just running 'makehistory -O' because none of the other options in
> the code or usage blurb seem to apply to what I want. The man page is
> for some other program of the same name, no help there.
> 
> I'd really like to get some reader feedback on what this is like in
> production, but not if the fallback on any problem is rebuilding the
> article base from zero.

I tried running 'makehistory -O' a couple days ago on my system.  It 
completed without incident.   Followed up with a 'makedbz -s `wc -l history`'
to build the .dir/.pag file.  That worked too without complaint.  This is
on FreeBSD 3.1-STABLE. 

Some things I thought of:

1) Was the error something of the form "makehistory: Can't write overview 
data: " followed by an overview line?  That one sometimes happens when you 
completely blow away and regenerate overview, after having removed some 
newsgroups, but there are still articles posted to those newsgroups on the 
spool --- what happens is that group.index has no knowledge of the removed
group (since it was removed before overview was rebuilt) so it can't write 
an overview entry for that group.  This error is "mostly harmless" (OV3add()
does succeed in writing the data for those groups that haven't been removed),
and makehistory continues going afterwards.
I'll see if I can come up with something to suppress this error message.

2) As for the makedbz problem, I'm not sure what's going on there.  Makedbz
doesn't do anything more exotic in calls to the dbz code than innd does, so 
I don't see how makedbz can fail and innd can work. 

Re: INN-2.3 makehistory problems
#38777
Author: bill davidsen
Date: Wed, 21 Jul 1999 00:00
59 lines
3721 bytes
In article <yl67lnulpbp.fsf@intrepid.ecn.ou.edu>,
Richard Michael Todd  <rmtodd@intrepid.ecn.ou.edu> wrote:
| davidsen@tmr.com (bill davidsen) writes:

| > I'm just running 'makehistory -O' because none of the other options in
| > the code or usage blurb seem to apply to what I want. The man page is
| > for some other program of the same name, no help there.
| > 
| > I'd really like to get some reader feedback on what this is like in
| > production, but not if the fallback on any problem is rebuilding the
| > article base from zero.
| 
| I tried running 'makehistory -O' a couple days ago on my system.  It 
| completed without incident.   Followed up with a 'makedbz -s `wc -l history`'
| to build the .dir/.pag file.  That worked too without complaint.  This is
| on FreeBSD 3.1-STABLE. 
| 
| Some things I thought of:
| 
| 1) Was the error something of the form "makehistory: Can't write overview 
| data: " followed by an overview line?  That one sometimes happens when you 
| completely blow away and regenerate overview, after having removed some 
| newsgroups, but there are still articles posted to those newsgroups on the 
| spool --- what happens is that group.index has no knowledge of the removed
| group (since it was removed before overview was rebuilt) so it can't write 
| an overview entry for that group.  This error is "mostly harmless" (OV3add()
| does succeed in writing the data for those groups that haven't been removed),
| and makehistory continues going afterwards.
| I'll see if I can come up with something to suppress this error message.

No, the error is something to do with "can't close history" which I have
since deleted.

| 2) As for the makedbz problem, I'm not sure what's going on there.  Makedbz
| doesn't do anything more exotic in calls to the dbz code than innd does, so 
| I don't see how makedbz can fail and innd can work. 

I think the problem is in the makehistory portion. There are definitely
duplicate entries in the history file, and makedbz complains bitterly.
If I start with an empty system and run for a few hours to build
articles, then stop the system and rerun makedbz, it runs fine. But
after the makehistory run it has a legitimate complaint about the
content of the history file. I'm sure that if I can get makehistory
working the makdbz problem will vanish, since it's a real problem.

Another odd fact, the overview built by makehistory seems to be
legitimate. I saved the original (valid) history file before starting
this test, and after makehistory failed I tried using the new overview,
which appears to be just fine.

All seriously bizarre, but preventing serious use for the moment.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: INN-2.3 makehistory problems
#38805
Author: Richard Michael Todd
Date: Thu, 22 Jul 1999 00:00
48 lines
3096 bytes
davidsen@tmr.com (bill davidsen) writes:


> No, the error is something to do with "can't close history" which I have
> since deleted.

Hmm.  The only places I can see that that error can come from in
makehistory is if the fflush() or fclose() fails on the history file,
or on the temp file used in the creation of overview.  (Furgle. It
*shouldn't* say "can't close history" in that case; that code is the
result of a little overzealous cut-and-pasting, and will be fixed in a
little while.  Sorry about that.)

> | I don't see how makedbz can fail and innd can work. 
> 
> I think the problem is in the makehistory portion. There are definitely
> duplicate entries in the history file, and makedbz complains bitterly.

As you say, that's seriously bizarre. The only way makehistory can get
dupe message-ids is if
	a) you actually have duplicate messages in the spool, i.e. the same
	 message stored in different locations, or 
	b) something's seriously hosed in SMnext(), and the storage manager
	code is giving the same article twice. 

a) is definitely a possibility if, for some reason, the history file and/or
dbz indexes got corrupted some time in the past and dupe articles got onto
the spool.  b), if true, would definitely be a major cause for concern. 

I don't recall if you mentioned this in your original article, but what 
storage manager were you using (CNFS, timehash, etc), and are you using 
tagged-hash or not?


> Another odd fact, the overview built by makehistory seems to be
> legitimate. I saved the original (valid) history file before starting
> this test, and after makehistory failed I tried using the new overview,
> which appears to be just fine.

That's not too odd.  With the new overview scheme, essentially if you try
to write new overview data for a given article, it just overwrites the old
overview data. (Actually it overwrites the entry to the .IDX file and 
appends to the .DAT file, so the entry appears overwritten, but the old entry
still takes up disk space that won't be reclaimed until the next expireover).
I've even run makehistory -O -x (rebuild overview, don't write a history file)
with innd up and running and it works okay. 

Re: INN-2.3 makehistory problems
#38815
Author: bill davidsen
Date: Fri, 23 Jul 1999 00:00
78 lines
4790 bytes
In article <yl6r9m0ja4n.fsf@intrepid.ecn.ou.edu>,
Richard Michael Todd  <rmtodd@intrepid.ecn.ou.edu> wrote:
| davidsen@tmr.com (bill davidsen) writes:
| 
| > No, the error is something to do with "can't close history" which I have
| > since deleted.
| 
| Hmm.  The only places I can see that that error can come from in
| makehistory is if the fflush() or fclose() fails on the history file,
| or on the temp file used in the creation of overview.  (Furgle. It
| *shouldn't* say "can't close history" in that case; that code is the
| result of a little overzealous cut-and-pasting, and will be fixed in a
| little while.  Sorry about that.)

That's thought... on the one system the /usr/local/news is a tad small.
I had assumed that it was using either /tmp (/usr/tmp /var/tmp) rather
than /usr/local/news/tmp, but if the error could have some out of the
temp write maybe a run with -T would give additional info. Also maybe a
smaller -l than default.

I want to look at this when I'm not covering for people on vacation, I'd
like to try to fork() off the overview in batches, at least as an
option, because most of my machines are SMP and have a CPU idle.

| > | I don't see how makedbz can fail and innd can work. 
| > 
| > I think the problem is in the makehistory portion. There are definitely
| > duplicate entries in the history file, and makedbz complains bitterly.
| 
| As you say, that's seriously bizarre. The only way makehistory can get
| dupe message-ids is if
| 	a) you actually have duplicate messages in the spool, i.e. the same
| 	 message stored in different locations, or 
This is certainly possible, I was rebuilding history because it got
messed up somehow while I was playing.
| 	b) something's seriously hosed in SMnext(), and the storage manager
| 	code is giving the same article twice. 
Less likely, or at least I have no evidence of it.
| a) is definitely a possibility if, for some reason, the history file and/or
| dbz indexes got corrupted some time in the past and dupe articles got onto
| the spool.  b), if true, would definitely be a major cause for concern. 
| 
| I don't recall if you mentioned this in your original article, but what 
| storage manager were you using (CNFS, timehash, etc), and are you using 
| tagged-hash or not?
CNFS with tagged hash. My test machines are small, 128 or 256MB, while I
have run without tagged hash in that size and had minimal swapping (few
readers) I want to do this testing with the idea of possibly actually
using the machines for limited production.
| 
| > Another odd fact, the overview built by makehistory seems to be
| > legitimate. I saved the original (valid) history file before starting
| > this test, and after makehistory failed I tried using the new overview,
| > which appears to be just fine.
| 
| That's not too odd.  With the new overview scheme, essentially if you try
| to write new overview data for a given article, it just overwrites the old
| overview data. (Actually it overwrites the entry to the .IDX file and 
| appends to the .DAT file, so the entry appears overwritten, but the old entry
| still takes up disk space that won't be reclaimed until the next expireover).
| I've even run makehistory -O -x (rebuild overview, don't write a history file)
| with innd up and running and it works okay. 

I will undoubtedly try that at some point, historically overview has
been more fragile that the history file, although with the new overview
who knows?

Thanks for all the feedback, this last bit on temp space may be the
charm, since I found the message in the source where I expected it and
didn't go looking after that.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


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