Unable to create new core WPSolr 22.3, Solr 9.0

  • wpsolr
    Keymaster
    1 year, 8 months ago #30671

    Copy the WPSOLR files in a new folder /var/solr9/data/configsets/index1/conf
    Then create a index1 index in the Solr admin, but with instanceDir: configsets/index1

    wpsolr
    Keymaster
    1 year, 8 months ago #30672

    Or just copy WPSOLR files in /var/solr9/data/index1/conf, with default values on the Solr’s new index1 parameters (instanceDir: index1)

    wpsolr
    Keymaster
    1 year, 8 months ago #30673

    Then, use /solr/index1 to connect to this exiting index.

    simplistics-gord
    Participant
    1 year, 8 months 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.properties

    wpsolr
    Keymaster
    1 year, 8 months 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.
    If ls -l /var/solr9/data/ shows root owner, change the owner recursively with chown -R solr:solr /var/solr9/data/

    • This reply was modified 1 year, 8 months ago by wpsolr.
    simplistics-gord
    Participant
    1 year, 8 months ago #30720

    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: suggest when creating the index, which triggers the request to fail and the configuration to not save to the site DB

    wpsolr
    Keymaster
    1 year, 8 months 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.

Viewing 7 posts - 16 through 22 (of 22 total)

You must be logged in to reply to this topic.