Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Avatar photoCustomer Inquiry
    Participant
    Post count: 203

    HAAst logs do not rotate when logrotate runs – why?

    Avatar photoTelium Support Group
    Participant
    Post count: 265

    The HAAst log file or its parent directory has world write permissions, and newer versions of logrotate do not allow this to rotate. Manually running logrotate shows the results below:

    $logrotate -d -v haast
    reading config file haast
    Handling 1 logs
    rotating pattern: /var/log/haast after 1 days (7 rotations)
    empty log files are rotated, old logs are removed
    considering log /var/log/haast
    error: skipping “/var/log/haast” because parent directory has insecure permissions

    The solution is to uncomment the line in the /etc/logrotate.d/haast file to allow rotating regardless of permission:

    su root root

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.