Bug 1278587
Summary: | [regression] updatedb no longer runs daily, and mlocate-updatedb.service blocks systemctl | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Hin-Tak Leung <htl10> |
Component: | mlocate | Assignee: | Michal Sekletar <msekleta> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 23 | CC: | alexey.brodkin, andrea.vai, gbcox, j.stippa, mark, mitr, msekleta, mvanross, stephen.gowing, tom |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | mlocate-0.26-13.fc23 mlocate-0.26-14.fc24 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-03-22 19:52:42 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Hin-Tak Leung
2015-11-05 21:41:24 UTC
I noticed this also. It seems the cron file has been moved to a systemd-timer which was disabled. # systemctl status mlocate-updatedb.timer ● mlocate-updatedb.timer - Updates mlocate database every day Loaded: loaded (/usr/lib/systemd/system/mlocate-updatedb.timer; disabled; vendor preset: enabled) Active: inactive (dead # systemctl enable mlocate-updatedb.timer So the question is why this is not enabled on upgrade? Noticed updatedb is no longer running daily. Found mlocate-updatedb.timer and enabled and started it. Hopefully, that will fix the problem. When the system boots and updatedb is required to be executed then it will contain only "/usr" but no subdirectory of it. # locate -d mlocate.db.boot / | grep ^/usr /usr # rpm -q mlocate mlocate-0.26-12.fc23.x86_64 mlocate-0.26-13.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-dd988b6d40 mlocate-0.26-14.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-85f0a2950b mlocate-0.26-13.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-dd988b6d40 mlocate-0.26-14.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-85f0a2950b mlocate-0.26-13.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. mlocate-0.26-14.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. It is still necessary to do this, which should not be needed, it should be the default: systemctl enable mlocate-updatedb.timer Same for me in Fedora 23. I had to enable manually the service as described in comment #10 to have it working. As said, needs to be re-opened. At least for me it seems to be working on f25 (mlocate-0.26-15.fc25.x86_64). # ls -l /var/lib/mlocate/* -rw-r-----. 1 root slocate 38011857 Nov 28 00:04 /var/lib/mlocate/mlocate.db Hmm, I have a sym-link, must have been enabled a long time ago: # ls -l /etc/systemd/system/timers.target.wants/mlocate-updatedb.timer lrwxrwxrwx. 1 root root 46 Nov 10 2015 /etc/systemd/system/timers.target.wants/mlocate-updatedb.timer -> /usr/lib/systemd/system/mlocate-updatedb.timer |