Skip to content

SolrCore is not available due to init failure #64

@gitressa

Description

@gitressa

Preliminary checklist

  • I am using the latest stable version of DDEV
  • I am using the latest stable version of this add-on

Expected Behavior

I am starting to see an error in DDEV, after a restart. The web site says: "Error message - An error occurred while searching, try again later."

And if I try to connect to it with Drush, where my "Default Solr collection" (core?) is called my_core:

"msg":"SolrCore 'my_core' is not available due to init failure: ",

After deleting the collection with Drush (drush search-api-solr:delete-collection solr_server) and both core and collection are empty:

No collections available Go and create one
No cores available Go and create one

... in the Solr admin GUI (https://mysite.ddev.site:8943), it shows this error message at the top:

SolrCore Initialization Failures my_core: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Please check your logs for more information

The solution seems to be to start fresh, by deleting core and collection, and then also delete the core by visiting this URL:

https://mysite.ddev.site:8943/solr/admin/cores?action=UNLOAD&core=my_core&deleteInstanceDir=true

... and recreate the config with drush search-api-solr:upload-configset --numShards=1 solr_server.

Though, that might not always result in a working environment, and in the end, the only method that fixes, it is uninstalling the DDEV Solr add-on, and re-installing it.

Actual Behavior

It fails to init.

Steps To Reproduce

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions