Closed (fixed)
Project:
Search API Solr
Version:
8.x-3.8
Component:
Solr Connectors
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2020 at 17:36 UTC
Updated:
13 Nov 2020 at 11:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mkalkbrennerCheck the Solr log files.
Comment #3
minoroffense commentedI'm getting something similar. Says the server is there, indexing seems to work but that message appears. And searches don't work. In my case the logs say something about the ping request triggering an exception:
Comment #4
mkalkbrennerThe qt param seems to be missing int the query string. Can you enable search_api_solr_devel to get a dump of the query that gets generated and post it here?
Comment #5
minoroffense commentedHere's one of them. There are some other errors.
I have another solr cloud instance that works with this site so I'm trying to figure out why that one is different.
Comment #6
minoroffense commentedHere's another specifically for a select request
Comment #7
mkalkbrennerObvoiously aou use the Solr Cloud connector. Are you really running Solr in Cloud mode?
Is it a local installation or do you leverage a Solr service provider?
Comment #8
mkalkbrennerHere's a little patch that "might" improve the error message to give a hint.
Comment #10
mkalkbrennerComment #11
minoroffense commentedCool thanks. Actually I was doing some debugging. I think what happened in my case was when I tried to generate the configs, Drupal failed to ask solr what version it was and so it generated solr 6 conf and tried to deploy it. Solr took that in and a partially functional collection was created. But then searches wouldn't work.
I had to change the code to default to solr 7 so the auto detect wouldn't override on a ping failure.
Once I got a good config it started working properly.
I'm not sure how I got it into this state in the first place where Drupal couldn't detect the version. I have to deploy this to a few more environments soon enough and if I run into this again I'll provide steps to reproduce.
Comment #12
minoroffense commentedJust to clarify our CI pipeline process takes the generated config and ships it to solr automatically. Drupal isn't doing that on its own.
Comment #13
mkalkbrennerYou could specify the Solr major version explicitly in the admin UI. In addition you can force a specific version instead the autodection when you you run the drush command to create the config-set. It is documented in INSTALL.md:
Comment #14
stephenplatz commentedI'm still having issues, after applying the patch I'm getting
Error: Wrong parameters for Drupal\search_api_solr\SearchApiSolrException([string $message [, long $code [, Throwable $previous = NULL]]]) in Exception->__construct() (line 893 of /app/web/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php).Looking at solr_gc.log.0.current, solr.log, and the most current request.log, I'm just not seeing anything that looks strange, to my eye. But, I'm not able to index more than 50 items, and sometimes not even that, with the same message as before (without the patch)Drupal\search_api_solr\SearchApiSolrException while trying to index items on index solr_index: Solr endpoint unreachable or returned unexpected response code "0". in Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->indexItems() (line 979 of /search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php)Comment #15
stephenplatz commentedComment #16
stephenplatz commentedComment #17
mkalkbrennerYes, the patch contained an typo. The second commit fixed that before 3.9 was released.
Comment #18
stephenplatz commentedOK, thanks, that's helpful, I had missed the update. I (probably) know that the issue is at least on the server now with
Drupal\search_api_solr\SearchApiSolrException while trying to index items on index solr_index: Solr endpoint internal Solr server error (0). in Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->indexItems() (line 998 of /app/web/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php). I'm not seeing any obvious errors in the server logs, but I'll do some research to see if I can pick out some clues.edit I think my issue is still one of module configuration, adjusting the timeout settings for basic auth connections seems to have resolved some of the error messages and allowed the content to be indexed.
Comment #20
lakshmi_a commentedWhen i am searching data using autocomplete i am getting error.
Drupal\search_api_solr\SearchApiSolrException: Solr endpoint http://10.98.101.118:8983/ not found (404). Error 404 Not Found
HTTP ERROR 404
Problem accessing /solr/meme_core/autocomplete. Reason:
in Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->handleHttpException() (line 998 of /var/www/html/meme/meme_qa_migration/modules/contrib/search_api_solr/src/SolrConnector/SolrConnectorPluginBase.php)
Please suggest e