Islandora-Devops / isle-site-template

Template for building and customising your institution's Islandora installation.
MIT License
6 stars 5 forks source link

Problems with Solr in Drupal Logs while booting up site template #31

Closed rosiel closed 4 months ago

rosiel commented 5 months ago

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

Screenshot 2024-02-02 at 9 33 22 AM
aOelschlager commented 5 months ago

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: https://github.com/Islandora-Devops/isle-buildkit/commit/b88f2b5c10688f413e9fcf1219a8e5dc48a5ce16

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.