🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Barry Brown Thu, 06 Aug 1992 18:59
nnmaster exits with code 7 at midnight
#2968
Author: Barry Brown
Date: Thu, 06 Aug 1992 18:59
43 lines
2801 bytes
Every night for the last week nnmaster has died on my machine with
exit code 7.  It happens at midnight.  Here is an excerpt from the log
file:

C: Aug  5 23:35 (M): Collect: 124 art, 98 gr, 23 s
C: Aug  5 23:45 (M): Collect: 97 art, 72 gr, 16 s
C: Aug  5 23:55 (M): Collect: 113 art, 76 gr, 22 s
E: Aug  6 00:06 (M): /private/spool/news
E: Aug  6 00:06 (M): Abnormal termination, exit=7
A: Aug  6 05:00 (news): SEND X (all)   0
M: nnmrestart: nnmaster was not running
M: Aug  6 07:00 (M): Master started -r10 -e0 -E1
M: Aug  6 07:03 (M): Database validation completed
A: Aug  6 07:03 (M): RECV X (all)   0 (news Aug  6 05:00)
X: Aug  6 07:15 (M): Expire: 8988 art, 885 gr, 710 s
C: Aug  6 07:25 (M): Collect: 3811 art, 719 gr, 607 s
C: Aug  6 07:37 (M): Collect: 422 art, 259 gr, 87 s
C: Aug  6 07:48 (M): Collect: 169 art, 119 gr, 70 s

At midnight, something apparently happens to /private/spool/news (NFS
mounted from one of the news servers on campus) which causes nnmaster to
die.  At 5am, cron starts the expiration process.  At 7am, a script I wrote
detects that nnmaster had deceased and restarts it.  Expriation takes places
(belatedly) and then collection starts again.  Collection and nn operation
runs normally all day until midnight the next night, when the same thing
happens again.

Other than writing the restart script, my nn setup hasn't changed over the
past two weeks.

The /var/spool/news (/private/spool/news on my end) and /usr/lib/news
directories are NFS mounted from another machine which has been my news
server for the past year.  No problems there until they switched to FDDI,
which caused me to have to mount their disks with a smaller packet size (so
FDDI didn't flood my ethernet connection).

Can some light be shed on this?

-- 
Barry E. Brown        --        \  UCSD Instructional Computing Center
bebrown@ucsd.{edu,uucp,bitnet}   \   Anime Stuff FTP Server administrator
Somewhere in San Diego, CA.....   \    (ftp network.ucsd.edu [132.239.254.203])
"Stimpy, sometimes your wealth of ignorance astounds me." -- Ren
Re: nnmaster exits with code 7 at midnight
#2971
Author: Barry Brown
Date: Fri, 07 Aug 1992 16:54
37 lines
2527 bytes
In <15rsq7INN2t4@network.ucsd.edu> zz1bb@impending.ucsd.edu (Barry Brown) writes:

>Every night for the last week nnmaster has died on my machine with
>exit code 7.  It happens at midnight.  Here is an excerpt from the log
>file:

>C: Aug  5 23:35 (M): Collect: 124 art, 98 gr, 23 s
>C: Aug  5 23:45 (M): Collect: 97 art, 72 gr, 16 s
>C: Aug  5 23:55 (M): Collect: 113 art, 76 gr, 22 s
>E: Aug  6 00:06 (M): /private/spool/news
>E: Aug  6 00:06 (M): Abnormal termination, exit=7
>A: Aug  6 05:00 (news): SEND X (all)   0
>M: nnmrestart: nnmaster was not running
>M: Aug  6 07:00 (M): Master started -r10 -e0 -E1
>M: Aug  6 07:03 (M): Database validation completed
>A: Aug  6 07:03 (M): RECV X (all)   0 (news Aug  6 05:00)
>X: Aug  6 07:15 (M): Expire: 8988 art, 885 gr, 710 s
>C: Aug  6 07:25 (M): Collect: 3811 art, 719 gr, 607 s
>C: Aug  6 07:37 (M): Collect: 422 art, 259 gr, 87 s
>C: Aug  6 07:48 (M): Collect: 169 art, 119 gr, 70 s

OK, the sysadmin of my news server fessed up and said that the NFS volumes
are unexported during the news expire on his machine.  During that time, the
news is, of course, inaccessible and this is why nnmaster is dying at
midnight.

I am now wondering if there is a way to make nnmaster not give up so easily
while collecting articles.  I bumped the number of NFS retires up from 2 to
10 yesterday (the -y option for nnmaster), but that did no good.  Can
nnmaster be told to just keep trying the filesystem until it comes back up?
Because it will, eventually, do so.

-- 
Barry E. Brown        --        \  UCSD Instructional Computing Center
bebrown@ucsd.{edu,uucp,bitnet}   \   Anime Stuff FTP Server administrator
Somewhere in San Diego, CA.....   \    (ftp network.ucsd.edu [132.239.254.203])
"Stimpy, sometimes your wealth of ignorance astounds me." -- Ren
Re: nnmaster exits with code 7 at midnight
#2976
Author: Andreas Karrer
Date: Fri, 07 Aug 1992 19:15
26 lines
1881 bytes
zz1bb@impending.ucsd.edu (Barry Brown) writes:

>In <15rsq7INN2t4@network.ucsd.edu> zz1bb@impending.ucsd.edu (Barry Brown) writes:

>>Every night for the last week nnmaster has died on my machine with
>>exit code 7.  It happens at midnight.  Here is an excerpt from the log

[...]

>OK, the sysadmin of my news server fessed up and said that the NFS volumes
>are unexported during the news expire on his machine.  During that time, the
>news is, of course, inaccessible and this is why nnmaster is dying at
>midnight.

- don't access the server's news spool via NFS. That's what NNTP is for.
- your news server sysadmin should run nnmaster on the news server,
- he should export the nn database by NFS (read-only, to the world),
- you could then stop worrying about nnmaster, nnadmin etc. and just use nn.

I had around 20 nnmasters (and mthreads daemons) grabbing 15'000 article
headers daily from my poor nntp server. exporting the nn and trn databases
sure helped.

+-----------
  Andi Karrer, Communication Systems, ETH Zuerich, Switzerland
  karrer@bernina.ethz.ch    - Objects in mirror are closer than they appear
Re: nnmaster exits with code 7 at midnight
#2978
Author: Dave Olson
Date: Mon, 10 Aug 1992 06:58
28 lines
2227 bytes
In <15u9rnINNaku@network.ucsd.edu> zz1bb@impending.ucsd.edu (Barry Brown) writes:
..
| OK, the sysadmin of my news server fessed up and said that the NFS volumes
| are unexported during the news expire on his machine.  During that time, the
| news is, of course, inaccessible and this is why nnmaster is dying at
| midnight.
| 
| I am now wondering if there is a way to make nnmaster not give up so easily
| while collecting articles.  I bumped the number of NFS retires up from 2 to
| 10 yesterday (the -y option for nnmaster), but that did no good.  Can
| nnmaster be told to just keep trying the filesystem until it comes back up?
| Because it will, eventually, do so.

nn 6.4.16 should do this, with one set of options.  I haven't done this
for some time, since doing it that way is a big lose, so I don't
remember if it was part of the retry code, or some set of options.  Run
nnmaster ON the news machine; it will reduce the load on the news
machine, the network, and reduce admin time also.  That should be
enough to convince the admin of the news machine (the first 2 anyway,
assuming you are willing to continue to administer nn).

If you absolutely can't run nnmaster on the news machine, simply add a
cron entry to restart nnmaster an hour or so after the filesystems are
re-exported.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
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