Does anyone know what’s up with logrotate.service? It always seems to fail. I get loads of entries resembling the following when running journalctl -u logrotate:
Oct 13 00:00:07 Paarthurnax systemd[1]: Starting Rotate log files...
Oct 13 00:00:07 Paarthurnax logrotate[789]: error: state file /var/lib/logrotate.status is already locked
Oct 13 00:00:07 Paarthurnax logrotate[789]: logrotate does not support parallel execution on the same set of logfiles.
Oct 13 00:00:07 Paarthurnax systemd[1]: logrotate.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Oct 13 00:00:07 Paarthurnax systemd[1]: logrotate.service: Failed with result 'exit-code'.
Oct 13 00:00:07 Paarthurnax systemd[1]: Failed to start Rotate log files.
sudo systemctl restart logrotate.service seems to temporarily resolve the issue.
I don’t recall installing it unless it came bundled with something. How can I find out what installed it? I have a pretty minimal setup. It’s pretty much just a minimal ARM install + ddclient, syncthing and minecraft-server.
EDIT: Ah… it came bundled with pi-hole-server.
EDIT2: Uninstalled pi-hole-server. Problem solved. Apologies. Assumed it was part of the base installation.