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.

Awstats Not Updating?

Discussion in 'General Discussion' started by JDPWebmaster, Feb 17, 2010.

  1. JDPWebmaster

    JDPWebmaster Member

    Joined:
    Feb 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I went into the WHM Statistics Software Configuration and configured both Log Processing Frequency and Bandwidth Processing Frequency to run once every 1 hour. There are no blackout periods set within the Statistics Schedule.

    Whenever I go into my Awstats I always have to manually update it myself using the "Update now" link. Shouldn't my Awstats automatically be updating once every hour? This is how I would like it to work. How can I make this happen?

    Thanks in advance for your help!
     
  2. JDPWebmaster

    JDPWebmaster Member

    Joined:
    Feb 17, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello again,

    Would anyone be able to help me with this? I just want to set it up so that Awstats updates every 60min for one of the accounts on the server!

    Thanks again!
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    To more effectively diagnose and troubleshoot the issue, please let us know the following details:
    1.) Is the issue affecting only AWStats, or is it also affecting Webalizer and Analog stats, and are all three stats programs set as both "Available to Users" and "Active by Default" (as configured via Statistics Software Configuration in WHM)?
    2.) Is the issue affecting one user, multiple users, or all users?
    3.) Instead of using AWStats to perform the update manually, please try the following command (via root SSH access):
    Code:
    # /scripts/runstatsonce
    If needing to setup one account to have stats processed more frequently than other users this is possible to accomplish using a custom cron job setup via root SSH access. The following command may be used either manually or in a cron job; in this example the text "username" should be replaced by the actual username of the cPanel account:
    Code:
    # /scripts/runweblogs username
     
  4. cookersebhost

    cookersebhost Member

    Joined:
    May 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    Hello,

    I have the same problem. When I look into /home/*/tmp/awstats this folder is empty and no awstats conf files.

    Is there a solution to auto generate conf awstats for all domains in their tmp/awstats folder ?

    Thanks
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The AWStats configuration is automatically generated if AWStats is both (1) available to users and (2) enabled for the applicable account domains. Before attempting to manually run stats, please enable more verbose logging by adjusting the stats log level using WHM via the following menu path: WHM: Main >> Server Configuration >> Tweak Settings >> Stats and Logs >> Stats log level [?] Larger numbers indicate more debug information in /usr/local/cpanel/logs/stats_log (Minimum: 1; Maximum: 10)

    Please carefully check the following areas in cPanel and WHM to ensure that the desired statistics programs are fully enabled and available to users:

    Please also reference the following post and let us know the requested information as it should help better determine a path forward: cPanel Forums - View Single Post - Awstats Not Updating?
     
  6. cookersebhost

    cookersebhost Member

    Joined:
    May 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    Hello,

    Thanks for your help.

    I checked all you tell me. All is good.

    Please look at me debug :
    Code:
    [root@h29203 ~]# /scripts/runweblogs auseptic
    Log checker loaded ok..
    ==> cPanel Log Daemon version 24.0
    ==> Loaded RRDs: version 1.3006
    ==> WARNING: The configured processor count does not match the
    ==> actual processor count (4)! Running log analysis programs
    ==> on this system may cause excessive load! You should set "extracpus"
    ==> to "0" in /var/cpanel/cpanel.config if this is not ok.
    Processing auseptic...
    Run Logs domain: au-septieme-ciel.com BW Limit: 41943040000 Domains: [au-septieme-ciel.net au-septieme-ciel.fr]
    [2010-07-01 06:50:25 +0200] Process bandwidth for auseptic
    [2010-07-01 06:50:25 +0200] Update Bandwidth for auseptic (au-septieme-ciel.com)
    [2010-07-01 06:50:25 +0200] [bytes] auseptic
    [2010-07-01 06:50:25 +0200] Processing exim stats for auseptic....
    [2010-07-01 06:50:25 +0200] ...Done
    [2010-07-01 06:50:25 +0200] [bytes] auseptic - limit: 41943040000 (total: 0)
    [2010-07-01 06:50:26 +0200] WEBLANG french
    [2010-07-01 06:50:26 +0200] Archive Status: 1
    [2010-07-01 06:50:26 +0200] About to fork for auseptic [ALL DOMAINS: au-septieme-ciel.net, au-septieme-ciel.fr, au-septieme-ciel.com]
    [2010-07-01 06:50:26 +0200] [setuid] auseptic
    [2010-07-01 06:50:26 +0200] [webalizer] auseptic
    [2010-07-01 06:50:26 +0200] [webalizer] completed
    [2010-07-01 06:50:26 +0200] [analog] auseptic
    [2010-07-01 06:50:26 +0200] [analog] completed
    [2010-07-01 06:50:26 +0200] [awstats] auseptic
    [2010-07-01 06:50:26 +0200] [awstats] completed
    [2010-07-01 06:50:26 +0200] [webalizerftp] auseptic - ftp.au-septieme-ciel.com
    [2010-07-01 06:50:26 +0200] exec: [/usr/local/cpanel/bin/logrunner 54.0 /usr/local/cpanel/3rdparty/bin/webalizer -F ftp -N 10 -D /home/auseptic/tmp/webalizerftp/dns_cache.db -R 250 -p -n ftp.au-septieme-ciel.com -o /home/auseptic/tmp/webalizerftp /usr/local/apache/domlogs/ftp.au-septieme-ciel.com-ftp_log]
    [2010-07-01 06:50:26 +0200] Webalizer V2.01-10 (Linux 2.6.32.2-xxxx-std-ipv4-32) English
    
    [2010-07-01 06:50:26 +0200] Using logfile /usr/local/apache/domlogs/ftp.au-septieme-ciel.com-ftp_log (ftp)
    
    [2010-07-01 06:50:26 +0200] DNS Lookup (10): 1 addresses in 0.18 seconds
    
    [2010-07-01 06:50:26 +0200] Using DNS cache file /home/auseptic/tmp/webalizerftp/dns_cache.db
    
    [2010-07-01 06:50:26 +0200] Creating output in /home/auseptic/tmp/webalizerftp
    
    [2010-07-01 06:50:26 +0200] Hostname for reports is 'ftp.au-septieme-ciel.com'
    
    [2010-07-01 06:50:26 +0200] Reading history file... webalizer.hist
    
    [2010-07-01 06:50:26 +0200] Reading previous run data.. webalizer.current
    
    [2010-07-01 06:50:26 +0200] 3817 records (3817 ignored) in 0.01 seconds
    
    Complete
    [root@h29203 ~]#
    
    We can see :
    Code:
    [2010-07-01 06:50:26 +0200] [awstats] auseptic
    [2010-07-01 06:50:26 +0200] [awstats] completed
    
    But when I go to the Cpanel account and try to open Awstats : No area has awstats stats available.

    I have no domain listed.

    Thanks
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Thank you for the details. To diagnose the issue further some additional information is needed.

    Via root SSH access, please provide the output that is displayed when entering each of the following commands; in the last command shown replace "username" with the cPanel account username:
    Code:
    # egrep -hi "skip(analog|awstats|webalizer)|stats" /var/cpanel/cpanel.config
    # cat /etc/stats.conf
    # grep -HiR "STATGENS" /var/cpanel/users
    # cat ~username/tmp/stats.conf
    
     
    #7 cPanelDon, Jul 1, 2010
    Last edited: Aug 2, 2010
  8. cookersebhost

    cookersebhost Member

    Joined:
    May 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    Hi,

    Code:
    # egrep -hi "skip(analog|awstats|webalizer)|stats" /var/cpanel/cpanel.config
    
    awstatsbrowserupdate=1
    awstatsreversedns=1
    keepstatslog=0
    skipanalog=0
    skipawstats=0
    skipwebalizer=0
    stats_log=/usr/local/cpanel/logs/stats_log
    statsloglevel=10
    userstatsoverride=1
    
    Code:
    # cat /etc/stats.conf
    
    ALLOWALL=yes
    BLACKHOURS=
    DEFAULTGENS=AWSTATS
    VALIDUSERS=georges,showcloc,terre,icps,oscaretp,encyclop,electrip,reuter,loiseaux,secretde,exepser,moroccoi,biftgcom,newman,camille,boutique,immo,layatoul,clubreu,exprimes,cariner,martine,dalalspa,retransc,bidfree,forumbe,morocco,polea,kevinre,bottinet,nicolas,dieureu,toutplan,gagnezr,astucesp,bienetre,jronteau,portajo,myweb,forumho,fraterni,ntsfranc,denystr,beaucair,logiciel,sexyreu,stylesfa,graulet,mesart,aromapro,bootika,deniersc,sifeweb,auseptic,lifebook,karimar,promosit,heberge,omassali,communes,casadelm,momoteur,generali,phb,maweb2,alenchr,heberg,topvende,seboesw,zonedev,annonces,tahmil,dylanre,marocain,nytvcom,galiouso,kestuche,fesserv,stefyre,profil,trouvele,club2vid,ipgtgrou,lovereu,creative,horlobij,casa,ouvertus,cabinetm,yohanre,kol,naouaziz,couple07,pastor,journeys,les1001a,texto,bpcpart,cherche,eric,rvadmin,pls,bougerla,fretex,placemen,shop,mandroso,maweb,musica,zr750,aupaysde,caketuch,badr,benjamin,sextoysc,mode,moviejun,artisana,abuali,ocollec,rot33,iccserv,reftn,casabara,hsan,clubaffa,hosteur,tcha7676,ecom,styleoff,annucom,heb91,ilconsig,kasbah,pubfr,groupek,cneforg,cuisinec,presse,producti,credits,jacquesr,jamesand,castingu,dsflore,plandef,descotes,ytrouve,iraqiarr,badrsoul,nouga,recruten,aziznaj,hmima,eurosort,extremed,as2coeur,thechann,wsm,at2i,hotels,webcreat,annu7,tgutbcom,astuce69,cxlbe,gueoula,ifzarne,sitereu,bestofco,hsanesw,radio,lakpare,ycherche,onlytech,chezgigi,johanre,robert,michelr,newlife,monpetit,duarter,webetvou,vlg1,pcinterv,kacemham,pcjf,yaakov,pityves,cyclope,server,aquadufr,down,aromaplu,latraver,filesmem,videore,asauorg,amazouz,larecup,recrute,squart,smpt,miemvorg,arlifeb,dejean,insuranc,sgw3,mopofra,quidcre,learning,skyforfr,ptagren,abcdefgh,lepad33,afrikati,comall,hostdatz,mntscre,moi701,pagesbot,eliyahou,straight,metisre,demenage,najwa,oitfm,artcom,foootee,lionelle,ordix,youssef,serveurs,chat,dainare,casinor,teamfil,marielau,intranet,demoweb,gigaheb,datzy,actioncp
    allow_awstats_include=0
    
    Code:
    # grep -HiR "STATGENS" /var/cpanel/users
    
    [B]>> no results[/B]
    
    Code:
    # cat ~auseptic/tmp/stats.conf
    
    WEBALIZER-AU-SEPTIEME-CIEL.FR=yes
    ANALOG-AU-SEPTIEME-CIEL.FR=yes
    AWSTATS-AU-SEPTIEME-CIEL.FR=yes
    WEBALIZER-AU-SEPTIEME-CIEL.NET=yes
    ANALOG-AU-SEPTIEME-CIEL.NET=yes
    AWSTATS-AU-SEPTIEME-CIEL.NET=yes
    WEBALIZER-AU-SEPTIEME-CIEL.COM=yes
    ANALOG-AU-SEPTIEME-CIEL.COM=yes
    AWSTATS-AU-SEPTIEME-CIEL.COM=yes
    
    Thanks
     
  9. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I see the list "VALIDUSERS" is populated but it does not contain the specified user as defined within the file "/etc/stats.conf"; the list of allowed/valid users may be left blank or it may be explicitly configured/defined. This list and other stats preferences can be setup using WHM via Statistics Software Configuration. Access this area in WHM and then, under "User Permissions" click "Choose Users." The next page that loads is "Choose which users can modify their statistical software"; once here, move the desired username from "Available Users" to "Allowed Users", or, as an alternative to just moving one user, either click "Add All" if you wish to have all users explicitly allowed or click "Remove All" if you wish to implicitly allow or deny based on the setting (on the previous page) "Allow all users to change their web statistics generating software."

    To clarify and reiterate, if you wish to allow all users to modify their stats preferences, you may either:
    • "Add All" users to the allowed "VALIDUSERS" list, defined in /etc/stats.conf as setup via Statistics Software Configuration in WHM.
    • Or, "Remove All" users from the allowed "VALIDUSERS" list, and verify that "ALLOWALL=yes" in "/etc/stats.conf" that can be safely toggled via the "User Permissions" setting/option "Allow all users to change their web statistics generating software." of Statistics Software Configuration in WHM.

    Once either the user is added to the allowed list, or all users added, or all users removed, please re-run stats via root SSH access (using the same command as seen earlier):
    Code:
    # /scripts/runweblogs username
    If, after trying the above suggestions, there may still be any difficulty, please submit a support request so that we may assist with investigating the issue; when available, please send me your ticket ID number so that we may follow-up internally. If you would like me to directly assist in the ticket, you may also prefix your ticket subject/title with "Attn Don" and I will be more than happy to help determine the cause of the difficulty.
     
  10. cookersebhost

    cookersebhost Member

    Joined:
    May 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    Hello

    Thank you for your reply.

    Everything you say has been verified and activated. I think the problem comes from somewhere other than the configuration of stats.

    The problem is I think in Cpanel because when I click on my awstats or webalizer link I have error message "No domain has awstats stats available." or if I choose analog, my domain was listed but when I click to view the stats I am asked to choose a month to view, but I have no choice for months before.

    How can I send you in private an account access to Cpanel, for you to see the real problem.

    Thank you for your patience and your help.
    Sebastien
     
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,463
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please see the bottom of Don's last post, just above yours here for contact details.
     
  12. Siteman

    Siteman Member

    Joined:
    Nov 15, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    @cookersebhost Let us know what the solution to the awstats problem was.

    thks

    S
     
  13. cookersebhost

    cookersebhost Member

    Joined:
    May 28, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    France
    Hello,

    Thank you Infopro for your response.

    Don, I send you a cpanel login in MP.

    Siteman, no issue at this time.

    Thanks
     
  14. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Without a ticket I am unable to assist directly; please submit a support request (ticket) if you need one-on-one assistance. Upon submitting a support request you are welcome to send me your ticket ID number so that we may follow-up internally.
     
Loading...

Share This Page