awstats.pl -config=$site -update not working

Anonymous
2011-09-10
2012-10-11

  • Anonymous
    2011-09-10

    I have awstats up and running enough to include a fairly normal page, but
    awstats ... -update runs without error but fails to display any hits. (The
    logfile is in common format, or is intended to be, and is just under 1M in
    size.)

    Logfile entries look like:

    .###.###.### - - "GET

    /dark_patterns/dark_patterns5.html#_ftn15printer.html HTTP/1.0" 200 13968 "-"
    "Python-urllib/1.17"

    The top frame on the results page says:

    Warning: Can't find language files for "en". English will be used.
    Warning: Can't read file "status_http.pm" (status http detection will not work
    correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "search_engines.pm" (search engines detection will
    not work correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "domains.pm" (domains detection will not work
    correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "operating_systems.pm" (operating systems detection
    will not work correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "robots.pm" (robots detection will not work
    correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "browsers.pm" (browsers detection will not work
    correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.
    Warning: Can't read file "mime.pm" (mime detection will not work correctly).
    Check if file is in "/home/jonathan/mirror/xyz/lib" directory and is readable.

    The script is being called from a URL that resolves to
    /home/jonathan/mirror/xyz/awstats.pl.

    What should I do? The duct tape solution is to copy the lib directory from
    /usr/local/awstats/wwwroot/cgi-bin, but that didn't seem to work and remains
    duct tape. And I don't think it was addressing the main problem.

    The main problem is that I have logfiles with entries but, from a shell
    script, the following runs without reported error, takes a moment or two, and
    then leaves awstats displaying 0 hits. My shell script has:

    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=awstats.$site.conf
    -update

    after earlier working on another host as

    /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=$site -update

    The web GUI says:

    Never updated (See 'Build/Update' on awstats_setup.html page)

    I'm snowing what looks like data in /var/lib/awstats.

    Any suggestions for how I might get relevant sites updated from a cron job?
    Any gotchas?

    Jonathan