🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #488

Re: Annoying nnmaster aborts

#488
From: Kim F. Storm
Date: Mon, 28 May 1990 20:59
54 lines
3039 bytes
rasmus@dmntor.uucp (Rasmus Lerdorf) writes:

>Why why why?

Because it is easier that way - and something is *definitely* wrong!!

>It has been annoying me for a while now.  nnmaster aborts with exit status
>7 if there is the slightest little inconsistency in the news spool 
>directories.

I think you should appreciate nnmaster detecting this at all since it
may very well also prevent news itself from functioning properly.
But if this "has annoyed you for a while", then I suppose this isn't the
first time inconsistencies have occurred in your setup?  I think you
should find the cause of that rather than being annoyed with nnmmaster
- it simply assumes that your news system is consistent - which it should
be if it is running properly!

>For example, I had the wrong ownership on my ut.software.tex
>directory, and this is what I got in the log:
>E: May 26 09:59 (M): ut.software.tex (419): cannot open 'x' file (mode=82, errno
>=13)
>E: May 26 09:59 (M): Abnormal termination, exit=7

You should be happy :-)   In 6.4.0, it would just have said:

E: May 26 09:59 (M): cannot open: '.nnx' (mode=82, errno=13)

Now, that would really have *annoyed* you, right?

>So?  I fixed the permission and re-ran nnmaster.  No big deal, but the
>point is that I had no idea the silly thing had terminated on me.  If
>it has to stop, it could at least send a message to news stating that
>it has aborted.  Could it not just ignore the above error, notify me
>of the problem, and skip onto the next group?

You are welcome to make some changes to sys_error() in global.c which
causes a terminating nnmaster send a message to the "news" account
(or maybe OWNER would be better?).  Actually, that would be "great"!

Making nnmaster continue after this kind of error is a bit hard, since
the rest of the code isn't written to handle the error (that is why it
terminates!).  But I honestly think termination is ok, since it has
detected a *significant* problem in the news hierarchy!  Or in the
way you operate nnmaster!

Suppose, you have specified that nnmaster should place its files in
the group directories, but you don't run it as "news".  Then it will
definitely not be able to create the files it needs - isn't that
reason enough to terminate?

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
Technical Details
Message-ID: <572@texas.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!tidk!storm
References: <1990May27.165708.1995@dmntor.uucp>

Show Full Headers
Complete Article Headers
Message-ID: <572@texas.dk>
Subject: Re: Annoying nnmaster aborts
Date: Mon, 28 May 1990 20:59:35 +0000
From: storm@texas.dk (Kim F. Storm)
References: <1990May27.165708.1995@dmntor.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!dkuug!tidk!storm
Newsgroups: news.software.nn
Organization: Texas Instruments, Denmark
Lines: 54
Posted: Mon May 28 21:59:35 1990