🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Niels van Sluis Mon, 20 Jul 1998 00:00
Best way to reset a cycbuff?
#29916
Author: Niels van Sluis
Date: Mon, 20 Jul 1998 00:00
48 lines
2679 bytes
Hi,

I've been working with INN-2.0 for a while now, but I wan't to clean up
everything and start all over again, because I think my databases are
corrupted. This is what happened:

I installed INN-2.0, configured it and ran it. The incoming feed was
working, but readers who wanted to connect, couldn't read anything. INN
said, nope there are no new articles. But a feed was coming in, that's
for sure.

I let INN run the whole night, next day I solved this problem. The
problem was that the wrong overchan was run. The newsfeeds file was
reffering to a directory where my old INN (1.7.2) stood.

When I changed the newsfeeds file and reloaded INND, readers could read
the new articles, but not the articles that came in during night.

The problem that I'm now having is that newsarticles (not in all groups)
are showing up in the wrong newsgroups. All messages that are sent to
alt.test for example aren't readable for clients.

So if a client subscribes to alt.test, it says it got's 1600 articles,
but when you subscibe and fetch the articles, you only get about 170
(and these are all old ones, and articles that shouldn't be in this
group, if you check tha header)

Now I wan't to cleanup everything (overview, spool, history, etc). The
part that's worrying me most is that I have to cleanup my cycbuffs. If I
have to make them again, it will again cost me a lot of time. My
question is: is there a way to cleanup these file, without creating them
again? Or is there an other way to reset your INN.

What happens after a huge crash? What's the best and fastest way to get
your INN running again?

Hope somebody can helps me,

Niels

--
| Niels van Sluis News Administrator MultiAccess |
| Ketelmeerstr.  192 8226JX Lelystad Netherlands |
| Email:    Niels.van.Sluis@admin.big-orange.net |



Re: Best way to reset a cycbuff?
#29913
Author: Steve Rawlinson
Date: Mon, 20 Jul 1998 00:00
26 lines
1393 bytes
>The problem that I'm now having is that newsarticles (not in all groups)
>are showing up in the wrong newsgroups. All messages that are sent to
>alt.test for example aren't readable for clients.
>
>So if a client subscribes to alt.test, it says it got's 1600 articles,
>but when you subscibe and fetch the articles, you only get about 170
>(and these are all old ones, and articles that shouldn't be in this
>group, if you check tha header)

I am seeing the same thing on a inn 2.0/cnfs  test box. The overview
database has just gone completely strange following the first expire
atfer the first cycbuff rollover (about 5 days). Up to then it was
working fine.

Now, some groups have no articles, some have articles in the wrong
group, almost no article bodies are available.

steve

-- 
Steve Rawlinson
ClaraNet Systems
steve@clara.net
0171 903 3000

Re: Best way to reset a cycbuff?
#29918
Author: Hitesh Patel
Date: Mon, 20 Jul 1998 00:00
46 lines
2201 bytes
I have had to do this a couple of times.  Here's how I do it...

1. Shutdown INN (ctlinnd shutdown 'Rebuild')
2. Change DIR to /usr/local/news/db
3. Run this command:

        makehistory -I oindex -O

        This will totally rebuild the history database (this could take a
while depending on the number of articles
        and speed of your machine etc..) and create a file called oindex
will the overview data in it.

4. If the history.n.* files exist do this:

        mv history.n.dir history.dir
        mv history.n.hash history.hash
        mv history.n.index history.index

        NOTE:  Depending on whether you are using tagged-hash or not the
filenames will be different.  If they
        are just move the files so they are like history.dir not
history.n.dir

5. Now you sort the oindex files created by makehistory and pipe it to
expireindex which creates all the
    relevant .overview files in your overview database.

        sort -t' ' +1 -2 oindex | expireindex -a -o -z

6.  Fire INN back up.

This should all work pretty easily.. i've done it a couple of times on
different boxes and it alway's works.


--
Hitesh Patel
Assistant Network Administrator
Preferred Systems
hitesh@presys.com
http://www.presys.com



Re: Best way to reset a cycbuff?
#29929
Author: Robin
Date: Mon, 20 Jul 1998 00:00
44 lines
2305 bytes
I've also seen this, and for my case there are 2 causes.

1. You have your history built on another partition, and the news.daily
didn't move over the history.pag file.  I had to add "mv -f
${EXPDIR}/history.n.pag ${HISTORY}.pag" into the news.daily

2. The partition you put uniover on didn't have enough space to expire.  The
uniover expires the same way history does.  It makes another copy of itself,
so, make sure you have enough space.


Robin

--
Remove nomail and the 2 to e-mail me.
Steve Rawlinson wrote in message <35b314d1.251773083@news.clara.net>...
>>The problem that I'm now having is that newsarticles (not in all groups)
>>are showing up in the wrong newsgroups. All messages that are sent to
>>alt.test for example aren't readable for clients.
>>
>>So if a client subscribes to alt.test, it says it got's 1600 articles,
>>but when you subscibe and fetch the articles, you only get about 170
>>(and these are all old ones, and articles that shouldn't be in this
>>group, if you check tha header)
>
>I am seeing the same thing on a inn 2.0/cnfs  test box. The overview
>database has just gone completely strange following the first expire
>atfer the first cycbuff rollover (about 5 days). Up to then it was
>working fine.
>
>Now, some groups have no articles, some have articles in the wrong
>group, almost no article bodies are available.
>
>steve
>
>--
>Steve Rawlinson
>ClaraNet Systems
>steve@clara.net
>0171 903 3000



Re: Best way to reset a cycbuff?
#29931
Author: Jon Harley
Date: Mon, 20 Jul 1998 00:00
74 lines
3948 bytes
Niels van Sluis <nvs@admin.big-orange.net> writes:
>I've been working with INN-2.0 for a while now, but I wan't to clean up
>everything and start all over again, because I think my databases are
>corrupted. This is what happened:
...
>The problem that I'm now having is that newsarticles (not in all groups)
>are showing up in the wrong newsgroups. All messages that are sent to
>alt.test for example aren't readable for clients.

I got a similar problem and it turned out that my unified overview
files were out of sync. To explain:

When a newsreader (ie nnrpd) requests XOVER information to read a
group, it looks up the numbers from the overview index (files under
"overview") and for each article gets a hash key into the history.
file. The history file contains a token for that article, which
contains details of where it is in a cycbuf, and where its overview
line is in the unified overview (file/s under "uniover"). What happens
if you make a new history file during expire, but fail to make a new
unified overview file (or fail to completely overwrite the old one),
then the new history file will contain new pointers into uniover,
which don't point to the correct entries; usually these pointers
now point into the middle of an overview entry for a completely
different article.

>Now I wan't to cleanup everything (overview, spool, history, etc). The
>part that's worrying me most is that I have to cleanup my cycbuffs. If I
>have to make them again, it will again cost me a lot of time. My
>question is: is there a way to cleanup these file, without creating them
>again? Or is there an other way to reset your INN.

What I found sufficient was to run makehistory, to completely rebuild
the history, unified overview and overview indexes. This worked fine;
it turned out that all the articles in cycbufs were still there and
weren't at all corrupted themselves. I suggest you try that (though
beware, I found that makehistory *failed* to write any uniover data
when I used the -th flag; don't use it).

If makehistory doesn't get everything back to rights, and you decide
you want to reset your cycbufs, I found you can do this by zeroing
the first 3600 bytes of the cycbuf, such as with this program:

#include <stdio.h>

int main (int argc, char *argv[]) {
  FILE *toblast;
  int ix;

  toblast = fopen (argv[1], "w");

  for (ix = 0; ix < 3600; ix++)
    fputc(0, toblast);

  fclose(toblast);
}

You give this program the name of the cycbuf file, or block special
file if that's what you're using. innd should not be running when
you do this, and when you next start innd it should reinitialise
the cycbuf OK.

I haven't used this method since the first day I started running
INN2.0, so I don't know whether makehistory can still find articles
in a cycbuf which has been reset in this way.


/Jon
-- 
______________________________________________________________________________
Dr JW Harley               J.W.Harley@warwick.ac.uk                IT Services
Phone: 01203 524217       UNIX/Networking Consultant     University of Warwick
See  http://www.warwick.ac.uk/J.W.Harley/  for fax number, address and PGP key

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