Bugzilla – Bug 957039
"Cannot add dependency job for unit logrotate.timer" in journal
Last modified: 2015-12-04 15:27:16 UTC
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 Build Identifier: I am getting this in journal: systemd[1]: Cannot add dependency job for unit logrotate.timer, ignoring: Unit logrotate.timer failed to load: No such file or directory. Reproducible: Always Steps to Reproduce: 1. Upgrade from 13.2 x64 to Leap 42.1 2. journalctl -e 3. See the message. Actual Results: Message in journal: systemd[1]: Cannot add dependency job for unit logrotate.timer, ignoring: Unit logrotate.timer failed to load: No such file or directory. It seems to appear on each reboot. Sometimes I have noticed it also when restarting certain services (can't remember which exactly) Expected Results: I suppose it should not be there. Looks like a warning/error message. The system is upgraded from 13.2 to Leap 42.1 I have been advised to file a bug report in the forum thread: https://forums.opensuse.org/showthread.php/511418-quot-Cannot-add-dependency-job-for-unit-logrotate-timer-quot-in-journal?p=2740155#post2740155 More details: # cat /etc/os-release NAME="openSUSE Leap" VERSION="42.1" VERSION_ID="42.1" PRETTY_NAME="openSUSE Leap 42.1 (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:42.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse" # systemctl status logrotate.service logrotate.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) # ls /usr/lib/systemd/system/log* ls: cannot access /usr/lib/systemd/system/log*: No such file or directory
It looks like logrotate has been downgraded when you moved from 13.2 to Leap. And the (old) version you're using of logrotate doesn't provide logrotate.timer anymore. This should be reassigned to logrotate maintainer IMHO.
Hi George, thank you for your report but it's actually a duplicate of the bug 954375. Logrotate in Leap is from SLE12 which wasn't yet ported to systemd. As soon as SLE12 logrotate is migrated to systemd, Leap will get the same package. *** This bug has been marked as a duplicate of bug 954375 ***