Unable to create new core WPSolr 22.3, Solr 9.0
simplistics-gordParticipant1 year, 1 month ago #30674
After extracting the WPSolr-generated configset files to /var/solr9/data/configsets/indexname, loading the Core Admin page of the Solr Admin panel shows the following error:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load configuration from directory /var/solr9/data/configsets/indexname
Attemping to then create the core from the interface, using default values except for instanceDir:configsets/indexname as suggested, another error is thrown:
org.apache.solr.common.SolrException: Error CREATEing SolrCore ‘indexname’: Couldn’t persist core properties to /var/solr9/data/configsets/indexname/core.properties1 year, 1 month ago #30675
It could be an issue with folder rights: https://stackoverflow.com/questions/50335733/adding-core-solr-error
For instance, if you installed Solr with root, but started it with solr user, solr user cannot write in root’s owned folders.
ls -l /var/solr9/data/shows root owner, change the owner recursively with
chown -R solr:solr /var/solr9/data/
simplistics-gordParticipant1 year, 1 month ago #30720
- This reply was modified 1 year, 1 month ago by wpsolr.
I’ve resolved permission issues and no longer get the warning of not being able to write to the configset dir, but still have the Solr error
Exception in reloading spell check index for spellchecker: suggestwhen creating the index, which triggers the request to fail and the configuration to not save to the site DB1 year, 1 month ago #30721
There must remain some kind of a similar issue.
You can create, though, your index “index1” manually in Solr’s dashboard (with the WPSOLR config files), then connect it to WPSOLR with the “/solr/index1” path. This will work, because WPSOLR will not try to create “index1” as it already exists: it will just save the index configuration in database.
You must be logged in to reply to this topic.