"error: state file /var/lib/logrotate/logrotate.status is already locked" is output
Issue
- The below messages are logged in /var/log/message.
logrotate[xxxxxx]: error: state file /var/lib/logrotate/logrotate.status is already locked
logrotate[xxxxxx]: logrotate does not support parallel execution on the same set of logfiles.
systemd[1]: logrotate.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
systemd[1]: logrotate.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Rotate log files.
Environment
- Red Hat Enterprise Linux 9
- logrotate
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.