Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default Check out /usr/local/cpanel/logs/ !!!

    Hi

    Check out /usr/local/cpanel/logs/ !!!

    File stats_log is 2Gb! 2.147.483.647

    ERROR: illegal attempt to update using time 1046782149 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782235 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782272 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782332 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782490 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782710 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782865 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782886 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046783008 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046783225 when last updat

    2gb limit here ;(

    On another server ~1.9Gb (1.954.178.437) and the limit will be reached in 1h or less.

    ... @&?^%%!
    Last edited by H2Hosting.com; 03-14-2003 at 04:51 AM.
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    189

    Default

    The same error on second server when I

    tail -f stats_log

    ERROR: illegal attempt to update using time 1047067617 when last update time is 1047593081 (minimum one second step)
    ERROR: illegal attempt to update using time 1047067671 when last update time is 1047593081 (minimum one second step)
    ERROR: illegal attempt to update using time 1047067696 when last update time is 1047593081 (minimum one second step)

    I killed cpanellogd process on all servers ...... as it create huge log file with errors...
    Last edited by H2Hosting.com; 03-14-2003 at 04:57 AM.
    Alex Andreyev,
    http://www.WHost.INFO - NEW web hosting directory.

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    291

    Default

    what was the last upgradation done on the server?
    Mitul

  4. #4
    FWC
    FWC is offline
    Member
    Join Date
    May 2002
    Location
    Ontario, Canada
    Posts
    354

    Default

    Originally posted by mitul
    what was the last upgradation done on the server?
    The "last upgradation" is what is doing this to all of us...

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    Do this:

    rm /usr/local/cpanel/logs/stats_log
    touch /usr/local/cpanel/logs/stats_log
    /etc/rc.d/init.d/cpanel3 restart

    That will reset the stats_log and the log processing daemon. It's not a permanent solution - the stats_log grows each day and doesn't seem to be rotating on its own any longer, so you'll need to keep an eye on it or just send the results to /dev/null if you don't need the logs for troubleshooting purposes (this is what we're doing).
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  6. #6
    FWC
    FWC is offline
    Member
    Join Date
    May 2002
    Location
    Ontario, Canada
    Posts
    354

    Default

    Originally posted by Annette
    Do this:

    rm /usr/local/cpanel/logs/stats_log
    touch /usr/local/cpanel/logs/stats_log
    /etc/rc.d/init.d/cpanel3 restart

    That will reset the stats_log and the log processing daemon. It's not a permanent solution - the stats_log grows each day and doesn't seem to be rotating on its own any longer, so you'll need to keep an eye on it or just send the results to /dev/null if you don't need the logs for troubleshooting purposes (this is what we're doing).
    I followed all your advice, Annette. Things are working much better now. Thank you.

  7. #7
    Member EcpHosting's Avatar
    Join Date
    Dec 2002
    Posts
    70

    Default

    Yes, this caused all of our servers to put some serious weight on disk space and on server MAX out the main HD. Grr... and this is CPanels STABLE release?

  8. #8
    ozzi4648
    Guest

    Default

    Why dont you add it to logrotate.conf as a daily rotation? No need to delete and touch anything!

  9. #9
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Keep Stats Log (/usr/local/cpanel/logs/stats_log) between cpanel restarts (default is off)
    Stats Log Level (default is 1) [0...5]:

    I've added two options to the EDGE builds which should take care of this.

  10. #10
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default Re: Check out /usr/local/cpanel/logs/ !!!

    You might want to check the system time since you may have a clock skew.

    rdate -s rdate.darkorb.net

    Originally posted by H2Hosting.com
    Hi

    Check out /usr/local/cpanel/logs/ !!!

    File stats_log is 2Gb! 2.147.483.647

    ERROR: illegal attempt to update using time 1046782149 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782235 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782272 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782332 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782490 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782710 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782865 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046782886 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046783008 when last update time is 1047560796 (minimum one second step)
    ERROR: illegal attempt to update using time 1046783225 when last updat

    2gb limit here ;(

    On another server ~1.9Gb (1.954.178.437) and the limit will be reached in 1h or less.

    ... @&?^%%!

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    Thanks, Nick, for tweaking the logfile size/retention. You're a prince among men.
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  12. #12
    Member
    Join Date
    Mar 2003
    Posts
    63

    Unhappy

    Nick,

    I did the

    rdate -s rdate.darkorb.net

    but it didn't work. cpanellogd dumps a LOT of

    ...
    ERROR: illegal attempt to update using time 1047817297 when last update time is 1047887171 (minimum one second step)
    ERROR: illegal attempt to update using time 1047817359 when last update time is 1047887171 (minimum one second step)
    ...

    on /usr/local/cpanel/logs/stats_log

    and uses a LOT of CPU at that. I have to restart cpanel3

    /etc/init.d/cpanel3 restart

    so it can stop using up CPU and the stats_log goes back to show normal stats processing messages. But after a few hours, I see that the CPU usage at my server is high again (2-4%), and it's cpanellogd with those update time messages!!! That did not happen in earlier cpanel versions, what's up?

    -Dario

  13. #13
    Member EcpHosting's Avatar
    Join Date
    Dec 2002
    Posts
    70

    Default

    This seems to be a problem for all of us. Any reports on this?

    We have done the rdate -s rdate.darkorb.net.. but what exactly does this do?

  14. #14
    Member
    Join Date
    Mar 2003
    Posts
    63

    Default

    That command synchronizes the server time with darkorb's. It does NOT work, though.

    Here's what I did to patch the situation: I created the following script and placed it under crontab running every minute:

    #!/bin/bash

    str=`tail -1 /usr/local/cpanel/logs/stats_log | cut -c -43`
    if [ "$str" == "ERROR: illegal attempt to update using time" ]
    then
    /etc/init.d/cpanel3 restart
    fi

    What it does is find out if cpanellogd is "locked up" (again!) and restarts the cpanel services, which resets cpanellogd CPU usage to a normal level.

    I sure hope to see a real solution to this problem, though.

    -Dario

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    May 2002
    Posts
    122

    Default

    Date sync is not the problem. We need a resolution to this Nick.

Similar Threads & Tags
Similar threads

  1. /usr/local/cpanel/logs/access_log
    By garmooshka in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-08-2005, 02:57 AM
  2. Whats the deal with this file: /usr/local/cpanel/logs/stats_log ?
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-31-2004, 11:31 AM
  3. Safe to delete /usr/local/cpanel/logs/stats_log
    By princo in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-08-2004, 03:57 PM
  4. /usr/local/cpanel/logs ?
    By easyhoster1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-10-2003, 12:12 PM
  5. Replies: 1
    Last Post: 10-21-2003, 06:08 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube