The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Empty cpanel error_log (and others)

Discussion in 'General Discussion' started by shacker23, Feb 3, 2010.

  1. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    In /usr/local/cpanel/logs, I have :

    Code:
    -rw-------  1 root root        0 Jan 31 04:02 access_log
    -rw-------  1 root root       20 Jan 31 04:02 access_log.1.gz
    -rw-------  1 root root    22686 Feb  3 02:19 build_locale_databases_log
    -rw-------  1 root root   443163 Dec 16 11:32 cpdavd_error_log
    -rw-------  1 root root   225130 Feb  3 09:55 cphulkd_errors.log
    -rw-------  1 root root     9802 Feb  1 15:16 cphulkd.log
    drwx------  3 root root     4096 May 22  2008 easy/
    -rw-------  1 root root        0 Jan 31 04:02 error_log
    -rw-------  1 root root      804 Jan 31 04:02 error_log.1.gz
    -rw-------  1 root root   285431 Feb  3 11:07 license_log
    -rw-------  1 root root     3833 Feb  3 13:25 login_log
    -rw-------  1 root root    30469 Jan 30 18:47 panic_log
    -rw-------  1 root root        0 Jan 31 04:02 stats_log
    -rw-------  1 root root       20 Jan 31 04:02 stats_log.1.gz
    -rw-------  1 root root  2075968 Feb  3 14:59 tailwatchd_log
    So error_log, stats_log, and access_log are all blank. Any idea what could cause this or how to fix? Thanks for any pointers.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Those logs were rotated.
     
  3. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    That was my first thought, but not a single error in three days? On another, similarly configured server, I see things cropping up in the error_log regularly.

    And right now I'm executing an action that I know should be writing to the error_log (accessing a broken cpanel plugin) ... but nothing. Anything else I can check?

    Thanks.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Try restarting cPanel. The log processing does not restart cPanel at this time. This means cPanel isn't actually writing to the log file.
     
  5. shacker23

    shacker23 Well-Known Member

    Joined:
    Feb 20, 2005
    Messages:
    263
    Likes Received:
    1
    Trophy Points:
    16
    Bingo, that did it. Thanks much Kenneth.
     
  6. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Wow, I found a number of boxes that were not logging properly, all requiring a cPanel restart to resolve. Seems like a bug to me.

    For those that need to know, you can restart cPanel from the command line with:

    service cpanel restart

    - Scott
     
  7. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Just a follow up to my issue with cPanel not logging access, cpdavd, login, stats, and tailwatchd...

    Turns out that I was using a custom log rotate script and the upgrade to 11.25 caused this script to mess up the logging.

    With the custom log rotate script moved out of the way, and instead relying on the built-in log rotation feature that can be enabled via WHM, all logging is now functional again.

    FYI, the built-in log rotation stuff can be found using the following menu paths:
    WHM: Main >> Service Configuration >> cPanel Log Rotation Configuration
    WHM: Main >> Service Configuration >> Apache Configuration >> Log Rotation

    - Scott
     
    cPanelDon likes this.
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Our product also had a long standing bug in that cPanel was not restarted after its logs were rotated. This has been addressed since my last post and should be in cPanel 11.25
     
Loading...

Share This Page