Hi, Sorry for the late reply, Yes above issue is related to https://issues.apache.org/jira/browse/SOLR-9188 . Could you please let me know the workaround for this.
Thanks, Shankar. On Fri, Jul 8, 2016 at 7:13 PM, Aleš Gregor <alg...@gmail.com> wrote: > Hello, > > could this be related to https://issues.apache.org/jira/browse/SOLR-9188 ? > > Ales Gregor > > > > 2016-06-24 15:15 GMT+02:00 Shankar Ramalingam <shankarmc...@gmail.com>: > > > Hi Team, > > > > Basic Authentication is enabled on Solr cloud and node1 is running on one > > machine and node2 is runnin on second machine, zookeeper installed on > > second machine. Getting unathorized error when enable basic auth, error > > mostly occure when machine trying access machine 2 solr and also while > > starting solr also i can see the error message. > > > > > > It would be grateful if you help me to resole the issue. I saw some jira > > ticket stating that some internode communication issue and got fixed in > > solr 6, but I am using solr 6 only and also getting isssue, Even-though > am > > login admin user on solr UI, sometime getting Error 401 Unauthorized > > request mostly request go to node1 to node2. > > > > > > > > [c:adm s:shard2 r:core_node2 x:adm_shard2_replica2 ] > > o.a.s.h.RequestHandlerBase > > org.apache.solr.client.solrj.impl.HttpSolrClient$Re > > moteSolrException: > > Error from server at http://172.16.7.58:8983/solr/adm_shard2_ replica1: > > 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 Unauthorized request, Response code: 401</title> > > </head> > > <body><h2>HTTP ERROR 401</h2> > > <p>Problem accessing /solr/adm_shard2_replica1/select. Reason: > > <pre> * Unauthorized request, Response code: 401*</pre></p> > > </body> > > </html> > > > > > > > > *Below code define in security.json* > > > > -bash-3.2# curl --user solr:SolrRocks > > http://localhost:8983/solr/admin/authorization > > { > > "responseHeader":{ > > "status":0, > > "QTime":0}, > > "authorization.enabled":true, > > "authorization":{ > > "class":"solr.RuleBasedAuthorizationPlugin", > > "user-role":{"solr":"admin"}, > > "permissions":[{ > > "name":"security-edit", > > "role":"admin", > > "index":1}, > > { > > "name":"read", > > "role":"admin", > > "index":2}, > > { > > "name":"collection-admin-read ", > > "role":"admin", > > "index":3}], > > "":{"v":50}}} > > > > > > > > Thanks, > > Shankar. > > Contact: 91+9894546732 > > >