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 problem

Discussion in 'General Discussion' started by NetX, Mar 4, 2005.

  1. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    I cannot update the stats for several domains in my server.

    When I execute /scripts/runweblogs user I get this error:

    Log checker loaded ok..
    ==> Loading Config (cpanellogd) .... Done
    Urchin webserver is not running
    Urchin scheduler is not running
    1
    ==> cpaneld(logger) 8.0 Starting (11 processor system).....
    ==> WARNING: configured processor count does not match
    ==> actual processor count (1)! Running stats programs
    ==> on this system may cause excessive load!
    ==> You should set extracpus=0 in /var/cpanel/cpanel.config
    ==> Shared RRDTOOL support enabled
    Processing user...
    Run Logs user,domain.com,3145728000,
    LANGUAGE: english /usr/local/cpanel/lang/.english
    Processing exim stats for user.......Done
    LANGUAGE: english /usr/local/cpanel/lang/.english
    WEBLANG english
    Archive Status: 0
    Record error: -1 is not the same as the profile is -2
    About to fork() [ALL DOMAINS: ]
    Webalizer V2.01-10 (Linux 2.4.21-20.EL) English
    Error: Can't open log file /usr/local/apache/domlogs/domain.com
    Update for config "/home/user/tmp/awstats/awstats.domain.com.conf"
    With data in log file "/usr/local/apache/domlogs/domain.com"...
    Warning: HostAliases parameter is not defined, awstats choose "domain.com localhost 127.0.0.1".
    Error: Couldn't open server log file "/usr/local/apache/domlogs/domain.com" : Permission denied
    Setup ('/home/user/tmp/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).
    Webalizer V2.01-10 (Linux 2.4.21-20.EL) English
    Error: Can't open log file /usr/local/apache/domlogs/ftp.domain.com-ftp_log
    Complete


    In /usr/local/apache/domlogs I have the correct premissons:

    -rw-r----- 1 root user 3696 Mar 4 14:35 domain.com
    -rwxr-xr-x 1 root root 362 Mar 4 14:35 domain.com-bytes_log*
    -rwxr-xr-x 1 root root 2 Mar 4 14:32 domain.com-bytes_log.offset*


    When I check the permissons in /home/user/ I see the directory /home/user/tmp has another user as group:

    total 36
    drwx--x--x 8 user user 4096 Mar 4 14:19 ./
    drwx--x--x 100 root root 4096 Mar 4 14:19 ../
    drwxr-xr-x 2 user user 4096 Mar 4 12:44 .aw/
    -rw------- 1 user user 0 Mar 4 12:37 .contactemail
    drwxr-x--- 3 user mail 4096 Mar 4 12:44 etc/
    -rw------- 1 user user 9 Mar 4 12:37 .lastlogin
    drwxrwx--- 3 user mail 4096 Mar 4 12:43 mail/
    drwxr-xr-x 3 user user 4096 Mar 4 12:43 public_ftp/
    drwxr-x--- 22 user nobody 4096 Mar 4 12:44 public_html/
    drwxrwxrwx 7 user anotheruser 4096 Mar 4 12:44 tmp/
    lrwxrwxrwx 1 user user 11 Mar 4 14:19 www -> public_html/


    Then I execute: chgrp -R user /home/user/tmp
    After ls -l /home/user/ and all is ok the goup has changed.


    I then try yo run the logs again (/scripts/runweblogs user) but I still getting the same perror mesage, and If go to /home/user and I do a ls -l I see again the group for the directory tmp is with anotheruser and not for user !!



    Do yo have any idea about fix it and specially ron logs without problems for the domain?

    Thanks for your help.
     
    #1 NetX, Mar 4, 2005
    Last edited: Mar 4, 2005
  2. jester.ro

    jester.ro Well-Known Member
    PartnerNOC

    Joined:
    Feb 6, 2004
    Messages:
    304
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bucharest, Romania
    cPanel Access Level:
    DataCenter Provider
  3. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    My Cpanel version is:

    WHM 10.0.0 cPanel 10.0.0-E139
    RedHat Enterprise 3 i686 - WHM X v3.1.0
     
  4. PeteC

    PeteC Well-Known Member

    Joined:
    May 8, 2003
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    I ran into this too. It seems that when I run /scripts/runweblogs the stats programs take the numeric ID for user, and assume it is the same for group. If it's not the same, then it botches everything by changing the group ownership of everything in /home/user/tmp as well as everything in /usr/local/apache/domlogs pertaining to that user.

    However, I don't see the same behavior when I just let cpanellogd run and do its thing. It's only with /scripts/runweblogs. So I guess manually updating the logs is a bad idea for now.
     
  5. PeteC

    PeteC Well-Known Member

    Joined:
    May 8, 2003
    Messages:
    106
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Texas
    Here's a way to update stats manually for a particular username for now:

    1) Fix all the group ownerships in /home/username/tmp and /usr/local/apache/domlogs for this username.
    2) rm -f /home/username/tmp/lastrun
    3) /scripts/ckillall -9 cpanellogd
    4) /usr/local/cpanel/cpanellogd
     
  6. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    -rw-r----- 1 root webpwr 220574 Mar 14 15:19 webpwr.biz
    -rw-r--r-- 1 root root 6545 Mar 14 15:19 webpwr.biz-bytes_log
    -rw-r--r-- 1 root root 5 Mar 14 14:59 webpwr.biz-bytes_log.offset

    These are my server ownership and file permission. You are having 755 for files may possible that causing problem. Let me know if it help you
     
Loading...

Share This Page