Solr not working after FileCloud 23.x upgrade
Original Question or Issue:
Solr not working after FileCloud 23.232 upgrade
Environment:
- Product - FileCloud Server
- Version - 23.232 or higher
- Platform - Any
Steps to Reproduce:
Error or Log Message:
Defect or Enhancement Number:
Cause:
Resolution or Workaround:
FileCloud 23.232 or higher versions come with Solr 9.4 or higher, while old versions use Solr 8.11. The upgrade script should automatically handle this migration to Solr 9.4 or higher, but in some cases, it may fail.The below steps can fix the issue:
- Verify OpenJDK 11 is installed
- Stop Solr service (On Windows using the control panel, in Linux service solr stop)
- Verify the old cores are present inside the solr home data folder:
Linux: /opt/solrfcdata/var/solr/data
- If the old cores are not present in Windows, copy the old cores from the renamed "xampp" folder "xampp_date_of_upgrade\solr\server\solr\fccore" created during the upgrade process to xampp\solr\server\solr.
- For Linux, the home data directory /opt/solrfcdata/var/solr/data should be the same.
- Once your core folder is in place, copy the solrconfig.xml file from the web root directory to the core config directory after renaming the existing solrconfig.xml file.
Windows: xampp\solr\server\solr\fccore\conf\solrconfig.xml
Linux: /opt/solrfcdata/var/solr/data/fccore/conf/solrconfig.xml
Copy the new solrconfig.xml (18 KB file) from the source path:
Windows: xampp\htdocs\thirdparty\overrides\solarium\Solarium\fcskel\conf\solrconfig.xml
Linux: /var/www/html/thirdparty/overrides/solarium/Solarium/fcskel/conf/solrconfig.xml
To destination Folder:
Windows: xampp\solr\server\solr\fccore\conf\
Linux: /opt/solrfcdata/var/solr/data/fccore/conf/
- Restart the Solr service (On Windows using the control panel and in Linux by running service solr start)
- Verify the Solr configuration from FileCloud Admin Portal>Settings>Solr.
- If the issue is seen with the tenant site, the solr core name should be changed in reference to the tenant site, ie any reference to fccore to fccore_sitename etc.
Notes: