ddev / ddev-solr

Solr service for DDEV
Apache License 2.0
5 stars 5 forks source link

SOlR's collection is not persistent post ddev restart #29

Closed SamitKhulve-materialplus closed 6 months ago

SamitKhulve-materialplus commented 6 months ago

Facing following 2 issues.

  1. Solr collection is not creating automatically, i have to create it manually by following this doc
  2. Solr collection is not persistent post ddev restart. post restart we have to create the collection and upload the cojfigset again and again by using following comand. ddev drush --numShards=1 search-api-solr:upload-configset SEARCH_API_SERVER_ID

Please let me know how to resolve above issues.

Thanks Samit K.

mkalkbrenner commented 6 months ago

you should not create the collection "manually". the drush command will also create the collection. And it is persistent.

SamitKhulve-materialplus commented 6 months ago

Hi @mkalkbrenner ,

Without creating solr collection manually, I am getting following error.

$ ddev drush --numShards=1 search-api-solr:upload-configset local_solr

In StandardSolrCloudConnector.php line 264:

Configset upload failed with error code 28: Solr HTTP error: HTTP request failed, Operation timed out after 30000 milliseconds with 0 bytes received (28)

In Curl.php line 60:

Solr HTTP error: HTTP request failed, Operation timed out after 30000 milliseconds with 0 bytes received (28)

Failed to run drush --numShards=1 search-api-solr:upload-configset local_solr: exit status 28

SamitKhulve-materialplus commented 6 months ago

Closing this issue, I missed to update the host from localhost to solr.

Thanks Samit K.