Article View: news.software.nntp
Article #81051Re: Logging failures
From: Ray Banana
Date: Sun, 17 May 2009 18:02
Date: Sun, 17 May 2009 18:02
52 lines
4362 bytes
4362 bytes
Thus spake "John F. Morse" <xanadu.bbs@example.invalid> > I haven't touched the optima5 server in four days. No reboots or sysklog > restarts. > The news.notice log actually has 3.5 days of logging in it, so it > apparently is not getting rotated, or if so (see OLD below) it is not > getting zeroed out after rotation. I believe the latter. > I think these logs are actually rotating, but each day has the preceding > day's logging. It's adding up since the /var/log/news/news.notice never > gets emptied. So I assume the ownership of these log files was already set by sysklogd and the files are owned by syslog:adm. If you change then to news:news, news.daily will rotate them, but a restart of sysklogd wil change the owner back to syslogd:adm. > Todays Daily Report now shows: > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.crit: Permission denied > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.err: Permission denied > /usr/lib/news/bin/scanlogs: 233: cannot create /var/log/news/news.notice: Permission denied > Daily Usenet report from May 14 00:00:02 to May 17 00:00:02 > john@optima2:/var/log/news$ ls -l > total 429 > -rw-r--r-- 1 news news 0 2009-05-17 00:00 errlog > -rw-rw-r-- 1 news news 65023 2009-05-17 00:00 expire.lastlowmark > -rw-rw-r-- 1 news news 633 2009-05-17 00:01 expire.log > -rw-rw-r-- 1 news news 0 2009-05-09 14:35 innfeed.log > -rw-rw-r-- 1 news news 2830 2009-05-17 02:15 innfeed.status > -rw-r--r-- 1 news news 295004 2009-05-17 12:08 news > -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.crit > -rw-r--r-- 1 news news 0 2009-05-17 00:00 news.err > -rw-r--r-- 1 news news 56966 2009-05-17 12:10 news.notice > drwxr-xr-x 2 news news 904 2009-05-17 00:00 OLD > drwxrwxr-x 2 news news 48 2007-08-10 07:11 path > -rw-r--r-- 1 root news 62 2009-05-12 07:12 rc.news > -rw-rw---- 1 news news 71 2009-05-17 00:00 unwanted.log So these should rotate OK. > A brand new Debian 5.0.1 install this morning on Optima11: The behaviour of sysklogd on Debian is different from Ubuntu, as it will not change the owner of the news.* logfiles during start or restart as Ubuntu will do. BTW, the same problem exists on Ubuntu 9.04. I haven't found out, what makes sysklog behave different on Debian, all I can say is that the difference is not in the configuration files. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Technical Details
Message-ID:
<803ab3d2vg.fsf@banana.shacknet.nu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!newsfeed.straub-nv.de!feeder.motzarella.org!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mailReferences:
<gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net> <80vdnzu827.fsf@banana.shacknet.nu> <guph24$oac$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <803ab3d2vg.fsf@banana.shacknet.nu> Subject: Re: Logging failures Date: Sun, 17 May 2009 20:02:27 +0200 From: Ray Banana <rayban@banana.shacknet.nu> References: <gts0rg$v7n$1@optima7.xanadu-bbs.net> <gu4ea9$ath$1@news.trigofacile.com> <gu6ksc$oq7$1@optima7.xanadu-bbs.net> <gu6uqv$1ap$1@news.trigofacile.com> <gu804a$4mb$1@optima7.xanadu-bbs.net> <gu8ggp$gic$1@news.trigofacile.com> <gu90j1$d21$1@optima7.xanadu-bbs.net> <gu9nvk$kse$1@news.trigofacile.com> <guc1rv$6qp$1@optima7.xanadu-bbs.net> <8063g6memf.fsf@banana.shacknet.nu> <guch30$aoq$1@optima7.xanadu-bbs.net> <80d4ae2k1j.fsf@banana.shacknet.nu> <gumema$ui2$1@optima7.xanadu-bbs.net> <80vdnzu827.fsf@banana.shacknet.nu> <guph24$oac$1@optima7.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.musoftware.de!wum.musoftware.de!newsfeed.straub-nv.de!feeder.motzarella.org!news.motzarella.org!banana.shacknet.nu!motzarella.org!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient spider Lines: 52 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: banana.shacknet.nu 1242583410 95821 10.1.30.101 (17 May 2009 18:03:30 GMT) X-Complaints-To: abuse@banana.shacknet.nu X-Auth-Sender: Ray.Banana Cancel-Lock: sha1:BpuqBI3cXB9KgKJZOAg0WL17l3A= User-Agent: Plonkenlights X-PGP-Sig: 2.6.3ia Subject,Message-ID,Date,From,User-Agent iQCVAwUBShBRbxFgDSXFGJ/lAQEQ6gP+IQH7ot4DtcsV5okT5XxSjGGmfBrPfBQI hg0fZAnD/q+gKmMgZy3vZ8v5Fk0cbXMNK+/xbpXPBlCvMS2LRuwFMGM4nscl9leM SmHySQyD+xIVXwzGOcDhWoDidQkfBOrQfxG3prSBKFbajS/gg50NKKhrPwsw8WER cuclC6tD/nQ= =JkXg X-Attribution: Ray Banana