Article View: news.software.nntp
Article #19174Re: inn 1.5.1 oddities with Solaris 2.5 + what INN patches are recommended?
From: Forrest J. Cavalier III
Date: Fri, 11 Jul 1997 00:00
Date: Fri, 11 Jul 1997 00:00
75 lines
3442 bytes
3442 bytes
Posted and e-mailed
In article <5q58mc$m6s@lyra.csx.cam.ac.uk>, news@news.cam.ac.uk wrote...
[snip]
>
>Now the awkward question.. I've been seeing an intermittent oddity (not at
>all for a few days, but up to 10 or so times on other days) in the
>news.notice file that is written via syslog. It seems to be harmless apart
>from junk lines, which then get quoted in the news.daily report, but it may
>mean that a couple of genuine log entries are getting lost and may be a
>symptom of something more serious... So I'm wary of just ignoring it.
>
>What I actually see are news.notice entries like
>
>Jul 10 06:47:00 the.host.name Jul 10 06:46:15
>
[snip]
I'm busy, so I apologize for not looking into the details and
sources thoroughly. This is not necessarily your problem, but it might
be. It is the only time I remember seeing a problem similar to what
you describe. (You say you checked into syslogd problems, etc.)
In any case it is an obscure bug, which I can't remember reporting
to James....And I can't remember seeing anything about it.
I vaguely recall that nntpsend opens up a log file, which it passes
to its multiple children as a file descriptor. That is not a problem,
actually, since all the children get the same file descriptor. But....
Remember nntpsend is run from cron if you are using innxmit, or sending
news in batches. The problem I remember seeing is that cron would run
nntpsend every 10 minutes (or whatever.) And at the second time it
was run, there could be some innxmits finished, and some not. This could
result in opening a SECOND file descriptor, while the others were still
open. This creates corrupted log entries.
James, is this a known problem?
I think the easiest fix is to use innfeed, which uses syslog.
- - - - - -
Now, back the the original poster's problem....
Normally, nntpsend writes to the log file:
${MOST_LOGS}/${PROGNAME}.log
But if you were too "clever" you might have changed this to:
${MOST_LOGS}/news.notice
In addition to having the possibility of nntpsend having opened
multiple descriptors, you also have syslogd holding onto a descriptor.
I realize that none of this may be your problem. But it took many
hours for me to track down why nntpsend.log was corrupt. All the
obscure shell features that INN shell scripts use are just terrible
to understand and maintain. (Anyone care to add a field to control.ctl?
:-) Anyone who changes IFS to process files is doing everyone a
disservice....IMHO.)
But, I'm rambing....
I hope that this post may give you some ideas on places to look, and
save some hair pulling.
Forrest Cavalier, Mib Software, INN customization and consulting
Searchable hypertext docs: INN FAQ, usenet RFCs, man pages, more:
http://www.mibsoftware.com/userkt/forprov.htm
Technical Details
Message-ID:
<5q5g3e$8hf$1@news1.epix.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-mailReferences:
<5q58mc$m6s@lyra.csx.cam.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <5q5g3e$8hf$1@news1.epix.net> Subject: Re: inn 1.5.1 oddities with Solaris 2.5 + what INN patches are recommended? Date: Fri, 11 Jul 1997 00:00:00 +0000 From: mibsoft@epix.net (Forrest J. Cavalier III) References: <5q58mc$m6s@lyra.csx.cam.ac.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 X-Deja-AN: 256190422 Organization: Mib Software Newsgroups: news.software.nntp