[Bug 847826] New: upgrade from 12.3: findutils-locate is replaced by mlocate, until mlocate.db is created by cron.daily locate does not work
https://bugzilla.novell.com/show_bug.cgi?id=847826 https://bugzilla.novell.com/show_bug.cgi?id=847826#c0 Summary: upgrade from 12.3: findutils-locate is replaced by mlocate, until mlocate.db is created by cron.daily locate does not work Classification: openSUSE Product: openSUSE 13.1 Version: RC 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Upgrade Problems AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: d_werner@gmx.net QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 openSUSE 13.1 replaces findutils-locate which was used in previous versions my mlocate. The new database /var/lib/mlocate/mlocate.db is only created when cron.daily is run. This can mean that up to one day "locate" is not working. The old database /var/lib/locatedb is not deleted during the upgrade. Reproducible: Didn't try Steps to Reproduce: 1.upgrade a system which had findutils-locate installed from 12.3 to 13.1 with zypper dup after the daily cronjob was run (ls -l /var/spool/cron/lastrun/cron.daily) 2.add the user who wants to use locate to the group locate 3.execute "locate <somefile>" Actual Results: an error message that /var/lib/mlocate/mlocate.db is not accessible. Expected Results: locate should produce the list of matching entries As a workaround I deleted /var/spool/cron/lastrun/cron.daily so the daily cronjob was run again. Maybe after an upgrade with zypper dup was completed /var/spool/cron/lastrun/cron.daily should be removed automatically so that the cronjob is run again, or when the system is rebooted after the upgrade. Just starting to update the database after the installation of the mlocate package I would not consider a good solution, because it could just be in the middle of the upgrade process. The scanning of the file system would slow down the upgrade process, and possibly many files would still change when potentially many other packages are being upgraded afterwards. Additional observation: the old database /var/lib/locatedb of findutils-locate was not removed during the upgrade. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=847826
https://bugzilla.novell.com/show_bug.cgi?id=847826#c
Xiyuan Liu
https://bugzilla.novell.com/show_bug.cgi?id=847826
https://bugzilla.novell.com/show_bug.cgi?id=847826#c1
Robert Herb
https://bugzilla.novell.com/show_bug.cgi?id=847826
https://bugzilla.novell.com/show_bug.cgi?id=847826#c2
--- Comment #2 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=847826
https://bugzilla.novell.com/show_bug.cgi?id=847826#c3
Philipp Thomas
participants (1)
-
bugzilla_noreply@novell.com