From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 01:56:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34A0216A4CE for ; Mon, 13 Dec 2004 01:56:27 +0000 (GMT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF71F43D5A for ; Mon, 13 Dec 2004 01:56:26 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.13.0/8.13.0) with ESMTP id iBD1uOFT004429; Sun, 12 Dec 2004 20:56:25 -0500 Mime-Version: 1.0 Message-Id: In-Reply-To: <41BB0D27.2040304@umd.edu> References: <41BB0D27.2040304@umd.edu> Date: Sun, 12 Dec 2004 20:56:23 -0500 To: munn , freebsd-questions@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Subject: Re: newsyslog X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 01:56:27 -0000 At 10:07 AM -0500 12/11/04, munn wrote: >I have two FreeBSD machines running 4.10-RELEASE-p5. On machine A >newsyslog rolls over the log files perfectly, on Machine B I get >the message: > >/var/log/auth.log.0: No such file or directory > >The newsyslog.conf entries are : >MACHINE A: /var/log/auth.log 600 7 100 * Z >MACHINE B: /var/log/auth.log 600 7 100 $W6D0 Z > >An ls of the /var/log directory yields > >ls -ltr auth* >-rw------- 1 root wheel 97872 Dec 11 00:00 auth.log.1 >-rw------- 1 root wheel 95 Dec 11 00:00 auth.log.0.gz >-rw------- 1 root wheel 176 Dec 11 09:42 auth.log > >I have looked relevant permissions and files sizes on both machines >and they are identical. Can anyone suggest what the problem is? >Is the time entry the issue ... I just copied it from another entry >in the newsyslog.conf file. I doubt the time-entry would be the issue. That will only effect *when* a file gets rotated. It should have no effect on what should be done once it is decided to rotate the file. You might try running 'newsyslog -nvv', and see if that shows a difference between the two machines. Is that 'ls' command from the machine which works, or the one which does not work? Either way, it doesn't seem quite right. You should either see 'auth.log.0.gz' and 'auth.log.1.gz', or you should see 'auth.log.0' and 'auth.log.1'. The program is complaining that it can not find 'auth.log.0', and sure enough there is no 'auth.log.0'. You might want to try 'gunzip /var/log/auth.log.0.gz', and then run newsyslog and see if it works any better. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu