🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46868

Re: Strange INN 2.2 Posting problem

#46868
From: Geoff Wilson
Date: Thu, 08 Jun 2000 00:00
73 lines
3559 bytes
Liam Friel <liam.friel@s3group.com> wrote on the Thu, 8 Jun 2000 10:15:57 +0100:

>> Try blowing away and rebuilding the .overview files for those groups.
>> You can usually find those files in spool/overview/
>> You rebuild them using "mkhistory -O", I think.

> I am using the traditional storage method, so I think this means
> makehistory -O won't work. At least, it didn't work for me. What did work
> though as I found out by reading the archives of this group was just
> throwing away the .overview file for that group (and not replacing it at
> all).

The following shell script I got from this group a long time ago and has
worked well for me with INN 2.x. I know it works with CNFS, and it should be
worth a try for tradspool. It basically scans through the spool, builds you a
new history file, sorts it, then uses that to create overview information.

---- begin ------
#! /bin/sh

. /usr/local/news/lib/innshellvars

echo "Rebuilding essential news databases"

rm -f $PATHTMP/newindex
rm -f $PATHTMP/newindex.sorted

echo "Scanning spool"
rm -f $PATHTMP/newindex

$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"
$PATHBIN/makehistory -o -r -s $COUNT

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

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

echo "Rebuild completed"     

------- end ------

You can probably glean something of use from it. My work keeps wanting to
change the hardware lying around on the news server, so for removing CNFS
buffers from the spool, this has proved quite handy to regenerate everything
else. It will take a long time to run (depending on the IO resources of your
server), and make sure you have enough space on the drive that ~news/tmp is
stored.

> 2. Can someone recommend a good reference on how all the myriad of INN
> components fit together, the files used, what they are for and so on.

For my two cents worth, one of the best ways to try to figure this out is to
try things out on a 'test' server. The man pages are quite useful for all the
various components, and after awhile it starts to make more sense as to how
INN fits together. Unfortunately, this approach takes time ;)

Geoff

-- 
	a paranoid is just someone with all of the facts at his disposal
		- william seaward burroughs  1914-1997 

Geoff M. Wilson <gmwils@zark.thedonkeys.org>  www.zark.thedonkeys.org/~gmwils

Technical Details
Message-ID: <8holrq$2v78$1@mired.zark.thedonkeys.org>
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: <393e79c1.0@seat.s3two.ie> <8hlvq5$k5$1@allhats.xcski.com> <393f63fb.0@seat.s3two.ie>

Show Full Headers
Complete Article Headers
Message-ID: <8holrq$2v78$1@mired.zark.thedonkeys.org>
Subject: Re: Strange INN 2.2 Posting problem
Date: Thu, 08 Jun 2000 00:00:00 +0000
From: Geoff Wilson <gmwils@zark.thedonkeys.org>
References: <393e79c1.0@seat.s3two.ie> <8hlvq5$k5$1@allhats.xcski.com> <393f63fb.0@seat.s3two.ie>
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: 632718005
Sender: mink <mink@quirk.zark.thedonkeys.org>
X-Complaints-To: usenet@mired.zark.thedonkeys.org
X-Trace: mired.zark.thedonkeys.org 960486074 97512 203.166.228.93 (8 Jun 2000 17:41:14 GMT)
Organization: Zark (www.zark.thedonkeys.org)
User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-RELEASE (i386))
NNTP-Posting-Date: 8 Jun 2000 17:41:14 GMT
Newsgroups: news.software.nntp