🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #18815

Re: nnrpd.c: This shouldn't really happen.

#18815
From: Joshua Goodall
Date: Fri, 27 Jun 1997 00:00
42 lines
2474 bytes
In article <5opujp$ir4$2@news.stetson.edu>
          andrew@stetson.edu (Andrew Anderson) wrote:

> Let's try this again...
> 
> Quick summary: Solaris 2.5.1 latest patch level, INN 1.5.1.
> 
> From the logs:
> Jun 24 21:00:07 server nnrpd[1367]: client connect
> Jun 24 21:00:07 server nnrpd[1367]: client internal newline "..."
> Jun 24 21:00:07 server nnrpd[1367]: client cant getgrouplist Permission denied
> Jun 24 21:00:07 server nnrpd[1367]: client exit articles 0 groups 0
> Jun 24 21:00:07 server nnrpd[1367]: client times user 0.010 system 0.020 elapsed 0.023
> 
> I tracked "cant getgrouplist" to nnrpd/nnrpd.c, right below the comment 
> that "This shouldn't really happen."
> 
> Well, it did.  How do I fix it?  I'm using the same config.data from a
> working INN on another server.  Incoming news appears to work, just no
> news readers (used both tin and slrn to verify).

Looking at the source, this error is actually triggered in nnrpd/group.c in
GetGroupList(). I'm not too familiar with this chunk of the INN source, but
it's scanning through the active file, and at this point looking for a
newline. The error is raised when no such newline exists.

Unless some memory management or IO error is to blame, it is possible/
probable that your active file is corrupt. At the simplest, this might be a
single newline missing at the very end of file. This is easily fixed but if
your active file is truly mangled then you should rebuild it by running
makeactive, then actsyncing the output with the actives from your feeders,
then renumbering everything.

I can't speak authoritatively (ask James Brister?) but think this is
close to the mark.

-- 
Joshua Goodall           Un*x, INN & Usenet, sax/flute, coffee, discordia
                             ...I am not a number, I am a free(3) man(1)!

Technical Details
Message-ID: <7e8490a047@eris.ednet.co.uk>
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: <5opu86$ir4$1@news.stetson.edu> <5opujp$ir4$2@news.stetson.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7e8490a047@eris.ednet.co.uk>
Subject: Re: nnrpd.c: This shouldn't really happen.
Date: Fri, 27 Jun 1997 00:00:00 +0000
From: Joshua Goodall <joshua@eris.ednet.co.uk>
References: <5opu86$ir4$1@news.stetson.edu> <5opujp$ir4$2@news.stetson.edu>
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: 253072765
X-Posting-Agent: RISC OS Newsbase 0.59b
Organization: The Beaton Wok
Newsgroups: news.software.nntp