# X-pack plugin installation issue in elastic search

**URL:** <https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 9:05pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689 "2017-07-03T21:05:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![gs21](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gs21](https://discuss.elastic.co/u/gs21)\
**Post date:** [July 3, 2017, 9:05pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/1 "2017-07-03T21:05:44Z")

</div>

Hello ,

Can you please help me in debugging the following issue

C:\ES\_NEW\elasticsearch-5.4.3\> **bin\elasticsearch-plugin install x-pack**  
-\> Downloading x-pack from elastic  
Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1926)  
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921)  
at java.security.AccessController.doPrivileged(Native Method)  
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)  
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:282)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZipAndChecksum(InstallPluginCommand.java:325)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:234)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:199)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.Command.main(Command.java:88)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)  
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)  
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)  
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)  
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)  
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1514)  
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)  
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)  
at sun.security.ssl.Handshaker.process\_record(Handshaker.java:961)  
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)  
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)  
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)  
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)  
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)  
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)  
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2982)  
at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629)  
at java.net.URLConnection.getContentLengthLong(URLConnection.java:501)  
at java.net.URLConnection.getContentLength(URLConnection.java:485)  
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:281)  
... 10 more  
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)  
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)  
at sun.security.validator.Validator.validate(Validator.java:260)  
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)  
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)  
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)  
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1496)  
... 27 more  
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)  
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)  
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)  
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)  
... 33 more

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 4, 2017, 3:32am UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/2 "2017-07-04T03:32:52Z")

</div>

What JVM are you running?

---

<div class="post-metadata">

**Author:** ![gs21](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gs21](https://discuss.elastic.co/u/gs21)\
**Post date:** [July 5, 2017, 6:43pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/3 "2017-07-05T18:43:35Z")

</div>

Hello Mark,

I am trying to install x-pack in windows and JVM details are as below

java version "1.8.0\_131"  
Java(TM) SE Runtime Environment (build 1.8.0\_131-b11)  
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 6, 2017, 3:27am UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/4 "2017-07-06T03:27:04Z")

</div>

Are you behind a corporate proxy?

The error you are getting seems to be because your JVM cannot verify the SSL certificate of the elastic download site.

That _shouldn't_ happen, but can sometime be caused by:

- Weird JVMs, particularly OpenJDK builds that ship with a customised set of CA certs.
- Corporate MITM proxies that generate their own SSL certificates on the fly.

---

<div class="post-metadata">

**Author:** ![gs21](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gs21](https://discuss.elastic.co/u/gs21)\
**Post date:** [July 6, 2017, 4:16pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/5 "2017-07-06T16:16:51Z")

</div>

The JVM was installed from the following site  
[http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)

Installing CA certificates from elastic site and adding them to local will help ?

I have even tried to install it offline. But facing some FileNotFoundException. The x-pack is downloaded in the "C:\ES\_NEW\x-pack-5.4.3" folder

C:\ES\_NEW\elasticsearch-5.4.3\>bin\elasticsearch-plugin install file:C:\ES\_NEW\x-pack-5.4.3  
-\> Downloading file:C:\ES\_NEW\x-pack-5.4.3 from maven central  
Exception in thread "main" java.io.FileNotFoundException: [https://repo1.maven.org/maven2/file/C/\ES\_NEW\x-pack-5.4.3/C-\ES\_NEW\x-pack-5.4.3.zip](https://repo1.maven.org/maven2/file/C/%5CES_NEW%5Cx-pack-5.4.3/C-%5CES_NEW%5Cx-pack-5.4.3.zip)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1926)  
at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1921)  
at java.security.AccessController.doPrivileged(Native Method)  
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1920)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1490)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)  
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:282)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZipAndChecksum(InstallPluginCommand.java:325)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:243)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:199)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)  
at org.elasticsearch.cli.Command.main(Command.java:88)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)  
Caused by: java.io.FileNotFoundException: [https://repo1.maven.org/maven2/file/C/\ES\_NEW\x-pack-5.4.3/C-\ES\_NEW\x-pack-5.4.3.zip](https://repo1.maven.org/maven2/file/C/%5CES_NEW%5Cx-pack-5.4.3/C-%5CES_NEW%5Cx-pack-5.4.3.zip)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1872)  
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)  
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2982)  
at java.net.URLConnection.getHeaderFieldLong(URLConnection.java:629)  
at java.net.URLConnection.getContentLengthLong(URLConnection.java:501)  
at java.net.URLConnection.getContentLength(URLConnection.java:485)  
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getContentLength(HttpsURLConnectionImpl.java:398)  
at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:281)  
... 10 more

Note: we are trying to test everything in windows first and later we are planning to test in aix.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [July 6, 2017, 4:33pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/6 "2017-07-06T16:33:59Z")

</div>

Hey,

can you try `file://C:...` to make sure you are using a proper URL, as Elasticsearch still tries to download the URL you specified and does not recognize it as a local file.

--Alex

---

<div class="post-metadata">

**Author:** ![gs21](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gs21](https://discuss.elastic.co/u/gs21)\
**Post date:** [July 6, 2017, 4:41pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/7 "2017-07-06T16:41:27Z")

</div>

Thanks. I tried it.

"ERROR: Unknown plugin file//C:\ES\_NEW\x-pack-5.4.3"

C:\ES\_NEW\elasticsearch-5.4.3\>bin\elasticsearch-plugin install file//C:\ES\_NEW\x-pack-5.4.3  
A tool for managing installed elasticsearch plugins

## Commands

list - Lists installed elasticsearch plugins  
install - Install a plugin  
remove - removes a plugin from Elasticsearch

Non-option arguments:  
command

Option Description

* * *

-h, --help show help  
-s, --silent show minimal output  
-v, --verbose show verbose output  
ERROR: Unknown plugin file//C:\ES\_NEW\x-pack-5.4.3

Am I missing any step here ?

I downloaded "x-pack-5.4.3.zip" and unzipped in my local. Do I need to do anything else ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 6, 2017, 9:26pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/8 "2017-07-06T21:26:35Z")

</div>

> [@gs21](#):
>
> C:\ES\_NEW\elasticsearch-5.4.3\>bin\elasticsearch-plugin install file//C:\ES\_NEW\x-pack-5.4.3

Should be `C:\ES_NEW\elasticsearch-5.4.3>bin\elasticsearch-plugin install file://C:\ES_NEW\x-pack-5.4.3`, you need the `:` after `file`.

---

<div class="post-metadata">

**Author:** ![gs21](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gs21](https://discuss.elastic.co/u/gs21)\
**Post date:** [July 6, 2017, 10:22pm UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/9 "2017-07-06T22:22:46Z")

</div>

C:\ES\_NEW\elasticsearch-5.4.3\>bin\elasticsearch-plugin.bat install file:///ES\_NEW/x-pack-5.4.3.zip

the above command solved the issue.

With "C:" it was not working

Thanks for all the help.

---

<div class="post-metadata">

**Author:** ![chandu507.m](https://avatars.discourse-cdn.com/v4/letter/c/45deac/32.png) [@chandu507.m](https://discuss.elastic.co/u/chandu507.m)\
**Post date:** [July 14, 2017, 12:07am UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/10 "2017-07-14T00:07:20Z")

</div>

I have same issue but in LINUX  
Can you please let me know on the solutions please

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 14, 2017, 12:51am UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/11 "2017-07-14T00:51:05Z")

</div>

Please start a new topic and post an exact description of the problem you are seeing.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 14, 2017, 12:51am UTC](https://discuss.elastic.co/t/x-pack-plugin-installation-issue-in-elastic-search/91689/12 "2017-07-14T00:51:14Z")

</div>


