Search fails with error - Can't associate project project-name-here with entityId PROJECT-NAME-HERE
Symptoms
When you try to search for anything in the search box that's displayed on the top right corner of Fisheye/Crucible, this error occurs:
2012-02-20 10:45:50,895 INFO [btpool0-3002 ] fisheye.app TotalityFilter-logCause - Cause: Can't associate project project-name-here with entityId PROJECT-NAME-HERE
java.lang.IllegalArgumentException: Can't associate project project-name-here with entityId PROJECT-NAME-HERE
at com.atlassian.fisheye.user.model.RecentlyVisitedRepository.setRepository(RecentlyVisitedRepository.java:19)
at com.atlassian.fisheye.user.model.RecentlyVisitedRepositoryFactory.load(RecentlyVisitedRepositoryFactory.java:22)
at com.atlassian.fisheye.user.model.RecentlyVisitedRepositoryFactory.load(RecentlyVisitedRepositoryFactory.java:7)
at com.atlassian.fisheye.user.DefaultRecentlyVisitedManager.loadHistory(DefaultRecentlyVisitedManager.java:107)
at com.atlassian.fisheye.user.DefaultRecentlyVisitedManager.getHistory(DefaultRecentlyVisitedManager.java:130)
at com.atlassian.fisheye.user.DefaultRecentlyVisitedManager.getHistory(DefaultRecentlyVisitedManager.java:115)
at com.atlassian.fisheye.quicksearch.action.QuickSearchAction.getRecentOrFirstRepository(QuickSearchAction.java:448)
Cause
The quick-search metadata index became corrupted.
Resolution
- Shut down the Fisheye/Crucible instance;
- Delete the contents of the
<FISHEYE_INST>/cache/globalfe
directory; - Restart the instance - this will force a rebuild of the quick-search metadata and content index.
If the above process fails to work, proceed with the following steps to clear out the old data from the database directly:
- Stop the application.
- Make a backup of the database.
- Delete the obsolete entries from the
cru_recently_visited
following table: DELETE * FROM cru_recently_visited WHERE cru_entity_id='<PROJECT-NAME-HERE>';
- Start the application.
Last modified on Jul 31, 2018
Powered by Confluence and Scroll Viewport.