Error creating core Solr9 with config.zip

Created on 3 June 2025, 2 months ago

Hello,

Setup

  • Solr version: 9.8.1
  • Drupal Core version: 10.3.11
  • Search API version: 8.x-1.38
  • Search API Solr version: 4.3.10
  • Configured Solr Connector: Basic auth

Issue

We have multiple sites using Search_api_solr + Solr8 which are working fine but we want to upgrade them to Solr9.
The server is set but, while following the instructions from "Local Solr Instance: Solr (single core) - the classic way" (https://git.drupalcode.org/project/search_api_solr) we can't create the core with the configset downloaded from the search_api UI.

Here is the error :

sudo -u solr /opt/solr/bin/solr create_core -c mycore -d /opt/solr-9.8.1/server/solr/mycore/conf/
Neither --zk-host or --solr-url parameters provided so assuming solr url is http://localhost:8983.
ERROR: Error from server at http://localhost:8983/solr/admin/cores?action=CREATE&name=mycore&instanceDir=mycore&wt=javabin&version=2: parsing error

We also tried to create the core with Solr's default config set, update the configurations file from the archive downloaded, then reload the core (from Solr UI) which leads to this other error :

SolrCore Initialization Failures
bouygues-core: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: JVM Error creating core [mycore]: org/apache/solr/schema/FieldType

Following the warning displayed we also set SOLR_MODULES environment variable to include modules required by Search API Solr per default: "SOLR_MODULES="extraction,langid,ltr,analysis-extras"

Is there any steps we are missing for Solr 9 ?

Thanks

💬 Support request
Status

Active

Version

4.3

Component

Solr Configuration Generator

Created by

🇫🇷France paulguy Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @paulguy
  • 🇩🇪Germany mkalkbrenner 🇩🇪

    Your Solr 9 seems to run in cloud mode

  • 🇫🇷France paulguy Paris

    Hello,
    Thanks for your quick answer, I couldn't get back to this before sadly.

    I had the confirmation thats our solr is not in cloud mode. I followed the "Local Solr Instance: Solr Cloud - the classic way" but get this error on the curl api call :

    "responseHeader":{
        "status":400,
        "QTime":75
      },
      "error":{
        "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],
        "msg":"Solr instance is not running in SolrCloud mode.",
        "code":400
      }

    Retried from scratch with a newly downloaded config.zip but still have the 'parsing error' on create_core command.
    I have updated Drupal core to 10.4.7 since last time.
    Does PHP version (still 8.2.28) can be an issue ?
    I am also looking for logs to check which file can't be parsed.

  • 🇩🇪Germany webflo

    SOLR_CONFIG_LIB_ENABLED=true fixes the issue for Solr in Standard mode.

Production build 0.71.5 2024