Error getting file length for [segments_1]These errors were all for the xDB SOLR core.
Sitecore SOLR - error getting file length |
Try rebuilding the index
The first step is to try rebuilding the index. In this case, these steps were followed:
- Turn the Windows SOLR service off
- Delete the data folder for the core with the error
- Turn the Windows SOLR service on
- Kick off an index rebuld
- For the xDB index, a rebuild has a special set of instructions as opposed to the control panel in Sitecore.
In my case, this did not resolve the issues.
Java Runtime Environment version
When installing SOLR, I had installed the latest version of the JRE (version 9). However SOLR prefers a slightly older version of JRE, version 1.8.0_111 aka jre-8u144-windows-x64. To resolve this error the following steps were followed:
- Turn off the Windows SOLR service
- Install the correct JRE version - re-8u144-windows-x64.exe
- Restart the PC
- Uninstall the incorrect, newer version of the JRE
- Update the Java_Home system variable to the new folder location of the older JRE
- Restart the SOLR service
After following these steps, the errors disappeared and the xDB data appeared correctly.
No comments:
Post a Comment