[Xitami] Rename log files: permission denied?
Ewen McNeill
xitami@lists.xitami.org
Mon, 10 Dec 2001 21:20:23 +1300
In message <1311492402.20011023210029@chello.nl>, Melle Koning writes:
>For the last seven days I see the following errors in the
>xitami-xidos32-console:
>Could not rename '.\logs\access.log to' '.\logs\ac011023.log'
>Permission denied
>[....]
>Is it possible that the logs are locked by MS Windows when there's a
>visitor on the site?
Not, really, no. The logging module keeps the log files open when it is
running, but it is supposed to close them prior to trying to rename them.
So basically there's a few things that could be going on:
1. The files are open for some reason, and so the log rotation fails
(this would be a bug)
2. The destination files exist for some reason (in which case Xitami
is supposed to try some alternative names)
3. The new files cannot be written for some reason (unlikely)
4. The path names used internally for renaming the files are wrong
(I've seen this happen in some older versions of Xitami.)
Running Xitami in server debug mode overnight:
[server]
debug=1
in defaults.cfg may give you a little bit more information about what is
happening.
Ewen
--
Ewen McNeill, Technical Consultant, iMatix Corporation www.imatix.com