Failed to start Sonar Webservice Failed to start Sonar Webservice elasticsearch elasticsearch

Failed to start Sonar Webservice


Your ES index seems to be corrupted.

All base information is stored in the DB. Do not delete or update it manually.

On the contrary, if you delete the ES indexes, they will simply be rebuilt at the next startup (which may take some time depending on the quantity of data you have).

To achieve that, delete the es directory in the data directory of your SQ instance.


We have faced this issues many times. We delete the es directory under $SONAR_HOME/data directory of SQ instance and restart SQ instance. It start the indexing again Note : Only problem you will face , during indexing , your SQ webserver will be not accessible. You can not browse your localhost:9000(it will keep loading unless indexing gets over). As our project is big , it takes couple of hours to complete the indexing.Once the complete indexing is done, you can browse your SQ webserver.


If u are using Database to store results of sonar analysis , then clear the database once and then start the sonar again because it sometimes mess up with old and new results stored in database.It it not doing the indexing of your files.