Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4A62B200CD6 for ; Mon, 31 Jul 2017 19:01:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 490AB165724; Mon, 31 Jul 2017 17:01:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8E276165723 for ; Mon, 31 Jul 2017 19:01:08 +0200 (CEST) Received: (qmail 42922 invoked by uid 500); 31 Jul 2017 17:01:07 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 42911 invoked by uid 99); 31 Jul 2017 17:01:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2017 17:01:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1C3B0C012D for ; Mon, 31 Jul 2017 17:01:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2IdLe782hn-4 for ; Mon, 31 Jul 2017 17:01:01 +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 20C3860E75 for ; Mon, 31 Jul 2017 17:01: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 5FAE5E0059 for ; Mon, 31 Jul 2017 17:01: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 0B9E621ED9 for ; Mon, 31 Jul 2017 17:01:00 +0000 (UTC) Date: Mon, 31 Jul 2017 17:01:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4689) If keyStoreType and trustStoreType are not provided for monitor SSL, monitor fails obtusely MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 31 Jul 2017 17:01:09 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16107591#comment-16107591 ] Josh Elser commented on ACCUMULO-4689: -------------------------------------- Jetty defaults to a keystore/truststore type of JKS. However, in Accumulo, we default those configuration properties to be the empty string. When we set the empty-string, we create a runtime problem as Jetty doesn't know how to handle an (explicitly set) empty-string type. Avoiding setting empty types into the Jetty API gives us what we want. > If keyStoreType and trustStoreType are not provided for monitor SSL, monitor fails obtusely > ------------------------------------------------------------------------------------------- > > Key: ACCUMULO-4689 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4689 > Project: Accumulo > Issue Type: Bug > Reporter: Josh Elser > Assignee: Josh Elser > Fix For: 1.7.4, 1.8.2, 2.0.0 > > > I ran {{./bin/generate_monitor_certificate.sh}} and copied the content to accumulo-site.xml as instructed. I saw this error when starting the monitor: > {noformat} > 2017-07-28 16:02:22,844 [handler.ContextHandler] INFO : Started o.e.j.s.ServletContextHandler@67d82dcd{/,null,AVAILABLE} > 2017-07-28 16:02:22,937 [component.AbstractLifeCycle] WARN : FAILED SslContextFactory@771c3cb6(/Users/jelser/projects/accumulo.git/assemble/target/accumulo-1.7.4-SNAPSHOT/conf/keystore.jks,/Users/jelser/projects/accumulo.git/assemble/target/accumulo-1.7.4-SNAPSHOT/conf/cacerts.jks): java.security.KeyStoreException: not found > at java.security.KeyStore.getInstance(KeyStore.java:851) > at org.eclipse.jetty.util.security.CertificateUtils.getKeyStore(CertificateUtils.java:52) > at org.eclipse.jetty.util.ssl.SslContextFactory.loadKeyStore(SslContextFactory.java:864) > at org.eclipse.jetty.util.ssl.SslContextFactory.doStart(SslContextFactory.java:270) > at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) > at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125) > at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107) > at org.eclipse.jetty.server.SslConnectionFactory.doStart(SslConnectionFactory.java:64) > at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) > at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125) > at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107) > at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:260) > at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:81) > at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:218) > at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) > at org.eclipse.jetty.server.Server.doStart(Server.java:337) > at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) > at org.apache.accumulo.monitor.EmbeddedWebServer.start(EmbeddedWebServer.java:116) > at org.apache.accumulo.monitor.Monitor.run(Monitor.java:482) > at org.apache.accumulo.monitor.Monitor.main(Monitor.java:438) > at org.apache.accumulo.monitor.MonitorExecutable.execute(MonitorExecutable.java:33) > at org.apache.accumulo.start.Main$1.run(Main.java:120) > at java.lang.Thread.run(Thread.java:748) > Caused by: java.security.NoSuchAlgorithmException: KeyStore not available > at sun.security.jca.GetInstance.getInstance(GetInstance.java:159) > at java.security.Security.getImpl(Security.java:695) > at java.security.KeyStore.getInstance(KeyStore.java:848) > ... 22 more > {noformat} > It appears that the JKS type is required to be specified. It would be nice to fail "better", but at a minimum we should include that in the output generated by the script. -- This message was sent by Atlassian JIRA (v6.4.14#64029)