Rally - On-premises: Searches not displaying expected results
search cancel

Rally - On-premises: Searches not displaying expected results

book

Article ID: 136199

calendar_today

Updated On:

Products

Rally On-Premise

Issue/Introduction

At times, the search results do not show the expected results.  This document walks through deleting the search index files so that they can be rebuilt by the search engine.


Please note, that this will require some downtime as the application will need to be restarted in order to begin the reindexing process.

Environment

Release : 2.0

Component : AGILE CENTRAL ON PREMISES

Resolution

SSH into the services VM as ops user

$ docker ps | grep solr

 

Sample output:

cd80c91c4e10   <YOUR_HOST_NAME>:9874/rallysoftware-ac2go-alm:23677-2.0.1  "run /_run/start_ser…"  1 day ago  Up 1 day  7001/tcp  repl10aeecc4_solr.1.3chzd0z6qmpk5cqsyprhwrlw7

 

Get the container ID from the first column and use it in the below command

$ docker inspect <CONTAINER_ID>  | grep solr/_data

 

Example:

$ docker inspect cd80c91c4e10  | grep solr/_data

 

Sample output:

"Source": "/var/lib/docker/volumes/repl10aeecc4_solr/_data",

 

Note the source path between the quotes; you'll use that in a moment

 

Elevate your permissions to root

$ sudo su

 

Take the source path you got above and add /solrdata/alm/index to a cd command as shown below

# cd <SOURCE_PATH>/solrdata/alm/index

 

Example:

# cd /var/lib/docker/volumes/repl10aeecc4_solr/_data/solrdata/alm/index

 

Ensure you're in the correct directory prior to deleting files.  You should see files beginning with underscores as shown below.

# ls

 

Sample output:

_0_1.del           _0.si              _1.si              _2.nvm             _3.nvd             _4_Lucene41_0.tip  _5_Lucene41_0.tim

_0.fdt             _1.fdt             _2_1.del           _2.si              _3.nvm             _4.nvd             _5_Lucene41_0.tip

_0.fdx             _1.fdx             _2.fdt             _3_1.del           _3.si              _4.nvm             _5.nvd

_0.fnm             _1.fnm             _2.fdx             _3.fdt             _4_1.del           _4.si              _5.nvm

_0_Lucene41_0.doc  _1_Lucene41_0.doc  _2.fnm             _3.fdx             _4.fdt             _5_1.del           _5.si

_0_Lucene41_0.pos  _1_Lucene41_0.pos  _2_Lucene41_0.doc  _3.fnm             _4.fdx             _5.fdt             segments_2

_0_Lucene41_0.tim  _1_Lucene41_0.tim  _2_Lucene41_0.pos  _3_Lucene41_0.doc  _4.fnm             _5.fdx             segments.gen

_0_Lucene41_0.tip  _1_Lucene41_0.tip  _2_Lucene41_0.tim  _3_Lucene41_0.pos  _4_Lucene41_0.doc  _5.fnm             write.lock

_0.nvd             _1.nvd             _2_Lucene41_0.tip  _3_Lucene41_0.tim  _4_Lucene41_0.pos  _5_Lucene41_0.doc

_0.nvm             _1.nvm             _2.nvd             _3_Lucene41_0.tip  _4_Lucene41_0.tim  _5_Lucene41_0.pos

   

Delete the existing index files from this directory

# rm -f *

 

Restart the docker service so that the search engine database can be rebuilt

# systemctl restart docker

 

Once you're able to log back into the application, test the search function again to ensure it shows the results you are expecting.