Basic auth and index replication

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Basic auth and index replication

Dwane Hall
Hey Solr community.



I’ve been following a couple of open JIRA tickets relating to use of the basic auth plugin in a Solr cluster (https://issues.apache.org/jira/browse/SOLR-12584 , https://issues.apache.org/jira/browse/SOLR-12860) and recently I’ve noticed similar behaviour when adding tlog replicas to an existing Solr collection.  The problem appears to occur when Solr attempts to replicate the leaders index to a follower on another Solr node and it fails authentication in the process.



My environment

Solr cloud 7.6

Basic auth plugin enabled

SSL



Has anyone else noticed similar behaviour when using tlog replicas?



Thanks,



Dwane



2019-04-03T13:27:22,774 5000851636 WARN  : [   ] org.apache.solr.handler.IndexFetcher : Master at: <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17/">https://myserver:myport/solr/mycollection_shard1_replica_n17/ is not available. Index fetch failed by exception: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17:">https://myserver:myport/solr/mycollection_shard1_replica_n17: 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/mycollection_shard1_replica_n17/replication. Reason:

<pre>    require authentication</pre></p>

</body>

</html>

Reply | Threaded
Open this post in threaded view
|

Re: Basic auth and index replication

Dwane Hall
Hi guys,

Did anyone get an opportunity to confirm this behaviour.  If not is the community happy for me to raise a JIRA ticket for this issue?

Thanks,

Dwane
________________________________
From: Dwane Hall <[hidden email]>
Sent: Wednesday, 3 April 2019 7:15 PM
To: [hidden email]
Subject: Basic auth and index replication

Hey Solr community.



I’ve been following a couple of open JIRA tickets relating to use of the basic auth plugin in a Solr cluster (https://issues.apache.org/jira/browse/SOLR-12584 , https://issues.apache.org/jira/browse/SOLR-12860) and recently I’ve noticed similar behaviour when adding tlog replicas to an existing Solr collection.  The problem appears to occur when Solr attempts to replicate the leaders index to a follower on another Solr node and it fails authentication in the process.



My environment

Solr cloud 7.6

Basic auth plugin enabled

SSL



Has anyone else noticed similar behaviour when using tlog replicas?



Thanks,



Dwane



2019-04-03T13:27:22,774 5000851636 WARN  : [   ] org.apache.solr.handler.IndexFetcher : Master at: <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17/">https://myserver:myport/solr/mycollection_shard1_replica_n17/ is not available. Index fetch failed by exception: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17:">https://myserver:myport/solr/mycollection_shard1_replica_n17: 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/mycollection_shard1_replica_n17/replication. Reason:

<pre>    require authentication</pre></p>

</body>

</html>

Reply | Threaded
Open this post in threaded view
|

Re: Basic auth and index replication

Jan Høydahl / Cominvent
The MetricsHistory issue is now resolved. I think the replication issue already has a JIRA here https://issues.apache.org/jira/browse/SOLR-11904 <https://issues.apache.org/jira/browse/SOLR-11904> ?
Feel free to vote on that issue and perhaps add your own comments. And if you have an idea for a solution that is of course great!

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

> 23. apr. 2019 kl. 11:27 skrev Dwane Hall <[hidden email]>:
>
> Hi guys,
>
> Did anyone get an opportunity to confirm this behaviour.  If not is the community happy for me to raise a JIRA ticket for this issue?
>
> Thanks,
>
> Dwane
> ________________________________
> From: Dwane Hall <[hidden email]>
> Sent: Wednesday, 3 April 2019 7:15 PM
> To: [hidden email]
> Subject: Basic auth and index replication
>
> Hey Solr community.
>
>
>
> I’ve been following a couple of open JIRA tickets relating to use of the basic auth plugin in a Solr cluster (https://issues.apache.org/jira/browse/SOLR-12584 , https://issues.apache.org/jira/browse/SOLR-12860) and recently I’ve noticed similar behaviour when adding tlog replicas to an existing Solr collection.  The problem appears to occur when Solr attempts to replicate the leaders index to a follower on another Solr node and it fails authentication in the process.
>
>
>
> My environment
>
> Solr cloud 7.6
>
> Basic auth plugin enabled
>
> SSL
>
>
>
> Has anyone else noticed similar behaviour when using tlog replicas?
>
>
>
> Thanks,
>
>
>
> Dwane
>
>
>
> 2019-04-03T13:27:22,774 5000851636 WARN  : [   ] org.apache.solr.handler.IndexFetcher : Master at: <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17/">https://myserver:myport/solr/mycollection_shard1_replica_n17/ is not available. Index fetch failed by exception: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at <a href="https://myserver:myport/solr/mycollection_shard1_replica_n17:">https://myserver:myport/solr/mycollection_shard1_replica_n17: 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/mycollection_shard1_replica_n17/replication. Reason:
>
> <pre>    require authentication</pre></p>
>
> </body>
>
> </html>
>