Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    177

    Default Awstats problem

    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.
    Last edited by NetX; 03-04-2005 at 02:53 PM.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    you forgot to mention you cpanel version, but i bet it's newer than E139 /R143

    i've posted a bug about this...

    http://bugzilla.cpanel.net/show_bug.cgi?id=2181

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    177

    Default

    My Cpanel version is:

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

  4. #4
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default

    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. #5
    Member
    Join Date
    May 2003
    Location
    Texas
    Posts
    106

    Default

    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. #6
    Member ehpmahesh's Avatar
    Join Date
    Jul 2004
    Posts
    74

    Default

    -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

Similar Threads & Tags
Similar threads

  1. Problem in update of awstats - Problema na atualização do awstats
    By celobusana in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-26-2007, 04:49 PM
  2. Awstats Problem
    By AkhilStyle in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 07-20-2005, 05:58 PM
  3. Awstats problem after R143
    By cosmin in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-01-2005, 10:23 PM
  4. Awstats problem
    By esham in forum New User Questions
    Replies: 0
    Last Post: 11-11-2004, 02:55 AM
  5. Awstats Problem...
    By evolution in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-03-2004, 10:40 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube