Solr not available since latest update
Solr fails to start after a FileCloud update due to a missing solr.xml configuration file in SOLR_HOME. Restore the correct configuration and restart the Solr service to resolve the issue.
Original Question or Issue:
Following the latest FileCloud update, the Solr service was unavailable and FileCloud search functionality was affected.
Environment:
- Product - FileCloud Server
- Version -
- Platform - Linux
Steps to Reproduce:
Error or Log Message:
Review the Solr log:
/opt/solrfcdata/var/solr/logs/solr.log
The following errors were observed:
INFO (main) [] o.a.s.c.SolrXmlConfig solr.xml not found in SOLR_HOME, using built-in default
INFO (main) [] o.a.s.c.SolrXmlConfig Loading solr.xml from /opt/solr-9.10.1/server/solr/solr.xml
ERROR (main) [] o.a.s.s.CoreContainerProvider Could not start Solr. Check solr/home property and the logs => org.apache.solr.common.SolrException: Could not load SOLR configuration
Defect or Enhancement Number:
Cause:
The configured SOLR_HOME was missing the required solr.xml configuration file.
As a result, Solr attempted to load the default solr.xml from:
/opt/solr-9.10.1/server/solr/solr.xml
However, Solr was unable to load the required configuration and failed to start.
Resolution or Workaround:
- Review the Solr logs to confirm the configuration-loading error:
/opt/solrfcdata/var/solr/logs/solr.log - Verify that the required
solr.xmlconfiguration is available in the configured Solr home directory. - The working
solr.xmlconfiguration was provided from:/opt/solr-9.10.1/server/solr/solr.xml - Apply the appropriate
solr.xmlconfiguration to the configuredSOLR_HOME. - Restart the Solr service:
systemctl restart solr.service
6. Verify that the Solr service starts successfully and monitor FileCloud search functionality.
Reference Configuration File
Download the working solr.xml configuration file from:
Notes: