Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi i have an error message in solr and i dont know how to fix it. I regularly have problems with Solr.
Additional information : An error occurred while trying to retrieve additional information from the Solr server: Solr endpoint http://localhost:8983/ internal Solr server error (500). { "error":{ "trace":"java.lang.NullPointerException\n", "code":500}}
Comment | File | Size | Author |
---|---|---|---|
#10 | Capture d’écran du 2020-08-21 11-25-33.png | 266.67 KB | zenimagine |
#10 | Capture d’écran du 2020-08-21 11-25-24.png | 251.61 KB | zenimagine |
#10 | Capture d’écran du 2020-08-21 11-25-12.png | 189.18 KB | zenimagine |
#10 | Capture d’écran du 2020-08-21 11-25-01.png | 238.79 KB | zenimagine |
Capture d’écran du 2020-08-19 12-08-39.png | 269.47 KB | zenimagine |
Comments
Comment #2
mkalkbrennerPlease check the Solr logs for more details and post them here.
Comment #3
zenimagine CreditAttribution: zenimagine commentedI have this error in the logs :
Comment #4
mkalkbrennerThis is Drupal's log. We need more details directly from Solr's log.
(Solr doesn't provide all information to Drupal as response.)
Comment #5
zenimagine CreditAttribution: zenimagine commentedOl. Do you know where is the solr log in ubuntu ?
Comment #6
zenimagine CreditAttribution: zenimagine commentedHere is part of the diary, I don't know if this is what you want :
Comment #7
mkalkbrennerIs there something like "caused by" in the logs?
I assume that you configured a Solr Cloud connector because all you queries use "distrib=true". Are you sure that you run Solr in Cloud mode?
Comment #8
zenimagine CreditAttribution: zenimagine commentedI have Drupal and Solr on the same server
Comment #9
mkalkbrenner"Cloud" means a specific mode for Solr, even on one server.
In the Search API Server settings in Drupal you have to select a backend. If you choose Solr you have to select the specific "Connector" in the next step. There's "Solr" and "Solr Cloud".
From the logs I assume that you selected "Solr Cloud" but you don't run Solr in Cloud mode on your server.
You could either configure the correct connector in Drupal or start Solr in Cloud mode.
Comment #10
zenimagine CreditAttribution: zenimagine commentedI just read the documentation, but I don't understand what to do.
Here is how I installed Solr on my server (the same server as Drupal) :
Comment #11
mkalkbrennerLike I assumed. You run Solr in non-Cloud mode. But the screenshot shows that you use the Solr Cloud Connector. It is visible at the bottom of the screenshot:
Switch to "Standard" or "Basic Auth", whatever is appropriate.
Comment #12
zenimagine CreditAttribution: zenimagine commentedGreat, thanks it works. What is the difference between basic and cloud? If solr and drupal are on the same server, which should I choose?
Comment #13
mkalkbrennerThe Cloud mode was introduced to distribute the load across multiple servers.
But you can also start Solr on a single server in Cloud Mode (this is what the docker based jump-starts provided as part of the module do).
This makes sense if you need newer features like Streaming Expressions or the Configsets API which are only available if you start Solr in Cloud mode:
https://lucene.apache.org/solr/guide/8_5/streaming-expressions.html
https://lucene.apache.org/solr/guide/8_5/configsets-api.html#configsets-api
I assume that you don't need this features now.
But the config.zip is exactly the format required for the Configsets API. And if I find time or a sponsor for #3057829: Automatic upload of config-sets to Solr Cloud I'll remove all the manual steps to setup a Drupal index in Solr using the Configset API for Solr Cloud. So Solr Cloud is the future, even on a single server.
Comment #14
zenimagine CreditAttribution: zenimagine commentedOk yes that would be great.
Is my installation correct (it is one year old)? Because I see in the documentation that you download Solr directly to the website folder.
Comment #15
mkalkbrennerWhich documentation is that?
I don't recommend it this way ;-)
Comment #16
mkalkbrenner