Re: Log's for app vanishing

Patrick Middleton <[email protected]> Wed, 8 Sep 2004 15:22:37 +0100
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
On Wednesday, September 8, 2004, at 03:08  pm, Peter Hermanns wrote:

> William Hatch wrote:
>> I've got a deployed app (one instance) with an output path set.  (Same
>> directory as all my other apps, which are logging fine)  I had a 
>> situation
>> last week where the logs for this app were not showing up, so upon
>> restarting it a few times, it corrected.  We've been experiencing some
>> seemingly random exceptions the last day, so this morning I went to 
>> check
>> the log file and it's now missing again.  The path I have set in 
>> Monitor is
>> /tmp/ which is the same for everything else.  What could be going 
>> on?  I
>> really need to debug this exception but am a bit hamstrung due to this
>> logging problem.  Thanks for any suggestions, as always;-)
>
> Sometimes you can find cronjobs on UNIX systems 
> (Solaris/Linux/whatever) which regularly delete files in /tmp/. Maybe 
> this is the case on your system as well, so i strongly suggest that you 
> log into another directory to test this out.

Definitely the case on MacOSX -- for 10.1 see /private/etc/daily , for 
10.2 and 10.3 see /private/etc/periodic/daily/500.daily , and O
The fix is to have your app write its logfiles to eg /var/log/ instead.


Patrick
--
Patrick Middleton
OneStep Solutions plc
351 London Road             Phone: +44 (0)1702 426400
Hadleigh                    Fax:   +44 (0)1702 556855
Essex. SS7 2BT              Email: [email protected]
England                            (MIME welcome)