Fixing Solr Azure App Service Core Locking Issues
We have had intermittent issues with our Sitecore Solr instance in Production which runs in an Azure App Service. Every so often it crashes and we see Core Initialisation errors like so: sitecore_web_index: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Index dir ‘D:\home\site\wwwroot\server\solr\sitecore_web_index\data\index/’ of core ‘sitecore_web_index’ is already locked. The most likely cause is another Solr server (or another solr core in this server) also configured to use this directory; other possible causes may be specific to lockType: native Doing some research into this it seems that the consensus is that Azure App Services shouldn’t really be used for Solr: https://sitecore.stackexchange.com/questions/23466/solr-cores-locking-v-9-0-2 However I couldn’t actually find any official Sitecore documentation that says that Azure App Services are not supported / recommended for Solr and there are plenty of blog posts out there about setting up Solr for Sitecore in Azure App Services. We could have switched it to an VM but we’d rather not do that as it’s easier to manage … Continue reading Fixing Solr Azure App Service Core Locking Issues