Oracle Linux: Logrotate Cron Not Working - "Job `cron.daily' Locked By Another Anacron - Skipping"
in Linux
Note: "Please register a free account to access the full content and also to participate in Q&A in the community”
Applies To:
Oracle Cloud Infrastructure
Linux x86-64
Symptoms
The logrotate cron jobs, such as cron.daily and cron.weekly, fail to execute, preventing log rotation. The /var/log/cron file contains errors indicating that jobs are being skipped due to locks held by another anacron process. Example log entries include:
2025-05-09T12:01:01.464163+02:00 <hostname> anacron[11273]:notice: Anacron started on 2025-05-09 2025-05-09T12:01:01.464738+02:00 <hostname> anacron[11273]:notice: Job `cron.daily' locked by another anacron - skipping 2025-05-09T12:01:01.464864+02:00 <hostname> anacron[11273]:notice: Job `cron.weekly' locked by another anacron - skipping 2025-05-09T12:01:01.465243+02:00 <hostname> run-parts(/etc/cron.hourly)[11275]:notice: finished 0anacron 2025-05-09T12:01:01.465358+02:00 <hostname> anacron[11273]:notice: Normal exit (0 jobs run)
Tagged:
0