logrotate with dateext issue

Discussion in 'Reports' started by mvais, Mar 20, 2017 at 7:28 AM.

  1. mvais

    mvais New Pleskian

    12
     
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    142
    TITLE:
    logrotate with dateext issue
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
    Plesk, Onyx 17.0.17 Update #19, CentOS Linux 7.3.1611, x64 ‬
    PROBLEM DESCRIPTION:
    When adding the line dateext on top of /usr/local/psa/etc/logrotate.conf the dateext format is applied to both directories:
    /var/www/vhosts/system/domain.com/logs/
    /var/www/vhosts/domain.com/logs/
    But in the one without system in the path the old files won't be deleted. This causes that every file since the day i switched to dateext is kept in /var/www/vhosts/domain.com/logs/ for every domain. In the other directory it works like expected.​
    STEPS TO REPRODUCE:
    Add dateext to the top of /usr/local/psa/etc/logrotate.conf
    It looks like this for me (i want dateext for all logs):
    cat /usr/local/psa/etc/logrotate.conf
    dateext

    include /usr/local/psa/etc/logrotate.d
    ...

    Than wait till there are files which should be removed.​
    ACTUAL RESULT:
    Only the files in /var/www/vhosts/system/domain.com/logs/ are deleted after the specific amount for example 14 logs (depends on the logs to keep setting per domain).
    The files in /var/www/vhosts/domain.com/logs/ are kept forever.​
    EXPECTED RESULT:
    Both directories should deleted the old files. Like it's already done in the directory /var/www/vhosts/system/domain.com/logs/
    It shouldn't behave different with dateext enabled. Without dateext in both directories are the same amount of logfiles in both directories.

    My corresponding forum post about the problem:
    https://talk.plesk.com/threads/logrotate-with-dateext-issue.341154
    ANY ADDITIONAL INFORMATION:

    YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
    Confirm bug
     
  2. IgorG

    IgorG Forums Analyst Plesk Team

    37
     
    Messages:
    22,649
    Likes Received:
    675
    Trophy Points:
    882
    Location:
    Novosibirsk, Russia
    Forwarded to developers. Thanks.
     
  3. IgorG

    IgorG Forums Analyst Plesk Team

    37
     
    Messages:
    22,649
    Likes Received:
    675
    Trophy Points:
    882
    Location:
    Novosibirsk, Russia
    Bug was confirmed and submitted as PPP-28469
     
Loading...