Introducing AI-Powered Smart Match Assist for Site Search - Reduce the Impact of No Result Searches | LEARN MORE
February 16, 2021
Dipsy Kapoor
|
While reviewing tuning suggestions for a customer using cluster Solr 8.1.1 deployments with Sitecore 9.3, we found evidence of a Solr bug that is causing intermittent 401 errors when Basic Authentication is enabled. If you are experiencing this issue, we are recommending an upgrade to Solr 8.2.
Cluster Solr 8.1.1 deployments with Basic Authentication enabled may have intermittent failures during inter-node communication during indexing. The result is that the requests fail with 401 errors.
This issue has been previously reported as SOLR-13510 on the Apache Solr Issues webpage.
If your Solr deployment is facing this issue, you will see errors messages similar to the one shown below:
2019-06-04 07:31:00.227 ERROR (qtp67730604-24) [c:gettingstarted s:shard1 r:core_node3 x:gettingstarted_shard1_replica_n1] o.a.s.h.RequestHandlerBase org.apache.solr.client. solrj.impl.BaseHttpSolrClient$RemoteSolrException: Error from server at null: Expected mime type application/octet-stream but got text/html.
Error 401 require authentication
HTTP ERROR 401
Problem accessing /solr/gettingstarted_shard3_replica_n4/select. Reason:
require authentication
at org.apache.solr.client.solrj.impl.Http2SolrClient.processErrorsAndResponse (Http2SolrClient.java:681) at org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:400) at org.apache.solr.client.solrj.impl.Http2SolrClient.request(Http2SolrClient.java:739) at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1274) at org.apache.solr.handler.component.HttpShardHandler.request(HttpShardHandler.java:227) at org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0 (HttpShardHandler.java:188) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run (InstrumentedExecutorService.java:181) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0 (ExecutorUtil.java:209) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)
If you are receiving intermittent 401 errors in Solr 8.1.1 deployments with Sitecore 9.3 and have implemented Basic Authentication, we recommend an upgrade to Solr 8.2. While Solr 8.1.1 is the currently recommended version for Sitecore 9.3, our team is working with Sitecore on this issue to establish broader support for Sitecore 9.3 and Solr 8.2.
Please submit a Support Ticket through the Managed Solr Dashboard if you have any additional questions. If you are experiencing any other Solr performances issues on Sitecore, check out our blog post with 5 ways to Optimize Solr Search Performance.
The Stack is delivered bi-monthly with industry trends, insights, products and more
Copyrights © SearchStax Inc.2014-2024. All Rights Reserved.
SearchStax Site Search solution is engineered to give marketers the agility they need to optimize site search outcomes. Get full visibility into search analytics and make real-time changes with one click.
close
SearchStax Managed Search service automates, manages and scales hosted Solr infrastructure in public or private clouds. Free up developers for value-added tasks and reduce costs with fewer incidents.
close
close