<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Troubleshoot search errors</title><link>https://community.telligent.com/community/11/w/user-documentation/67621/troubleshoot-search-errors</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>Troubleshoot search errors</title><link>https://community.telligent.com/community/11/w/user-documentation/67621/troubleshoot-search-errors</link><pubDate>Wed, 09 Dec 2020 21:53:54 GMT</pubDate><guid isPermaLink="false">2928df86-8d0a-4b09-acea-610f5c0946bf</guid><dc:creator>Michael Kelley</dc:creator><comments>https://community.telligent.com/community/11/w/user-documentation/67621/troubleshoot-search-errors#comments</comments><description>Current Revision posted to User Documentation by Michael Kelley on 12/09/2020 21:53:54&lt;br /&gt;
&lt;p&gt;[toc]&lt;/p&gt;
&lt;p&gt;&lt;a name="Top"&gt;&lt;/a&gt;If you are seeing search-related errors, this document can help you troubleshoot the problems and ensure that search is running effectively for your community.&lt;/p&gt;
&lt;p&gt;The first place to look when you receive errors from Solr is in the logs files which are located (for a standard installation) in the Tomcat installation&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;Logs&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory (e.g.,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs&lt;/span&gt;).&amp;nbsp;There are two files of you should review for errors:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:courier new,courier;"&gt;stdout_YYYYMMDD&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:courier new,courier;"&gt;catalina_YYYYMMDD&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;...where YYYYMMDD is today&amp;#39;s date.&amp;nbsp;Typically you will refer to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;Catalina&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;log for Solr errors, whereas the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;stdout&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;typically logs critical errors.&lt;/p&gt;
&lt;h2 id="solr_is_unresponsive"&gt;&lt;a name="Solr_is_unresponsive"&gt;&lt;/a&gt;Solr is unresponsive&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Open&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;stdout_YYYYMMDD&lt;/span&gt;.&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Look for any errors.&amp;nbsp;If you see an&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;OutOfMemoryError,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;read more about how to troubleshoot it.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="outofmemory_errors"&gt;&lt;a name="OutOfMemory"&gt;&lt;/a&gt;OutOfMemory error&lt;/h2&gt;
&lt;p&gt;Solr runs very well out of the box, but as a community grows, you may need to increase the memory allocated to it. The default memory allocated to Solr is 64MB, which for medium-large sized communities is not enough.&amp;nbsp;If you see an error similar to&lt;/p&gt;
&lt;div class="code"&gt;&lt;span style="font-family:courier new,courier;"&gt;Exception in thread &amp;quot;ContainerBackgroundProcessor[StandardEngine[Catalina]]java.lang.OutOfMemoryError: Java heap space&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;...you need to give the Java virtual machine (JVM) more memory.&lt;/p&gt;
&lt;p&gt;To increase the memory for the JVM:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right-click&amp;nbsp;&lt;b&gt;Tomcat Manager&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the system tray.&lt;/li&gt;
&lt;li&gt;Select the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Java&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;tab.&lt;/li&gt;
&lt;li&gt;Set the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Maximum Memory Pool&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;size (in MB) that you want to allocate the JVM.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Restart the service.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can also refer to the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;OutOfMemoryErrors&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;section located in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://wiki.apache.org/solr/SolrPerformanceFactors" rel="noopener noreferrer" target="_blank"&gt;SolrPerformance&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;section of the Solr wiki.&lt;/p&gt;
&lt;p&gt;You can see how much memory Solr is using within the Java VM by viewing the system info at&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;http://[yourSolrInstance]:8080/solr/admin/system/&lt;/span&gt;. Look for the element with a&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;memory&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;attribute:&lt;/p&gt;
&lt;div class="code"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;lst name=&amp;quot;memory&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;str name=&amp;quot;free&amp;quot;&amp;gt;163 MB&amp;lt;/str&amp;gt;&lt;br /&gt;&amp;lt;str name=&amp;quot;total&amp;quot;&amp;gt;474 MB&amp;lt;/str&amp;gt;&lt;br /&gt;&amp;lt;str name=&amp;quot;max&amp;quot;&amp;gt;496 MB&amp;lt;/str&amp;gt;&lt;br /&gt;&amp;lt;str name=&amp;quot;used&amp;quot;&amp;gt;311 MB (%62)&amp;lt;/str&amp;gt;&lt;br /&gt;&amp;lt;/lst&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 id="troubleshooting"&gt;&lt;a name="Troubleshooting"&gt;&lt;/a&gt;Troubleshooting&lt;/h2&gt;
&lt;p&gt;This section contains some general pointers about troubleshooting various steps in this installation.&lt;/p&gt;
&lt;h3 id="troubleshoot_a_tomcat_installation"&gt;&lt;a name="Troubleshoot Tomcat"&gt;&lt;/a&gt;Troubleshoot a Tomcat installation&lt;/h3&gt;
&lt;p&gt;If Tomcat does not start:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open its&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;Logs&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;directory in the Tomcat installation directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Look for a file named&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;i&gt;jakarta_service_YYYYMMDD.log&lt;/i&gt;&lt;/span&gt;, where YYYY, MM, DD are today&amp;#39;s date year, month and day, respectively.&amp;nbsp;Open the file and look for the following error messages:&lt;/p&gt;
&lt;span style="font-family:courier new,courier;"&gt;[174 javajni.c] [error] The specified module could not be found.&lt;br /&gt;[994&amp;nbsp; prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre6\bin\client\jvm.dll&lt;br /&gt;[1269&amp;nbsp; prunsrv.c] [error] ServiceStart returned 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OR&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;[994 prunsrv.c] [error] Failed creating java&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;[1269 prunsrv.c] [error] ServiceStart returned 1&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;If you see any of those error messages, follow the missing msvcr71.dll file instructions.
&lt;p&gt;&lt;a name="msvcr71"&gt;&lt;/a&gt;Missing&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;msvcr71.dll&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file - Having this file missing is common installation issue for Tomcat. Tomcat does has a dependency on this file, but the Tomcat installer does not include it. To resolve this issue, do the following:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;li&gt;Copy the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;msvcr71.dll&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to the Tomcat&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;directory&amp;nbsp;in one of the following ways:
&lt;ol&gt;
&lt;li&gt;32-bit operating system: Copy the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;msvcr71.dll&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file from the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;directory in the Java runtime directory (typically&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;c&lt;/span&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;:\Program Files\Java\jre6\bin&lt;/span&gt;)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;in the Tomcat installation directory.&lt;/li&gt;
&lt;li&gt;64-bit operating system: Copy the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;msvcr71.dll&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file from the&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;in the the Java runtime directory (typically&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;c&lt;/span&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;:\Program Files (x86)\Java\jre6\bin&lt;/span&gt;)&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;to the&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;directory in the Tomcat installation directory.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;If you do not have the 32-bit JRE installed (that is, you do not have the directory&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;c:\Program Files (x86)\Java\jre6\bin)&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="http://java.com" rel="noopener noreferrer" target="_blank"&gt;http://java.com&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and install it.&lt;/li&gt;
&lt;li&gt;After you install the 32-bit JRE, copy the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;msvcr71.dll&lt;/span&gt;&lt;b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;file from the&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;directory in the Java runtime directory (typically&lt;span style="font-family:courier new,courier;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;c&lt;/span&gt;&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span style="font-family:courier new,courier;"&gt;:\Program Files (x86)\Java\jre6\bin&lt;/span&gt;)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to the&lt;span style="font-family:arial,helvetica,sans-serif;"&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;bin&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;directory in the Tomcat installation directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Or locate the file on your Windows installation CD.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Before creating the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;solr1.xml&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;configuration text file (using a [[Install and configure search|code fragment]]), ensure the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;Catalina\localhost&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory already exists (that is, you have already created it).&lt;/li&gt;
&lt;li&gt;When you edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to change the Solr&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;host&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;value, remember that text entry is case-sensitive.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Tip&lt;/b&gt;: If you choose to use a different instance name such as &amp;quot;&lt;span style="font-family:courier new,courier;"&gt;solr_dev&lt;/span&gt;&amp;quot; or &amp;quot;&lt;span style="font-family:courier new,courier;"&gt;solr_stage&lt;/span&gt;,&amp;quot; ensure that your configuration file in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;Catalina&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;directory has the same name as your instance. For example, if you picked &amp;quot;s&lt;span style="font-family:courier new,courier;"&gt;olr_dev&lt;/span&gt;,&amp;quot; you should have a configuration file named&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;solr_dev.xml&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;c:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost&lt;/span&gt;.&lt;/li&gt;
&lt;li&gt;After you move the existing Solr instance&amp;#39;s files from its previous Solr home directory (such as&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;c:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps&lt;/span&gt;) to the new host directory, ensure that you delete the previous Solr directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="troubleshoot_an_installation_of_multiple_solr_instances"&gt;&lt;a name="Troubleshoot_an_installation_of_multiple_Solr_instances"&gt;&lt;/a&gt;Troubleshoot an installation of multiple Solr instances&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Having already created two or more instances of Solr, ensure that they do not have duplicate names.&lt;/li&gt;
&lt;li&gt;Before creating the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;solr1.xml&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;configuration text file (using the code fragment), ensure that the Catalina\localhost directory already exists.&lt;/li&gt;
&lt;li&gt;When you edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;communityserver_override.config&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;file to change the Solr&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:courier new,courier;"&gt;host&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;value, remember that the text entry is case-sensitive.&lt;/li&gt;
&lt;li&gt;After you move an existing Solr instance&amp;#39;s files from its previous home directory to the new host directory, ensure that you delete the previous home Solr directory.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>