Bug 486980
Description
wes hayutin
2009-02-23 15:07:17 UTC
The problem here is that the search indexes were out of sync with the database. This could happen when the database is wiped clean and redone, while the search indexes are not cleaned. The search indexes can be cleaned by running: "/sbin/service rhn-search cleanindex" A check has been added to the webui, it will attempt to detect this in the future, when we see that there is a problem and they are out of sync we'll display the below message as a struts action message. Package search index and database entries appear to be out of sync. Please run '/sbin/service rhn-search cleanindex; /sbin/service rhn-search start' This also gets written to the tomcat log. QA: For testing to re-create this bad setup do the following. 1) You need 2 satellite installs. 2) Copy /usr/share/rhn/search/indexes from Satellite-A to Satellite-B 3) Restart search (/sbin/service rhn-search restart) 4) Do a package search 5) Check that you get the message: Package search index and database entries appear to be out of sync. Please run '/sbin/service rhn-search cleanindex; /sbin/service rhn-search start' 6) If logging is enabled, you will also see this message printed in the tomcat logs. Fixed in this commit http://git.fedoraproject.org/git/?p=spacewalk.git;a=commitdiff;h=0fbeb5b9dac55b66b9ded950e368160d358624c3 Package search index and database entries appear to be out of sync. Please run '/sbin/service rhn-search cleanindex; /sbin/service rhn-search start' also saw Index files missing from search-server . on a system search *** Bug 480081 has been marked as a duplicate of this bug. *** Verified in stage -> RELEASE_PENDING. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html |