From dev-return-332505-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Wed Aug 29 09:50:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D140E180657 for ; Wed, 29 Aug 2018 09:50:09 +0200 (CEST) Received: (qmail 94894 invoked by uid 500); 29 Aug 2018 07:50:03 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 94878 invoked by uid 99); 29 Aug 2018 07:50:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2018 07:50:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 48AF11A15EA for ; Wed, 29 Aug 2018 07:50:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -108.05 X-Spam-Level: X-Spam-Status: No, score=-108.05 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_BADIPHTTP=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Eff483L8Ncpz for ; Wed, 29 Aug 2018 07:50:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3D6C55F470 for ; Wed, 29 Aug 2018 07:50:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 63BDDE02ED for ; Wed, 29 Aug 2018 07:50:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1FDBB23F98 for ; Wed, 29 Aug 2018 07:50:00 +0000 (UTC) Date: Wed, 29 Aug 2018 07:50:00 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-12526) Metrics History doesn't work with AuthenticationPlugin MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-12526?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1659= 6052#comment-16596052 ]=20 Jan H=C3=B8ydahl commented on SOLR-12526: ------------------------------------ I have not tested the custom plugin but see from the code that it wants to = handle inter node requests, so then it is responsible for doing so in all c= ases. Michal, if you believe or later find out that there are issues in Sol= r as well, feel free to re-open. > Metrics History doesn't work with AuthenticationPlugin > ------------------------------------------------------ > > Key: SOLR-12526 > URL: https://issues.apache.org/jira/browse/SOLR-12526 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public)=20 > Components: Authentication, metrics > Affects Versions: 7.4 > Reporter: Michal Hlavac > Priority: Critical > Attachments: ProxyAuthPlugin.java > > > Since solr 7.4.0 there is Metrics History which uses SOLRJ client to make= http requests to SOLR. But it doesnt work with AuthenticationPlugin. Since= its enabled by default, there are errors in log every time=C2=A0{{MetricsH= istoryHandler}} tries to collect data. > {code:java} > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Err= or from server at http://172.20.0.5:8983/solr: Expected mime type applicati= on/octet-stream but got text/html. > > > Error 401 require authentication > >

HTTP ERROR 401

>

Problem accessing /solr/admin/metrics. Reason: >

 =C2=A0=C2=A0=C2=A0require authentication

> > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.HttpSolrClient.executeMethod(HttpSolrClient.java:607) ~[solr-solrj-7.= 4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz - 2018-06-= 18 16:55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.HttpSolrClient.request(HttpSolrClient.java:255) ~[solr-solrj-7.4.0.ja= r:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz - 2018-06-18 16:= 55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.HttpSolrClient.request(HttpSolrClient.java:244) ~[solr-solrj-7.4.0.ja= r:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz - 2018-06-18 16:= 55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .SolrClient.request(SolrClient.java:1219) ~[solr-solrj-7.4.0.jar:7.4.0 9060= ac689c270b02143f375de0348b7f626adebc - jpountz - 2018-06-18 16:55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.SolrClientNodeStateProvider$ClientSnitchCtx.invoke(SolrClientNodeStat= eProvider.java:292) ~[solr-solrj-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0= 348b7f626adebc - jpountz - 2018-06-18 16:55:1 > 4] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.SolrClientNodeStateProvider.fetchMetrics(SolrClientNodeStateProvider.= java:150) [solr-solrj-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626ad= ebc - jpountz - 2018-06-18 16:55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.SolrClientNodeStateProvider$AutoScalingSnitch.getRemoteInfo(SolrClien= tNodeStateProvider.java:199) [solr-solrj-7.4.0.jar:7.4.0 9060ac689c270b0214= 3f375de0348b7f626adebc - jpountz - 2018-06-18 > 16:55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.common.cloud= .rule.ImplicitSnitch.getTags(ImplicitSnitch.java:76) [solr-solrj-7.4.0.jar:= 7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz - 2018-06-18 16:55= :14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.client.solrj= .impl.SolrClientNodeStateProvider.getNodeValues(SolrClientNodeStateProvider= .java:111) [solr-solrj-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626a= debc - jpountz - 2018-06-18 16:55:14] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.handler.admi= n.MetricsHistoryHandler.collectGlobalMetrics(MetricsHistoryHandler.java:495= ) [solr-core-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpo= untz - 2018-06-18 16:55:13] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.handler.admi= n.MetricsHistoryHandler.collectMetrics(MetricsHistoryHandler.java:368) [sol= r-core-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz -= 2018-06-18 16:55:13] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at org.apache.solr.handler.admi= n.MetricsHistoryHandler.lambda$new$0(MetricsHistoryHandler.java:230) [solr-= core-7.4.0.jar:7.4.0 9060ac689c270b02143f375de0348b7f626adebc - jpountz - 2= 018-06-18 16:55:13] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.Executo= rs$RunnableAdapter.call(Executors.java:514) [?:?] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.FutureT= ask.runAndReset(FutureTask.java:305) [?:?] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.Schedul= edThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.ja= va:305) [?:?] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.ThreadP= oolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.util.concurrent.ThreadP= oolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0at java.lang.Thread.run(Thread.= java:844) [?:?] > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org