Thread View: news.software.nntp
3 messages
3 total messages
Started by USENET news
Fri, 11 Jul 1997 00:00
inn 1.5.1 oddities with Solaris 2.5 + what INN patches are recommended?
Author: USENET news
Date: Fri, 11 Jul 1997 00:00
Date: Fri, 11 Jul 1997 00:00
67 lines
4135 bytes
4135 bytes
First, the relatively easy question...
What patches would people recommend should be installed either (a) on all
INN 1.5.1 servers, or (b) servers with particular requirements or workloads?
We've been running INN 1.4unoff4 with Solaris 2.5 on a SPARCserver 10/51 for
some time as our main news server, and I've been running INN 1.5.1 on a
couple of test servers (one on Solaris 2.5, one on Solaris 2.5.1) receiving
test feeds from the main server - no "real" outbound feeds (just some
statistics-gathering channel feeds) and very little reading activity.
The test servers currently have just the security patch, an updated
crosspost (the standard one sometimes got confused when articles were
cancelled before it tried to create links to them), and a couple of local
patches to allow logging of ident lookup responses. I've not seen any
problems with them (but the only part tested thoroughly has been handling of
inbound feeds...), so I'd appreciate advice on other patches I should
install before using 1.5.1 "live".
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
i.e. timestamp and (correct) hostname, then instead of a normal log entry,
what appears to be just the timestamp from an earlier log entry (that does
not appear in complete form earlier in the log).
Where there was a spate of these log entries, it sometimes looked like they
might be e.g. 10 minutes (approx) apart, but I've checked the "obvious"
possibility and there were no cron jobs running with the right frequency
(mostly once per hour or day). It could, possibly, tie in with when innwatch
wakes up (INNWATCH_SLEEPTIME is 600 seconds), but there doesn't appear to be
much real consistency in the times in the odd log entries.
I reported this as a possible INN bug when I first saw it, but James
Brister couldn't see how INN would be doing it (neither could I...), but
equally I wasn't seeing comments from other people that might hint at e.g.
a Solaris 2 syslog bug (and it doesn't happen with INN 1.4unoff4 and Solaris
2.5 on our live server...).
I saw it first with INN 1.5.1 on Solaris 2.5, but the problem has also
appeared on a newer test server running on Solaris 2.5.1, so it's not just
2.5 and not just something strange on the original test system. I've not
been able to find anything that was obviously relevant in Sun's bug or
patch databases on sunsolve.sun.com.
So ... has anyone else seen anything like this, or even (well, I can hope!)
seen it and found a solution? Apologies if it has been discussed here and I
missed it... If enough people *have* seen it (but ignored it as "mostly
harmless"), maybe we'll be able to zero in on what's causing it! [Since it's
not obvious what configuration details might be relevant, it's intentional
that I've not gone into great detail - that may become relevant later.]
John Line
--
Cambridge University Computing Service - USENET news manager. Usually John Line
newsmaster@ucs.cam.ac.uk (alias {newsmaster,news,usenet}@news.cam.ac.uk)
Re: inn 1.5.1 oddities with Solaris 2.5 + what INN patches are recommended?
Author: 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
Re: inn 1.5.1 oddities with Solaris 2.5 + what INN patches are recommended?
Author: USENET news
Date: Wed, 16 Jul 1997 00:00
Date: Wed, 16 Jul 1997 00:00
67 lines
3605 bytes
3605 bytes
In article <5q5g3e$8hf$1@news1.epix.net>,
Forrest J. Cavalier III <mibsoft@epix.net> wrote:
>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.
>...
>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.
An interesting possibility (it would certainly explain such obscure
corruption of news.notice), but both systems where I've seen the problems
are test servers with only inbound feeds, so nntpsend is not even set up in
cron.
Thank you for the suggestions, anyway - yours is the only response (by mail
or news) so far...
[I've been thinking about this problem since posting, and the only thing
running on the systems which *might* tie in with the occasional sequences of
odd log entries at regular intervals - mostly they are one-offs - would be
innwatch checking on the server's status every 10 minutes. There simply
aren't any other cron jobs running that often, whether directly related to
news or not... But I cannot see how innwatch could cause syslog to corrupt
the log file.]
Any further ideas would be welcome!
John Line
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