Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Apache access.log chunks missing

  • 05-06-2003 4:03pm
    #1
    Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭


    Every so often, Apache seems to stop logging to its access.log, even though it's still serving pages. The log will freeze (not add anything, not even a blank space) for a few days and then start back up again spontaneously. It's not a disk space problem, and rebooting/restarting apache doesn't seem to make a difference. Any suggestions?


Comments

  • Registered Users, Registered Users 2 Posts: 7,740 ✭✭✭mneylon


    How big is the log?


  • Closed Accounts Posts: 5,563 ✭✭✭Typedef


    Which version of apache?


  • Registered Users, Registered Users 2 Posts: 1,186 ✭✭✭davej


    Does the userid that starts (not runs) apache have permission to write to the access.log file?

    Are you running NFS ? perhaps there's stale filesystem info.

    davej


  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    Sorry I was in a rush when posting the above, I didn't give many details. It's apache 1.3.26 running on Debian 3.0... as for the size, the logs get rotated (renamed & gzipped) every month so the sizes vary, but generally only 5-10 megs.

    I'm almost certain that the file permissions are correct.. it's either root or www-data that starts apache, and access.log belongs to www-data's user & group. Error.log has the same permissions as this, and works perfectly. As for your NFS question... I don't know! However if I rename access.log and restart apache, it will create a new access.log... it just won't put anything in it!

    The odd thing is that when the log does freeze, it seems to be right in the middle of logging something. For example the end of a log from a few days ago was:
    cache.duth.gr - - [02/Jun/2003:11:05:54 +0100] "GET
    ... it didn't start logging again until June 5th :confused: I'm pretty sure there should be more on that line. Similarly with other missing sections, they all seem to be preceeded by a truncated line.

    Thanks for the feedback guys, keep it comin!


  • Registered Users, Registered Users 2 Posts: 7,740 ✭✭✭mneylon


    Sounds a little odd!
    I remember there being a problem with Apache and large logfiles - some kind of odd limit that you only find out about when it's too late...

    Your situation is a little baffling...
    Are the other logs producing any errors ??


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    I'm pretty sure it's not a file-size problem, it was doing this even when it was 0 bytes big! Of course it has started logging again now, which makes tracking down the problem even harder. I'll probably try and get in touch with the previous admin, maybe he can shed some light on it...


Advertisement