Problem Symptom: Whenever you are performing indexing from backoffice, you will get 401 authentication error.
Indexing failed19.09.2018 10:03:47: ERROR: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at https://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. <html>
<head>
<meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″/>
<title>Error 401 require authentication</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /solr/admin/cores. Reason:
<pre> require authentication</pre></p>
</body>
</html> …
19.09.2018 10:03:47: WARNING: Error during indexer call: TrainingFacetSearch
Steps to resolve:
- In most recent versions of Hybris, Solr expects you to fill out the solrclient and solrindexingclient credentials.
- Update the solr.impex file as below:
- Run the solr.impex file from hac or update the respective extension from hac.
- After update, backoffice solrserver configuration would look like this:
- Perform indexing from backoffice. you should see no-errors now.