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.

[case 46672] Stats Deleted after each upcp run

Discussion in 'General Discussion' started by hbouma, Jan 28, 2011.

  1. hbouma

    hbouma Well-Known Member

    Joined:
    Jun 8, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Okay, so now that I've finally started upgrading 11.28, I see one of the hall of fame bugs is still in cPanel even though I reported this years ago back in the early cPanel 10 days if not before then.

    Basically, upcp wipes out the daily usage reports when its ran. All the days stats get set back to zero. This is a particular problem because cPanel often sets up the upcp cron job to be ran at just before midnight. The stats then get deleted at the end of every day leaving you with no history of what took place on the server that day. This can be good when you see you missed a high load day on the server and you want to try and find out what happened.

    I'm also surprised that this bug has lasted for years given that you can end up with servers with no history of usage reports. This is right up there with the DNS Only build being broken for a year. It must have the survivor immunity totem or something.

    So my feature request is to stop having upcp wipe out the daily usage reports.

    Hal
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,450
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In Raw Access logs section of cPanel there are options to archive logs.

    Archive logs in your home directory at the end of each stats run[ [every 24 hour(s)~]]
    Remove the previous month's archived logs from your home directory at the end of each month
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    You probably want to disable this option in Tweak Settings


    "Delete each domain’s access logs after stats run"

    Screen shot 2011-01-28 at 10.56.31 PM.png
     
  4. hbouma

    hbouma Well-Known Member

    Joined:
    Jun 8, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    I'm not talking about Apache log files - where do I mention website log files? and besides, running upcp wouldn't cause those stats to get removed - cpanellogd would when it does its log rotation.

    I'm talking about is what is now called the daily process log in WHM that shows how much CPU/Memory/MySQL sites have used during the day. Running upcp always wipes the metrics out for the current day. When cPanel sets up the cron job to run upcp at say 11:45 PM, you'll be left with no metrics history on the server as each day's totals are wiped out by the daily cron job.

    Hal
     
  5. cPanelCory

    cPanelCory Developer - cPanel Security Team
    Staff Member

    Joined:
    Jan 18, 2008
    Messages:
    69
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    Houston
    cPanel Access Level:
    Root Administrator
    Hello,

    I have been able to confirm in 11.28 the behaviour you are seeing and I've opened an internal case on it for the developers to take a look at.

    Thank you for reporting it.
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Case 46672 was resolved in the early builds of 11.30. To see if version 11.30 has reached your update tier yet, visit Downloads - cPanel Inc.
     
Loading...

Share This Page