🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #33898

Re: INN 2.2b2, CNFS, and articles in the wrong groups

#33898
From: Hans Lambermont
Date: Thu, 17 Dec 1998 00:00
63 lines
3184 bytes
[Posted and mailed]

In article <slrn77353g.5e8.ian@caliban.xs4all.nl>, ian@caliban.org (Ian Macdonald) writes:
> After running news.daily, it was noticed that several of the
> alt.binaries.* groups contained articles intended for completely
> different groups.

We have seen the same here. It was caused by a full disk during expire
of the unified overview data. Did you have the same problem? Rebuilding
all overview databases, history database and overview index database
helped a bit. The articles that came in during the problems still have
problems here, but new articles are ok now.

If so, then try this script:
----------------------------------------------------------------
#! /bin/sh
# makedb, recreate from spool all databases. Storage manager used

. ../lib/innshellvars

# Check for overviewindex directory
if [ ! -d $PATHSPOOL/overview ]; then
    echo "$PATHSPOOL/overview doesn't exist."
    echo "Expireindex doesn't create it for you. Fix this first."
    exit 1
fi

echo "Rebuilding essential news databases"

# Clean muck from possible previous runs
rm -f $PATHTMP/newindex
rm -f $PATHTMP/newindex.sorted

echo "Scanning spool"
# -I : append data to index of article  overview, use lateron sort |
# expireindex on this file
# -O create UNIFIED overview database as well
# -n : scan the spool without rebuilding the dbz files
time $PATHBIN/makehistory -I $PATHTMP/newindex -O -n

echo -n "Counting history entries: "
COUNT=`wc -l $PATHDB/history | awk '{ print $1 }'`
echo $COUNT

echo "Rebuilding history index"
# -o any existing history files are overwritten, and -i : ignore old database
# -r just  build the dbz files from an existing text file
# -s ignore any old database in specifying the approximate number of
#    entries in the new database.
time $PATHBIN/makehistory -o -r -s $COUNT

echo "Sorting overindex input file"
sort -t' ' +1 -2 $PATHTMP/newindex > $PATHTMP/newindex.sorted

echo "Rebuilding overindex"
time expireindex -a -o -z < $PATHTMP/newindex.sorted

echo "Rebuild completed"
----------------------------------------------------------------

Hans Lambermont

Technical Details
Message-ID: <913900683.73301@dibbs1.mpn.cp.philips.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-mail
References: <slrn77353g.5e8.ian@caliban.xs4all.nl>

Show Full Headers
Complete Article Headers
Message-ID: <913900683.73301@dibbs1.mpn.cp.philips.com>
Subject: Re: INN 2.2b2, CNFS, and articles in the wrong groups
Date: Thu, 17 Dec 1998 00:00:00 +0000
From: lambermo@garg.mpn.cp.philips.com (Hans Lambermont)
References: <slrn77353g.5e8.ian@caliban.xs4all.nl>
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: 423239468
Cache-Post-Path: dibbs1.mpn.cp.philips.com!unknown@garg.mpn.cp.philips.com
To: ian@caliban.org (Ian Macdonald)
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@dibbs3.eur.cis.philips.com
X-Trace: dibbs3.eur.cis.philips.com 913900683 1828 130.139.64.80 (17 Dec 1998 13:18:03 GMT)
Organization: mpn.cp.philips.com
X-Cache: nntpcache 2.3.2.1 (see http://www.nntpcache.org/)
Mime-Version: 1.0
NNTP-Posting-Date: 17 Dec 1998 13:18:03 GMT
Newsgroups: news.software.nntp