🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5203

Re: innd: ME cant dbzstore Cross-device link

#5203
From: kostya
Date: Fri, 23 Feb 1996 00:00
109 lines
3651 bytes
In article <kemper-2202960852100001@port2.xyplex-2.bihs.net> kemper@bihs.net  
(Butch Kemper) writes:
>The expire process said:
>
>Expire messages:
>expire begin Thu Feb 22 01:30:35 CST 1996: (-v1 -l)
>    Can't store key, No such file or directory
>    Expire errors: history files not updated.
>    Article lines processed   831932
>    Articles retained         717200
>    Entries expired           114732
>    Files unlinked            155597
>    Old entries dropped       112216
>    Old entries retained      876167
>    expire end Thu Feb 22 06:40:29 CST 1996
>
>Innd said in the log:
>
>Feb 22 05:53:41 brazos innd: ME cant dbzstore Cross-device link
>
>Can anyone offer me some advice on what is happening and what to do about
>it.  Things have been running very smoothy until now.
>
>Thanks.
>
>Butch
>

We had the same problem. Innd crashed twice with this message:

innd: ME cant dbzstore Interrupted system call

Someone said that inn1.4unoff3 survived this. Maybe it was fixed in that  
version.

And there were more than two messages. Here is the list of incorrect cancel  
messages that I found. Only two of them caused problems.

<312be30f.230929747@news.ak.net>
<312be33a.230973515@news.ak.net>
<312be369.231020511@news.ak.net>
<312be2de.230881309@news.ak.net> *
<312be3b9.231099808@news.ak.net>
<312be3e5.231144236@news.ak.net>
<312be107.230410169@bogus.id.net> *

So expire didn't like that and didn't update any of the history* files. And  
that is bad, because it will happen again next night and so on.

In the history file you will find a line with one of those message ids and next  
line will have more than one message id in it - ids of cancelled massages. That  
second line if too long causes dbzstore to fail. So we need to remove those  
second lines.

To fix this I did the following:

1. ctlinnd throttle "fix"

2. removed bad lines from history file - lines that have more than one message  
id. I wrote a smiple C program to do that. Run it like this:

fixh >history.n

It creates a new history file without those lines.

3. Then rebuild dbz files:

makehistory -f history.n -r

If everything is ok:

mv history.n history
mv history.n.dir history.dir
mv history.n.pag history.pag

4. ctlinnd go "fix"

Took about 10 minutes on P100 with 110M history.

Here is the source of fixh:
---------------------------------
#include        <stdio.h>
#include        <string.h>

#define         BUFSZ   10000
#define		HISTORY	"/var/news/etc/history"

char line[BUFSZ];

main()
{
        FILE *hp;
        char *lp, *gp;

        if ((hp = fopen(HISTORY, "r")) == NULL) {
                printf("can't open history file\n");
                exit(1);
        }

        while (fgets(line, BUFSZ, hp) != NULL) {
                lp = rindex(line, '<');
                gp = index(line, '>');
                if (!(lp && gp && lp > gp))
                        fputs(line, stdout);
        }
        fclose(hp);
}

Technical Details
Message-ID: <4gla62$936@kaleka.seanet.com>
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: <kemper-2202960852100001@port2.xyplex-2.bihs.net>

Show Full Headers
Complete Article Headers
Message-ID: <4gla62$936@kaleka.seanet.com>
Subject: Re: innd: ME cant dbzstore Cross-device link
Date: Fri, 23 Feb 1996 00:00:00 +0000
From: kostya@osd.com
References: <kemper-2202960852100001@port2.xyplex-2.bihs.net>
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: 140778686
Distribution: inet
Organization: Seanet Online Services, Seattle WA
Reply-to: kostya@osd.com
Newsgroups: news.software.nntp