Logrotate Failed on Boot

Hi guys.

Log rotate failed on boot.
How I can fix this?

Jan 23 21:01:03 fedora systemd[1]: Starting logrotate.service - Rotate log files...
Jan 23 21:01:03 fedora logrotate[1208]: error: stat of /var/log/boot.log failed: Permission denied
Jan 23 21:01:03 fedora systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Jan 23 21:01:03 fedora systemd[1]: logrotate.service: Failed with result 'exit-code'.
Jan 23 21:01:03 fedora systemd[1]: Failed to start logrotate.service - Rotate log files.

Fix the permissions? It could be an SELinux permissions problem. Does the following command show any output?

sudo restorecon -r -v /var/log
2 Likes

There was definitely an selinux policy update in the last couple days that may have contributed to that error.

1 Like