INN 2.4.0 and overview problems

Kathryn Hemness kfhemness at ucdavis.edu
Tue Dec 30 21:36:05 UTC 2003



I had this problem several months ago.  Turning off mmap use in the inn.conf file
didn't help me.  One of the other subscribers (mohan) of this list sent me the
following code to remove overview corruption manually:


--->8-----------------------8<--------------------------------------------
/*
 * tool to remove corrupt buffindex groups
 * compile with (from within inn source dir):
 * gcc -Iinclude fixbuff.c -o fixbuff -L/news/lib -lstorage -linnhist -linn
 * retrieve bad group entry from active, and then cut/paste the
 * active file entry as arguments:
 * # egrep alt.verio /news/db/active
 * alt.verio 0000000027 0000000025 y
 * # ./fixbuff alt.verio 0000000027 0000000025 y
 */
#include <stdio.h>
#include <ov.h>

int usage(void) {
   fprintf(stderr, "usage: prog groupname himark lomark flag\n"
                   "eg.  ./prog alt.verio 0000000027 0000000025 y\n");
   exit(0);
}

int main(int argc, char **argv) {
   char *grp, *flag;
   long himark, lomark;

   if ( argc != 5 ) usage();

   grp    = argv[1];
   himark = atol(argv[2]);
   lomark = atol(argv[3]);
   flag   = argv[4];

   if ( !OVopen(OV_READ|OV_WRITE) ) {
      fprintf(stderr, "can't open overview\n");
      return -1;
   }
   if ( !OVgroupdel(grp) ) {
      fprintf(stderr, "can't remove specified group\n");
      OVclose();
      return -1;
   }
   if ( !OVgroupadd(grp, himark, lomark, flag) ) {
      fprintf(stderr, "can't readd specified group\n");
      OVclose();
      return -1;
   }

   fprintf(stderr, "group successfully removed and readded\n");
   OVclose();

   return 0;
}
--->8-----------------------8<--------------------------------------------


The above code helped but did not eliminate the problem.

Ultimately, because the error messages were related to "Hidden Groups", I
turned of automatic creation of newsgroups (thinking there might be some
new newsgroup names which are causing problems.  I know that this solution makes
my active file out of date, but my clients haven't noticed and I've only had the
errors repeat once since.


--kathy

===============================================================================
Kathryn Hemness                        kfhemness at ucdavis.edu
System Administrator                   phone: 530.752.6547
Campus Data Center & Client Services   fax:   530.752.9154

On Tue, 30 Dec 2003, [iso-8859-2] Przemys³aw Maciuszko wrote:

> Date: Tue, 30 Dec 2003 12:53:24 +0100
> From: "[iso-8859-2] Przemys³aw Maciuszko" <sal at agora.pl>
> To: inn-workers at isc.org
> Subject: Re: INN 2.4.0 and overview problems
>
> On Sun, Dec 21, 2003 at 10:56:11AM +0100, Przemys³aw Maciuszko wrote:
>
> > Hi again.
> > Time goes by and I got more and more of those errors:
> > Dec 20 01:23:59 inews expireover[29047]: [ID 260700 news.error] buffindexed:
> > could not open overview for 'it.fan.musica.u2'
> > Dec 20 01:24:13 inews expireover[29047]: [ID 188097 news.error] buffindexed:
> > ovgroupmmap ovbuff is null(ovindex is 12850,
> > +ovblock is 825241648
>
> Really nobody had this problem? And no solution for this? The problem
> becomes bigger and bigger :(
>
>
> --
> Przemys³aw Maciuszko
> Agora SA
>
>



More information about the inn-workers mailing list