🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by Joerg Moellenkamp Wed, 16 Sep 1998 00:00
problems with inn 2.1
#31425
Author: Joerg Moellenkamp
Date: Wed, 16 Sep 1998 00:00
19 lines
1202 bytes
Hello,

i have severe problems with my newsystem : the symptoms was described
some days ago : when a user wants to read news , the subject is empty
or corrupted with parts of the message id . 

Now i think ist can be an error in the nnrpd (i use it as standalone
daemon), yesterday from my home i was able to get the article with the
right header, today i came in to my office, startet my news client,
and the news article had the header corruption problem ....

My user reported simmilar effects ... 

BYe
 Joerg 



Re: problems with inn 2.1
#31404
Author: Joerg Moellenkamp
Date: Wed, 16 Sep 1998 00:00
20 lines
1451 bytes
On 16 Sep 1998 11:53:48 +0200, Thomas Neumann <tom@smart.ruhr.de>
wrote:

>Maybe you're using storage API and your overview data
I use the storage API,  the spool are serveral CNFS-Cycbuffs
>got corrupted somehow? Try reconstructing the overview
>records like described with the ``-I'' option in the
>makehistory(8) manpage.
Hmm,  i delete all overview-files a few days ago, but the 
problem occured again.

Futhermore i tested newsreading with outlook express today, the
problem gets really weird, while free agent show at least, some
articles (but with wrong subjects in the articlelist) outlookexpress
shows absolutely nothing . only that there are new articles.

Bye
 Joerg

Re: problems with inn 2.1
#31410
Author: bill davidsen
Date: Wed, 16 Sep 1998 00:00
37 lines
2092 bytes
In article <87n280l18i.fsf@rune.tech.ftech.net>,
Robert Collier  <rune@ftech.net> wrote:

| I now run the following script after every system crash.

Just a few comments about this excellent script.

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

These are fixed length records and a LARGE file, dividing the file size
by the record length is suggested.

| echo "Sorting overindex input file"
| sort -t' ' +1 -2 $PATHTMP/newindex > $PATHTMP/newindex.sorted
| 
| echo "Rebuilding overindex"
| expireindex -a -o -z < $PATHTMP/newindex.sorted

Here again, on machines with limited resources, I suggest piping the
output of the sort directly to the expireindex.

Note to AIX users: on my machines I have been unable to run expireindex
unless I mmap the overview files (in inn.conf). However, I can't
actually run the system that way, readers get probelms. This may be
related to my use of actived and running nnrpd as a daemo. Just a tip on
what worked for me...

--
bill davidsen (davidsen@tmr.com)
  "The action you see on fishing programs is something like the women
in _Playboy_. Not actually *fake*, but not remotely typical of the
average person's experience."  -me


Re: problems with inn 2.1
#31413
Author: Thomas Neumann
Date: Wed, 16 Sep 1998 00:00
21 lines
1248 bytes
jm@nwn.de (Joerg Moellenkamp) writes:

> i have severe problems with my newsystem : the symptoms was described
> some days ago : when a user wants to read news , the subject is empty
> or corrupted with parts of the message id . 
> 
> Now i think ist can be an error in the nnrpd (i use it as standalone
> daemon), yesterday from my home i was able to get the article with the
> right header, today i came in to my office, startet my news client,
> and the news article had the header corruption problem ....

Maybe you're using storage API and your overview data
got corrupted somehow? Try reconstructing the overview
records like described with the ``-I'' option in the
makehistory(8) manpage.


-t


Re: problems with inn 2.1
#31416
Author: Robert Collier
Date: Wed, 16 Sep 1998 00:00
33 lines
2095 bytes
davidsen@tmr.com (bill davidsen) writes:
> Robert Collier  <rune@ftech.net> wrote:

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

> These are fixed length records and a LARGE file, dividing the file size
> by the record length is suggested.

Yeah well, this script got written in the early hours one morning
after a SCSI lockup on the server which I had no intention of waiting
up for makehistory on :)

[...]
> Here again, on machines with limited resources, I suggest piping the
> output of the sort directly to the expireindex.

A note for people with large cycbuffs. I've seen some forms of
corruption after system lockups that cause makehistory to eat memory
like nobodies business. I use 2Gig cycbuffs and I've seen makehistory
malloc up to 1.7Gb so far - I now ensure that memory+swap > 2Gb (= max
cycbuff size on this box).

	- regards, Rob.

-- 
   Robert Collier   -   Network  Operations   -   Frontier Internet
   ----------------------------------------------------------------
   Disclaimer: The views contained herein may not reflect the views
      of my employer and reliance should not be placed thereon.   

Re: problems with inn 2.1
#31417
Author: Robert Collier
Date: Wed, 16 Sep 1998 00:00
63 lines
2751 bytes
jm@nwn.de (Joerg Moellenkamp) writes:

> >Maybe you're using storage API and your overview data
> I use the storage API,  the spool are serveral CNFS-Cycbuffs
> >got corrupted somehow? Try reconstructing the overview
> >records like described with the ``-I'' option in the
> >makehistory(8) manpage.
> Hmm,  i delete all overview-files a few days ago, but the 
> problem occured again.

> Futhermore i tested newsreading with outlook express today, the
> problem gets really weird, while free agent show at least, some
> articles (but with wrong subjects in the articlelist) outlookexpress
> shows absolutely nothing . only that there are new articles.

I get simmilar problems if the server ever has a systemcrash that
results in an unclean shutdown. This manifests itself as a corrupt
overview database.

I now run the following script after every system crash.

Users with outlook/agent will need to unsubscribe from the group to
clear the corrupt overview information from their machines btw.


--8<--8<--
#! /bin/sh

. /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"
--8<--8<--

-- 
   Robert Collier   -   Network  Operations   -   Frontier Internet
   ----------------------------------------------------------------
   Disclaimer: The views contained herein may not reflect the views
      of my employer and reliance should not be placed thereon.   

Re: problems with inn 2.1
#31422
Author: Kjetil Torgrim Homme
Date: Wed, 16 Sep 1998 00:00
31 lines
2045 bytes
[bill davidsen]

>     echo -n "Counting history entries: "
>     COUNT=`wc -l $PATHDB/history | awk '{ print $1 }'`
>     echo $COUNT
>   
>   These are fixed length records and a LARGE file, dividing the file
>   size by the record length is suggested.

Just a note, there are two possible line lengths, 46 (cancelled /
expired messages) and 115.  However, for this application, an
approximation is good enough.

[Robert Collier]

>   A note for people with large cycbuffs. I've seen some forms of
>   corruption after system lockups that cause makehistory to eat
>   memory like nobodies business. I use 2Gig cycbuffs and I've seen
>   makehistory malloc up to 1.7Gb so far - I now ensure that
>   memory+swap > 2Gb (= max cycbuff size on this box).

I chose to make my cycbuffs 493 MB each, that may have been a lucky
choice given the above phenomenon.  (The reason for my choice was
varying size on my disks -- I used any old disk I could dredge up --
and wanting to keep all the cycbuffs the same size in order to do
mix-n-match between metacycbuffs.)


Kjetil T.

Re: problems with inn 2.1
#31451
Author: bill davidsen
Date: Thu, 17 Sep 1998 00:00
31 lines
2262 bytes
In article <6tpdau$ntv$2@danube.inka.de>,
Olaf Titz <olaf@bigred.inka.de> wrote:
| bill davidsen <davidsen@tmr.com> wrote:
| > | COUNT=`wc -l $PATHDB/history | awk '{ print $1 }'`
| > | echo $COUNT
| > These are fixed length records and a LARGE file, dividing the file size
| > by the record length is suggested.
| 
| Unfortunately they aren't fixed length for two reasons: (a) the token
| may be missing for cancelled/expired/junked articles, (b) the time
| items aren't constant length (I haven't checked when they will grow a
| digit though). However, in this case an approximation is sufficient.
| 
| I'm always talking of doing away with the whole text file and make it
| a fixed record DB, but that's development more into the future...

Please move it FAR in the future. I'm still writing tools to replace
those which stopped working when the format was changed the last time,
starting all over yet again is not on my list of desirable activities.

It's bad enough that all the config files change format between
releases, without adding any format changes in active, history, etc,
again. Maybe save that for inn-3.x?
--
bill davidsen (davidsen@tmr.com)
  "The action you see on fishing programs is something like the women
in _Playboy_. Not actually *fake*, but not remotely typical of the
average person's experience."  -me


Re: problems with inn 2.1
#31645
Author: David Hastings
Date: Wed, 23 Sep 1998 00:00
59 lines
2607 bytes
Robert Collier wrote:
> 
> I get simmilar problems if the server ever has a systemcrash that
> results in an unclean shutdown. This manifests itself as a corrupt
> overview database.
> 
> I now run the following script after every system crash.
> 
> Users with outlook/agent will need to unsubscribe from the group to
> clear the corrupt overview information from their machines btw.
> 
> --8<--8<--
> #! /bin/sh
> 
> . /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"
> --8<--8<--
> 
> --

Can anybody give me an idea of how long this script will take to run?
My history file has got over 5 million lines in it!

Thanks,

Dave
-- 
David Hastings                       |  "The Golden Rule was, is and 
Systems Programmer/News Manager      |  ever shall be: 
Oxford University Computing Services |  Don't Lift Lids Off 
email: david.hastings@oucs.ox.ac.uk  |                Cans Of Worms"
URL http://users.ox.ac.uk/~daveh/    |
(anti-spam: remove the "2" from the address before replying)

Re: problems with inn 2.1
#31648
Author: Ron Jarrell
Date: Wed, 23 Sep 1998 00:00
13 lines
1435 bytes
David Hastings <2david.hastings@computing-services.oxford.ac.uk> wrote:
> Can anybody give me an idea of how long this script will take to run?
> My history file has got over 5 million lines in it!


Depends on your system, how much memory, whether you use tagged hash,
what your article storage is, etc.

On mine, with 2 168mhz ultrasparc processors and 1.2G of memory,
and 28G in the spool (although only about 24 is full) it runs for
about 5 hours with nothing else going on.

Re: problems with inn 2.1
#31702
Author: Mark Powell
Date: Thu, 24 Sep 1998 00:00
29 lines
2132 bytes
In article <3608B5F5.2AA0@computing-services.oxford.ac.uk>,
David Hastings  <2david.hastings@computing-services.oxford.ac.uk> wrote:
>Can anybody give me an idea of how long this script will take to run?
>My history file has got over 5 million lines in it!

Depends on your news box :)
I ran it yesterday. We have ~1 million lines and it took 5 hrs. Our box is 
woefully underpowered though. It was out of CPU for the duration.
This is under Solaris 2.6 on a:

cpu0: TI,TMS390Z55 (mid 8 impl 0x0 ver 0x1 clock 50 MHz)

processor, which dhrystones around about a Pentium 110MHz. It has plenty
of RAM and disks, but just can't keep up with them.

I strongly suggest for this (and in general) that you install
GNU grep & sort to speed this up. Solaris's sort is pretty poor. The
initial makehistory spawns a sort command on the new history output it
creates and of course there's a sort later in the file.


-- 
Mark Powell - System Administrator (UNIX) - Clifford Whitworth Building
A.I.S., University of Salford, Salford, Manchester, UK.
Tel:	+44 161 295 5936	Fax:	+44 161 295 5888
Email:	M.S.Powell@ais.salfrd.ac.uk	finger mark@ucsalf.ac.uk (for PGP key)
NO SPAM please: Spell salford correctly to reply to me.

Re: problems with inn 2.1
#31747
Author: Robert Collier
Date: Fri, 25 Sep 1998 00:00
21 lines
1684 bytes
David Hastings <2david.hastings@computing-services.oxford.ac.uk> writes:
> Robert Collier wrote:
> [snip rebuild script] 

> Can anybody give me an idea of how long this script will take to run?
> My history file has got over 5 million lines in it!

Run time isn't dependent on size of history file, but on the number of
articles in the newsbase. On the server it was written for - a p][ 300
with 512Mb memory and ~12Gb of active cycbuffs it takes between 50 and
70 minutes to run to completion.

	- Regards, Robert.

-- 
   Robert Collier   -   Network  Operations   -   Frontier Internet
   ----------------------------------------------------------------
   Disclaimer: The views contained herein may not reflect the views
      of my employer and reliance should not be placed thereon.   

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