Skip to content
Steve McDonald edited this page Sep 6, 2016 · 6 revisions

Why

Sometimes the SOLR index gets corrupted or just starts acting weird and not updating. Not really sure why this happens, but it does.

What to do

You need to restart SOLR by SSH'ing into production and then running the following commands:

cd /opt/solrHeatmap/solr-5.5.0

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64

bin/solr start -m 700m -p 8080

Note that Solr no longer runs under Tomcat like it used to.

Historical Note

Before the update for heatmaps, here's how we used to restart Solr:

sudo service tomcat7 restart

This restarts the tomcat process which is running the server. You can then force SOLR to update yourself by running the python script python /opt/solr/config/solr/updatesolr.py or just wait the minute it takes for it to be run by the cron job.