Problems with Solr in Drupal Logs while booting up site template
Closed this issue · 1 comments
I created a brand new site template from the automatic install instructions (and gave it a unique name in .env). But after the up
command, when we tail the drupal logs waiting to see # Install Completed #
, there were a LOT of error messages (not just the usual ones about the flysystem driver missing, RDF namespaces can't be added, and advanced search blocks can't be found). The big long message appeared twice but the main part was
"msg":"SolrCore 'default' is not available due to init failure: Could not load conf for core default: Can't load schema /opt/solr/server/solr/default/conf/schema.xml: Plugin init failure for [schema.xml] fieldType \"collated_en\": Error loading class 'solr.ICUCollationField'"
I'm not sure if ICUCollationField is a new thing and we have a mismatch in expected field types between solr and search_api_solr?
It also sounds like this issue, which would imply we just need to check the path to solr: https://stackoverflow.com/questions/62652640/error-when-initializing-solr-core-error-loading-class-solr-icucollationfield
The solr image in buildkit has been updated to use solr 9. The druapl container that gets created from the image in this repository has outdated solr configurations that are located here:
https://github.com/Islandora-Devops/isle-site-template/tree/main/drupal/rootfs/opt/solr/server/solr/default/conf
In buildkit, the test image is set up very similar to this repository's drupal image. When the update happen from solr 8 to solr 9, the solr configuration for the test image was also updated:
Islandora-Devops/isle-buildkit@b88f2b5
I would say in the meantime, change the islandora_tag in the .env file from main to 3.0.8 and see if the errors still exists. A pr should be made to update the configurations at some point I think.