🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
9 messages
9 total messages Started by Sikerin Andrei Mon, 16 Aug 1999 00:00
solaris2.6 and inn2.2
#39205
Author: Sikerin Andrei
Date: Mon, 16 Aug 1999 00:00
12 lines
1163 bytes
Hi, all
I've got such problem -- when I connect to server I see in news.err logs
messages such thing: nnrpd[ ] actived socket couldnt be read AYTACK
Connection refused . I see this message twice, and then I connect. It stops
work for about 5 or 10 seconds....
Maybe somebody saw such thing. Server is Inn 2.2.  OS is Solaris 2.6.

Sikerin Andrei



Re: solaris2.6 and inn2.2
#39202
Author: Sikerin Andrei
Date: Mon, 16 Aug 1999 00:00
15 lines
1297 bytes
Thank you. Actived has really died.

Sikerin Andrei
>
>    Make sure that actived is running (it has a nasty habit of frequently
>and silently dying).  If it is running, it might be hung and should be
>killed and restarted.
>
>--
>Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
>    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>



Re: solaris2.6 and inn2.2
#39213
Author: Brad Knowles
Date: Mon, 16 Aug 1999 00:00
18 lines
1501 bytes
In article <7p9ae7$t3$1@news247.ctel.msk.ru>, "Sikerin Andrei"
<ctandrs@cnt.ru> wrote:

> I've got such problem -- when I connect to server I see in news.err logs
> messages such thing: nnrpd[ ] actived socket couldnt be read AYTACK
> Connection refused . I see this message twice, and then I connect. It stops
> work for about 5 or 10 seconds....
> Maybe somebody saw such thing. Server is Inn 2.2.  OS is Solaris 2.6.

    Make sure that actived is running (it has a nasty habit of frequently
and silently dying).  If it is running, it might be hung and should be
killed and restarted.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: solaris2.6 and inn2.2
#39310
Author: Tony Mountifield
Date: Fri, 20 Aug 1999 00:00
25 lines
1545 bytes
Sikerin Andrei <ctandrs@cnt.ru> wrote in message
news:7p9d1j$10e$1@news247.ctel.msk.ru...
> Thank you. Actived has really died.
>
> Sikerin Andrei
> >
> >    Make sure that actived is running (it has a nasty habit of frequently
> >and silently dying).  If it is running, it might be hung and should be
> >killed and restarted.

I have found actived dies and dumps core every so often. I have the
following line in news crontab to restart it when needed:

# restart actived if it died
* * * * * ps -efo comm | grep actived >/dev/null || /data/news/bin/actived

Cheers,
Tony
--
Tony Mountifield
NTL Internet, Hook



Re: solaris2.6 and inn2.2
#39325
Author: Russ Allbery
Date: Sat, 21 Aug 1999 00:00
17 lines
1270 bytes
Tony Mountifield <tony.mountifield@ntli.net> writes:

> I have found actived dies and dumps core every so often. I have the
> following line in news crontab to restart it when needed:

> # restart actived if it died
> * * * * * ps -efo comm | grep actived >/dev/null || /data/news/bin/actived

actived stopped dying on me as soon as I switched to using controlchan to
process control messages, for what it's worth.  I'd previously traced the
instability to lots of changes in the length of the active file between
reads.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: solaris2.6 and inn2.2
#39379
Author: Russ Allbery
Date: Tue, 24 Aug 1999 00:00
45 lines
2351 bytes
Brad Knowles <brad@shub-internet.org> writes:

> Now that I think about it, the times when I've seen the most reports
> from my monitor program that restarts actived when it dies, has been
> when there have been lots of newsgroups being added/deleted from the
> active file, either by actsync or by some of my manual actions in
> response to a checkgroups.

> This on INN 2.1 running on a DEC Alpha 1000 w/ Digital Unix 4.0B.

It's not that hard to track down.  GetGroupList() calls ReadInFile(),
which calls ReadInDescriptor().  It promptly does:

    /* Get the size, and enough memory. */
    if (fstat(fd, Sbp) < 0) {
        oerrno = errno;
        (void)close(fd);
        errno = oerrno;
        return NULL;
    }
    p = NEW(char, Sbp->st_size + 1);

    /* Slurp, slurp. */
    if (xread(fd, p, (OFFSET_T)(Sbp->st_size)) < 0) {
        oerrno = errno;
        DISPOSE(p);
        (void)close(fd);
        errno = oerrno;
        return NULL;
    }

So if the file grows or shrinks between the fstat() and xread(),
ReadInDescriptor() returns NULL, which causes GetGroupList() to return
FALSE, and actived promptly does an exit(1).

I haven't bothered to try to find a good way of fixing it since actived
got yanked out with Clayton's changes in 2.3 and if it comes back, it'll
be in a much-modified form.  It might be worth fixing ReadInDescriptor()
at some point if anything else in INN calls it on a file that could be
changing, though.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Re: solaris2.6 and inn2.2
#39385
Author: Jan Chrillesen
Date: Tue, 24 Aug 1999 00:00
14 lines
1481 bytes
Russ Allbery <rra@stanford.edu> wrote:

> actived stopped dying on me as soon as I switched to using controlchan to
> process control messages, for what it's worth.  I'd previously traced the
> instability to lots of changes in the length of the active file between

Sounds right to me. I've only seen actived die twice during the last 6
months. Both times after I manually added groups to the active file.

(This is 2.2-stable from a few months back on Solaris 2.7/SPARC)

/jan

Re: solaris2.6 and inn2.2
#39451
Author: Brad Knowles
Date: Wed, 25 Aug 1999 00:00
19 lines
1731 bytes
In article <7puu0a$rl5$1@news.inet.tele.dk>, Jan Chrillesen
<chrille@isa.dknet.dk> wrote:

> Sounds right to me. I've only seen actived die twice during the last 6
> months. Both times after I manually added groups to the active file.

    Now that I think about it, the times when I've seen the most reports
from my monitor program that restarts actived when it dies, has been when
there have been lots of newsgroups being added/deleted from the active
file, either by actsync or by some of my manual actions in response to a
checkgroups.

    This on INN 2.1 running on a DEC Alpha 1000 w/ Digital Unix 4.0B.

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: solaris2.6 and inn2.2
#47051
Author: RULER OF ALL USENET
Date: Thu, 22 Jun 2000 00:00
70 lines
3603 bytes
On 24 Aug 1999, Russ Allbery wrote:

> Brad Knowles <brad@shub-internet.org> writes:
> > Now that I think about it, the times when I've seen the most reports
> > from my monitor program that restarts actived when it dies, has been
> > when there have been lots of newsgroups being added/deleted from the
> 
> It's not that hard to track down.  GetGroupList() calls ReadInFile(),
> which calls ReadInDescriptor().  It promptly does:
>     /* Slurp, slurp. */
> So if the file grows or shrinks between the fstat() and xread(),
> ReadInDescriptor() returns NULL, which causes GetGroupList() to return
> FALSE, and actived promptly does an exit(1).

Heh.  Well, today we had actived die on our 2.something box,
which happens to be Slowaris 2.7, and attempting to start it
resulted in an immediate crash coredump powie whizbang thingy.

Now I looked through the logs after getting running to confirm
that it had indeed died immediately following an rmgroup, as I
suspected.

How did I get it to start again?  Simple.  Add a newgroup.  Then
no problems.

Why?  The size of our active file before I frobbed it into shape
was 1417216 bytes.  Where did it die?  in strchr() which is part
of GetLocalGroupList() in group.c (note that this k0de dates from
15.Nov 1998 in more-than-year-old source)......

    /* Get the new file. */
    active = XReadInFile(ACTIVE, (struct stat *)NULL);
    if (active == NULL) {
        syslog(L_ERROR, "%s cant read %s %m", ClientHost, ACTIVE);
        return FALSE;
    }
    /* Count lines. */
    for (p = active, i = 0; (p = strchr(p, '\n')) != NULL; p++, i++)
        continue;
                                 ^^^^^^

It'll be my luck that this was fixed before it was ripped from
the newer k0deZ.

I see an identical line in current k0de storage/ov.c:

/*
**  Build the newsgroup structures from the active file.
*/
STATIC void BuildGroups(char *active)
{
    NGHASH              *htp;
    NEWSGROUP           *ngp;
    char                *p;
    char                *q;
    int                 i;
    unsigned            j;
    int                 lines;
    int                 NGHbuckets;
    char                *fields[5];
    /* Count the number of groups. */
    for (p = active, i = 0; (p = strchr(p, '\n')) != NULL; p++, i++)
        continue;

The difference I see is that this just uses ReadInFile(), while
actived looks to be using mmap() in XReadInFile().



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