Article View: news.software.nntp
Article #5451Re: HELP - Expire can't store key
From: Ted Remillard
Date: Fri, 01 Mar 1996 00:00
Date: Fri, 01 Mar 1996 00:00
44 lines
1933 bytes
1933 bytes
--
I just experienced an "Expire can't store key" and fixed it
by running the below script which I got from the man page on
news-recovery.
It took about 5 hours to rebuilt the history files. Afterwards
news.daily worked fine. I noticed that the history file size went
from 92MB to 33MB.
#!/bin/sh
ctlinnd throttle "Rebuilding history file"
cd /usr/local/news
if makehistory -n -f history.n ; then
:
else
echo Error creating history file!
exit 1
fi
# The following line can be used to retain expired history
# It is not necessary for the history file to be sorted.
# awk 'NF==2 { print; }' <history >>history.n
# View history file for mistakes.
if makehistory -r -s `wc -l <history` -f history.n; then
mv history.n history
mv history.n.dir history.dir
mv history.n.pag history.pag
fi
ctlinnd go "Rebuilding history file"
Ted Remillard Email: tedr@sd.com
Systems Administrator Tel: (503) 643-9281
Summit Design, Inc.
Beaverton, OR 97008
--
Ted Remillard
Summit Design, Inc. Tel: (503) 643-9281
9305 S.W. Gemini Drive Fax: (503) 646-4954
Beaverton, OR 97005-7158 Internet: tedr@sd.com
Technical Details
Message-ID:
<4h7flh$4o9@thedog.tessi.com>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-mailReferences:
<4gse8k$7ai@consolidated.ccinet.net>Show Full Headers
Complete Article Headers
Message-ID: <4h7flh$4o9@thedog.tessi.com> Subject: Re: HELP - Expire can't store key Date: Fri, 01 Mar 1996 00:00:00 +0000 From: tedr@thedog.tessi.com (Ted Remillard) References: <4gse8k$7ai@consolidated.ccinet.net> 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: 141739960 Distribution: inet Organization: Summit Design, Inc., Beaverton, Oregon Newsgroups: news.software.nntp