Log rotation problem - combined.log

  • nach einer Migration von ispcp fehlen bei dieser Installation einige combined.log nur combined.log.1 sind vorhanden ...

    Code
    1. Running '"/usr/lib/cgi-bin/awstats.pl" -update -config=domain.tld -configdir="/etc/awstats"' to update config domain.tld
    2. Create/Update database for config "/etc/awstats/awstats.domain.tld.conf" by AWStats version 6.95 (build 1.943)
    3. From data in log file "/var/log/apache2/domain.tld-combined.log"...
    4. Error: Couldn't open server log file "/var/log/apache2/domain.tld-combined.log" : No such file or directory
    5. Setup ('/etc/awstats/awstats.domain.tld.conf' file, web server or permissions) may be wrong.


    ### edit ###
    es scheint nicht bei allen Domains der Fall zu sein ....
    ### edit ###
    OK, es sind hier auf diesem System viele Webs vorhanden deren Domain nicht mehr auflöst oder registriert ist
    also sind für diese auch keine access logs vorhanden bzw. nur die bereits rotiert wurden .log.1
    Könnte man eventl. beim AWstats Update Script skippen wenn kein logfile vorhanden ist

    Edited once, last by fulltilt ().


  • Hello ;


    If the domain has been just created, it's normal.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • I still get this error message emails (large list of domains[/code]) from awstats logrotation, also in RC 4.7


    [code]Error: Couldn't open server log file "/var/log/apache2/domain.tld-combined.log" : No such file or directory
    Setup ('/etc/awstats/awstats.domain.tld.conf' file, web server or permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).

  • Hi Nuxwin,
    it seems there are configs from sub and alias domains in /etc/awstats
    which have been redirected and/or using same mountpoints as main domains ...
    Can I remove this configs from /etc/awstats ?


  • Hi Nuxwin,
    it seems there are configs from sub and alias domains in /etc/awstats
    which have been redirected and/or using same mountpoints as main domains ...
    Can I remove this configs from /etc/awstats ?


    I'll process some test and fix.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hello ;


    Should be fixed in Git Master. See https://github.com/i-MSCP/imsc…deff7241fd0f5410c7cf9810a


    However, you must note that this is only a quick fix. I'll review many thing about domain, subdomain.. which share the same mount point:


    - A domain, which shares a mount point must not have its own awstats configuration file. it must be added into the awstats configuration file of the domain with which it share the mount point.


    - A domain which shares a mount point shouldn't have any Apache vhost file. It must be added as alias in the vhost file of the domain with which it share the mount point.


    Thanks you.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206