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.

stats empty a few days a month since Nov 06

Discussion in 'General Discussion' started by Silver_2000, Jan 29, 2007.

  1. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    I have one account on the server that is showing zero webalizer stats for a few days a month since november
    The stats are running normally on other sites and running normall MOST days of the month. It seems that a few days late in each month the it shows no stats
    I looked at yesterdays log here /usr/local/cpanel/logs/stats_log
    But found nothing other than this error


    Ill attach a screen shot of the stats
     

    Attached Files:

  2. wardv

    wardv Member

    Joined:
    Aug 10, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Have you tried running: /scripts/runlogsnow ?
     
  3. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    I hadnt tried it but just did and it didnt help
     
  4. wardv

    wardv Member

    Joined:
    Aug 10, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Parsing stats isn't something that is done in a few minutes. The process starts in the background.

    Check for output for the following processes:

    ps aux |grep cpanellogd (is it running?)
    ps aux |grep webalizer
    ps aux |grep awstats
    ps aux |grep analog

    If the stats processes are running, your statistics will be updated in a few hours.
     
  5. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    check /usr/local/apache/domlogs

    ls -S

    apache stops writing to the logs after it's written 1GB (I dont know why).
    if apache is restarted, then it'll continue til the logfile gets to 2GB

    /scripts/biglogcheck
    provides some info on which logs are approaching 2GB but this doesn't tell you which ones apache has just decided to stop logging to.

    periodically running 'httpd restart' gets the logging back on track.
    however, I've found that the cpanellogd can't keep up if too many of them get large by the end of the month.

    you can set cpanel to delete the logs after each stats run via the WHM tweak setting, I think.

    it helps a lot with this problem, but you loose the logs every day which is unfortunate.
     
  6. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    stats still look the same

    /scripts/biglogcheck has no results

    domlogs are all tiny under 10 mb
     
  7. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    make sure cpanellogd is running it should report what it's doing (usually 'sleeping for logs')

    youc an run /scripts/runlogsnow or /scripts/runstatsonce to jumpstart things.

    if cpanellogd is NOT running, then restart cpanel
    service cpanel restart
    OR
    /etc/init.d/cpanel restart

    depending on your configuration.
    if you still dont see cpanellogd running after that, then put in a support ticket to cpanel cause somethings quite wrong.
    (I've seen this problem with something has gone terribly wrong with perl)
     
  8. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    The stats services are running because the other 30 domains on the site are getting complete stat graphs

    this is the busiest site and it seems to lose stats a few days at the end of each month sporadically as can be seen in the attachment at top of thread
    And it seems the stats page for that one domain doesnt even reflect that feb has started - but the other domains do ....

    I attached the graph from another domain on the same server for the same time period - to this message

    Doug
     

    Attached Files:

    #8 Silver_2000, Feb 1, 2007
    Last edited: Feb 1, 2007
  9. freedman

    freedman Well-Known Member

    Joined:
    Feb 13, 2005
    Messages:
    312
    Likes Received:
    1
    Trophy Points:
    18
    as I mentioned before (I think in this thread), apache stops writing to logs at 1GB, resetting apache, will get them going again.

    the unforunate solution I had to do was to 'remove logs after stats generation' somewhere in the WHM configs.. then, ran the stats, took 2 days on one of the domains, then from then on they were updated lightening fast, but the domlogs get cleared out after each run, so you dont have them to debug things down the road.

    it would be nice if they had the stats generation work with logrotate.
     
  10. Silver_2000

    Silver_2000 Well-Known Member

    Joined:
    Mar 31, 2002
    Messages:
    338
    Likes Received:
    1
    Trophy Points:
    18
    the biggest log in the folder is 50 mb so I dont think its a size thing

    The services are all running

    I restarted the server since the first problem cropped up and have restaretd apache and conformed that cpanellogd is running

    also ran /scripts/runstatsonce

    no progress yet but I appreciate your help
     
  11. dahu

    dahu Member

    Joined:
    Dec 7, 2001
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    let us now how do you fixed it, i think i have the same problem

    thank you
     
Loading...

Share This Page