[ https://issues.apache.org/jira/browse/SOLR-13510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912179#comment-16912179 ]
Steven W commented on SOLR-13510: --------------------------------- I'm still seeing this issue on Solr 8.2, and it only happens on the replicas. {code:java} > Master at: > http://xx.xx.xx.xx:8983/solr/collection1_shard6_replica_t53/ > <http://xx.xx.xx.xx:8983/solr/collection1_shard6_replica_t53/> is not > available. Index fetch failed by exception: > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: > Error from server > at http://xx.xx.xx.xx:8983/solr/collection1_shard6_replica_t53 > <http://xx.xx.xx.xx:8983/solr/collection1_shard6_replica_t53>: 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/collection1_shard6_replica_t53/replication. Reason: > <pre> require authentication</pre></p></body></html>{code} > Intermittent 401's for internode requests with basicauth enabled > ---------------------------------------------------------------- > > Key: SOLR-13510 > URL: https://issues.apache.org/jira/browse/SOLR-13510 > Project: Solr > Issue Type: Bug > Components: Authentication > Affects Versions: master (9.0) > Reporter: Jason Gerlowski > Assignee: Cao Manh Dat > Priority: Major > Fix For: master (9.0), 8.2, 8.1.2 > > Attachments: SOLR-13510.patch > > > We recently got a bug report on the mailing list: > {quote} > On Solr 8.1.1, using our previously working security.json, running queries > (through the admin UI currently) I non-deterministically get 401 responses > on queries when a collection has more than 1 shard. Increasing the number > of shards in the collection makes the errors more likely. > { > "responseHeader":{ > "zkConnected":true, > "status":401, > "QTime":30, > "params":{ > "q":"*:*", > "_":"1559474550365"}}, > "error":{ > "metadata":[ > "error-class","org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException", > "root-error-class","org.apache.solr.client.solrj.impl.BaseHttpSolrClient$RemoteSolrException"], > "msg":"Error from server at null: Expected mime type > application/octet-stream but got text/html. <html>\n<head>\n<meta > http-equiv=\"Content-Type\" > content=\"text/html;charset=utf-8\"/>\n<title>Error 401 require > authentication</title>\n</head>\n<body><h2>HTTP ERROR 401</h2>\n<p>Problem > accessing /solr/gettingstarted_shard4_replica_n6/select. Reason:\n<pre> > require authentication</pre></p>\n</body>\n</html>\n", > "code":401}} > {quote} > The reporter (credit to Colvin Cowie) also gives reproduction steps: > {quote} > # Extract solr 8.1.1. > # bin\solr start -e cloud > 1 node / [default port] / [default collection name] / 4 shards / 1 > replica / [_default configuration] > # server\scripts\cloud-scripts\zkcli -zkhost localhost:9983 -cmd putfile > /security.json <path-to-security-json-file-with-content-below> > { > "authentication": { > "blockUnknown": true, > "class": "solr.BasicAuthPlugin", > "credentials": { > "solradmin": "PIWZwkGnEKxKnqUs3X08xmbmYBaYyAeP3FiKp7fmeHc= > Lnbp6bEbE7Ap8lXvQDKkUX2Xw53QDgP6Ae8QRT0P5/A=" > } > }, > "authorization": { > "class": "solr.RuleBasedAuthorizationPlugin", > "permissions": [{ "name": "all", "role": "admin"} ], > "user-role": {"solradmin": "admin"} > } > } > {quote} > (Minor edits for conciseness) > I'm able to reproduce this bug as well. Other auth issues (SOLR-13472) look > like they're impacted by the topography of the collection and cluster. But > this doesn't seem affected by that at all (401's occur on inter-node requests > regardless of the recipient of the initial request, and even when all nodes > have a shard replica). -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org