🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Moe Thu, 01 Nov 2001 16:10
Corrupted Newsgroups
#54929
Author: Moe
Date: Thu, 01 Nov 2001 16:10
13 lines
1361 bytes
I run a small news server for a group of friends using inn-2.3.1-2 on RedHat
7.1.. The server crashed (due to a power failure) and when it came back up
the newsgroups were corrupted. Some old posts don't appear to be there, some
new posts show up and but others do not (and apparently not everyone gets or
does not get the same posts). Is there a way to rebuild the newsgroups or
some other way to correct this problem?

Thanks for the help.
Moe



Re: Corrupted Newsgroups
#54930
Author: Jeffrey M. Vinocur
Date: Thu, 01 Nov 2001 17:02
14 lines
1388 bytes
In article <20011101111044.632$7t@news.newsreader.com>,
Moe <mcaen@hotmail.com> wrote:
>I run a small news server for a group of friends using inn-2.3.1-2 on RedHat
>7.1.. The server crashed (due to a power failure) and when it came back up
>the newsgroups were corrupted.

Rebuild your overview using `makehistory` (with the appropriate
flags, read the manpage).


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Corrupted Newsgroups
#54936
Author: Black Dragon
Date: Fri, 02 Nov 2001 01:30
62 lines
2684 bytes
Jeffrey M. Vinocur wrote:

: In article <20011101111044.632$7t@news.newsreader.com>,
: Moe <mcaen@hotmail.com> wrote:
:>I run a small news server for a group of friends using inn-2.3.1-2 on RedHat
:>7.1.. The server crashed (due to a power failure) and when it came back up
:>the newsgroups were corrupted.
: 
: Rebuild your overview using `makehistory` (with the appropriate
: flags, read the manpage).

I'm a hobbyist who runs a small INN server (suck/rpost) on Linux for 
myself and have un-reliable power and no UPS. I use this script I 
cobbled together to recover from un-expected shutdowns. By all means, 
read the INN documentation before proceeding. HTH.

++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh

# makehistory -b -O
# makedbz -i
# ctlinnd renumber ""
# expireover lowmark delayrm

cd /usr/local/news &&

crontab -r &&

rc.news stop &&

killall -9 sleep &&  # rc.news should do this, I'm lazy. :-)

rm /usr/local/news/db/history* &&

rm -rf /var/spool/news/overview/* &&

cd db &&

makehistory -b -O &&

makedbz -i &&

mv history.n.dir history.dir &&

mv history.n.hash history.hash &&

mv history.n.index history.index &&

cd ..

rc.news start &&

ctlinnd renumber "" &&

expireover lowmark delayrm &&

crontab crontab
++++++++++++++++++++++++++++++++++++++++++++++++++++

-- 
Black Dragon
Re: Corrupted Newsgroups
#54939
Author: Jeffrey M. Vinocur
Date: Fri, 02 Nov 2001 04:47
20 lines
1643 bytes
In article <slrn9u3tan.qqu.blkdragn@localhost.localdomain>,
Black Dragon <blkdragn@rochester.rr.com.invalid> wrote:

>I'm a hobbyist who runs a small INN server (suck/rpost) on Linux for 
>myself and have un-reliable power and no UPS. I use this script I 
>cobbled together to recover from un-expected shutdowns. By all means, 
>read the INN documentation before proceeding. HTH.

And if you're going to use it verbatim (it looks pretty nice,
btw), be sure there's a file for crontab to install in the last
line:


>crontab crontab


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Corrupted Newsgroups
#54947
Author: Moe
Date: Fri, 02 Nov 2001 14:10
8 lines
1105 bytes
You're script worked perfectly.

Thank you.
Moe



Re: Corrupted Newsgroups
#54969
Author: Black Dragon
Date: Mon, 05 Nov 2001 01:15
12 lines
1573 bytes
Moe wrote:

: You're script worked perfectly.
: 
: Thank you.

You're welcome, and I hope you took it at face value and *read* about
the commands used.

-- 
Black Dragon
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