ddev-contrib: Solr instance is not running in SolrCloud mode
I’m attempting to use Drupal 10.0.3 with Search API 4.2.10.
I followed the instructions on the README, but after I set the number of shards to 3 and submit (while trying to upload a new config set from /admin/config/search/search-api/server/ddev_server I get the following error:
Configset upload failed with error code 400: Solr HTTP error: OK (400) { "responseHeader":{ "status":400, "QTime":6}, "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}}
I am able to access the solr server at http://moreddev.ddev.site:8983/solr/#/
On the Drupal server view page (/admin/config/search/search-api/server/ddev_server):
- Server Connection:
The Solr server could be reached.
- Collection Connection:
The Solr collection could not be accessed. Further data is therefore unavailable.
- Configured Solr Version:
8.11.2
- Additional information:
An error occurred while trying to retrieve additional information from the Solr server: Solr endpoint http://ddev-moreddev-solr:8983/ not found (code: 404, body: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404 Not Found</h2> <table> <tr><th>URI:</th><td>/solr/techproducts/admin/luke</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Not Found</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table> </body> </html> , message: Solr HTTP error: OK (404) <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404 Not Found</h2> <table> <tr><th>URI:</th><td>/solr/techproducts/admin/luke</td></tr> <tr><th>STATUS:</th><td>404</td></tr> <tr><th>MESSAGE:</th><td>Not Found</td></tr> <tr><th>SERVLET:</th><td>default</td></tr> </table> </body> </html> ).
What am I missing?
thanks, -mike
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 19 (19 by maintainers)
I’ll change the documentation within search_api_solr to use that add-on. But I’ll wait a bit for the decision regarding https://github.com/ddev/ddev/issues/5002
I just released new versions of solarium and search_api_solr this week. I’ll read some documentation and hopefully find some time next week to convert this ddev-contrib into a plugin. Afterwards we can see how the documentation should be adjusted.
The bottom line for me is that the classic recipe is supported and lots of people use it. I’ve never been successful with the newer multi-instance setup, and don’t know how it adds value in a local dev setup, but I’m very naive about solr. https://github.com/ddev/ddev-drupal9-solr is supported and recommended, and this multi-solr is not supported by anybody I know of, although I keep hoping to get @mkalkbrenner supporting it, but he’s a busy person.
Hi @ultimike - Unfortunately I haven’t ever been able to make this solr cloud version work, and https://github.com/ddev/ddev-contrib/pull/195 never got far enough. @mkalkbrenner may be able to help here, but he’s pretty busy.
I’m afraid, much to @mkalkbrenner’s disapproval, I have to recommend the maintained, tested and stable traditional solr installation technique,
ddev get ddev/ddev-drupal9-solr
, https://github.com/ddev/ddev-drupal9-solr