Logrotate.service: Failed with result 'exit-code' on NCP 1.49.0 (feature/php8)

Looks like i found the problem:
/etc/logrotate.d/ufw was malformed

/var/log.hdd/ufw.log
{
        rotate 4
        weekly
maxsize2M              #(NOT OK! deleted this line)
        maxsize 2M     #(and ALIGN LIKE THIS)
        missingok
        notifempty
        compress
        delaycompress
        sharedscripts
        postrotate
                invoke-rc.d rsyslog rotate >/dev/null 2>&1 || true
        endscript
}

save the file and restart logrotate.service
logrotate.service stops failling now

1 Like