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

Hi, i’m experiencing a problem with logrotate on NCP 1.49.0
the service stops with this logs:
when i reboot the serveur (Odroid HC4) it’s starting normaly but stops later
i’ve disabled UFW but still the same, any idea?

sept. 10 00:00:07 nextcloudpi logrotate[17366]: error: ufw:4 keyword 'maxsize' not properly separated, found 0x32
sept. 10 00:00:07 nextcloudpi logrotate[17366]: error: found error in /var/log.hdd/ufw.log
sept. 10 00:00:07 nextcloudpi logrotate[17366]: , skipping
sept. 10 00:00:07 nextcloudpi logrotate[17366]: error: found error in file ufw, skipping
sept. 10 00:00:08 nextcloudpi systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
sept. 10 00:00:08 nextcloudpi systemd[1]: logrotate.service: Failed with result 'exit-code'.
sept. 10 00:00:08 nextcloudpi systemd[1]: Failed to start Rotate log files.

i’ve found this info about logrotate problem, maybe is it possible to upgrade it?
https://github.com/logrotate/logrotate/issues/410

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