Thread View: news.software.nntp
4 messages
4 total messages
Started by Bruce Esquibel
Tue, 20 Aug 2002 12:56
expire - duplicate messages
Author: Bruce Esquibel
Date: Tue, 20 Aug 2002 12:56
Date: Tue, 20 Aug 2002 12:56
40 lines
2316 bytes
2316 bytes
Well, I'm throwing this out for suggestions, off hand I don't know what else to do about it. My news.daily reports for the last week have been expotentially getting larger and larger. This mornings was near 10 megs, most of it due to: Duplicate message-id "[458193ED1F2810237EE1D467A576C158]" in history there is over 127,000 of them now. This started about a week ago, first a dozen or so, then about 100 and it's been snowballing since then. We're running inn 2.3.3 under solaris 2.8 with cnfs for article storage and tradindexed for the overviews. This is somewhat a new box, has been running ok since july 1 and doesn't seem to have any other problems. When I checked some of the strings for the duplicates reported, usually they aren't found at all. I'm assuming expire took them out. The ones that are there all seem to be for control messages being the entry in the history file looks like this: [FD4951871E5F4CBFA5C783A0AA20E0AB] 1029847207~-~1029847207 Since there is no message token in the next field (leading and trailing @), these are control messages, right? My question is what is the next step? Should I attempt to rebuild the history file from scratch, just try to rebuild the dbz hash stuff or what? What would get crapped up where duplicates would get into the history file to begin with, broken dbm/ndbm libraries? Any clues would be appreciated. -bruce bje@ripco.com
Re: expire - duplicate messages
Author: Alex Kiernan
Date: Wed, 21 Aug 2002 07:34
Date: Wed, 21 Aug 2002 07:34
75 lines
3869 bytes
3869 bytes
bje@ripco.com (Bruce Esquibel) writes:
> Well, I'm throwing this out for suggestions, off hand I don't know what else
> to do about it.
>
> My news.daily reports for the last week have been expotentially getting
> larger and larger. This mornings was near 10 megs, most of it due to:
>
> Duplicate message-id "[458193ED1F2810237EE1D467A576C158]" in history
>
> there is over 127,000 of them now. This started about a week ago, first a
> dozen or so, then about 100 and it's been snowballing since then.
>
That happens when your history.hash is missing articles which you've
already accepted. They're re-accepted (rather than refused) and added
to the history (& .hash & .index). When expire runs it finds duplicate
message ids & complains.
Typically the reason your history.* are out of kilter is if you've had
a crash.
> We're running inn 2.3.3 under solaris 2.8 with cnfs for article storage and
> tradindexed for the overviews.
>
> This is somewhat a new box, has been running ok since july 1 and doesn't
> seem to have any other problems.
Check your expire.log for a message like:
Expire errors: history files not updated.
If you've got those you need to fix your history file by hand, then
run makedbz. My approach (depending on what the box is used for) is
either to just tail the last million or so lines (transit boxes), or
to find the broken lines and edit them out (which usually means
something like dd since you need to operate on massive files).
> When I checked some of the strings for the duplicates reported,
> usually they aren't found at all. I'm assuming expire took them
> out. The ones that are there all seem to be for control messages
> being the entry in the history file looks like this:
>
> [FD4951871E5F4CBFA5C783A0AA20E0AB] 1029847207~-~1029847207
>
Just check for the [] part, the time stamps will differ.
> Since there is no message token in the next field (leading and trailing @),
> these are control messages, right?
>
Nope. They're messages where then cancel arrived before the real
message, or you rejected them, or they've expired but are still within
/remember/ (there may be some more 'or's I've missed!).
> My question is what is the next step? Should I attempt to rebuild the
> history file from scratch, just try to rebuild the dbz hash stuff or what?
>
Ignore them would be my approach... I can't think of a good way of
cleaning up the history file w/o writing some code, though once you've
a clean history file, you can just makedbz.
> What would get crapped up where duplicates would get into the history file
> to begin with, broken dbm/ndbm libraries?
>
> Any clues would be appreciated.
>
HTH
--
Alex Kiernan, Principal Engineer, Development, THUS plc
Re: expire - duplicate messages
Author: Shuvam Misra
Date: Thu, 22 Aug 2002 12:48
Date: Thu, 22 Aug 2002 12:48
36 lines
2450 bytes
2450 bytes
> > Duplicate message-id "[458193ED1F2810237EE1D467A576C158]" in history > > > > there is over 127,000 of them now. This started about a week ago, first a > > dozen or so, then about 100 and it's been snowballing since then. > > That happens when your history.hash is missing articles which you've > already accepted. They're re-accepted (rather than refused) and added > to the history (& .hash & .index). When expire runs it finds duplicate > message ids & complains. > > Typically the reason your history.* are out of kilter is if you've had > a crash. Don't know anything about INN, but this is what we've seen every once in a while with C News. > > My question is what is the next step? Should I attempt to rebuild the > > history file from scratch, just try to rebuild the dbz hash stuff or what? > > Ignore them would be my approach... I can't think of a good way of > cleaning up the history file w/o writing some code, though once you've > a clean history file, you can just makedbz. Just curious: doesn't INN come with any equivalent of the C News "mkhistory" command? On C News, this command takes a few hours, locks the entire news system, and then goes through the entire set of articles under $NEWSARTS directory, and rebuilds the history file from scratch, including the ASCII file and the dbz files. If such a thing is available, it would surely be the thing to do here, wouldn't it? Shuvam --
Re: expire - duplicate messages
Author: Russ Allbery
Date: Fri, 23 Aug 2002 18:19
Date: Fri, 23 Aug 2002 18:19
20 lines
2035 bytes
2035 bytes
Shuvam Misra <shuvam.misra@starcomsoftware.com> writes:
> Just curious: doesn't INN come with any equivalent of the C News
> "mkhistory" command? On C News, this command takes a few hours, locks
> the entire news system, and then goes through the entire set of articles
> under $NEWSARTS directory, and rebuilds the history file from scratch,
> including the ASCII file and the dbz files. If such a thing is
> available, it would surely be the thing to do here, wouldn't it?
You can do that in INN as well (the command is makehistory), but most
people running INN have a large enough spool that the process of walking
the entire spool will take considerably longer than a couple of hours. So
taking the downtime to do that often isn't a very good solution.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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