# Unable to install elasticsearch-plugin

**URL:** <https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379>\
**Category:** Elasticsearch\
**Created:** [September 21, 2018, 2:40am UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379 "2018-09-21T02:40:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpervil](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fpervil](https://discuss.elastic.co/u/fpervil)\
**Post date:** [September 21, 2018, 2:40am UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/1 "2018-09-21T02:40:44Z")

</div>

When I tried to perform a elasticsearch-plugin install ingest-geoip, I get the following error:  
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.security.ssl.Alerts.getSSLException(Alerts.java:192)  
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)  
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328)  
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)  
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1614)  
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)  
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)  
at sun.security.ssl.Handshaker.process\_record(Handshaker.java:987)  
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)  
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)  
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)  
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)  
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.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)  
at org.elasticsearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:352)  
at org.elasticsearch.plugins.InstallPluginCommand.getElasticUrl(InstallPluginCommand.java:314)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:254)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:229)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:216)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:77)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.Command.main(Command.java:90)  
at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)  
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:397)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
    at sun.security.validator.Validator.validate(Validator.java:262)
    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:1596)
    ... 21 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:392)  
... 27 more

---

<div class="post-metadata">

**Author:** ![popa](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@popa](https://discuss.elastic.co/u/popa)\
**Post date:** [September 21, 2018, 4:02am UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/2 "2018-09-21T04:02:35Z")

</div>

Are you using SSL encryption and authentication for Elasticsearch? What commands did you execute to install / enable the geo-ip plugin?

It's also helpful if you post your `elasticsearch.yml` configuration file.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 21, 2018, 4:54am UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/3 "2018-09-21T04:54:22Z")

</div>

Everytime I'm seeing this error, the cause is a broken installation of Java. May be reinstall Java?

---

<div class="post-metadata">

**Author:** ![fpervil](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fpervil](https://discuss.elastic.co/u/fpervil)\
**Post date:** [September 21, 2018, 10:16pm UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/4 "2018-09-21T22:16:45Z")

</div>

I just installed everything but haven't updated the elasticsearch.yml file. So that file is the same as the original.

As for the commands, I'm doing it from a command prompt in windows 10:

elasticsearch-plugin install ingest-geoip

I'm not using ssl encryption or authentication for elastic search. I just installed it on my windows 10 desktop. I've also installed Kibana, logstash and filebeat on the same host.

I plan on installing this on a linux machine in the AWS cloud but wanted to perform my install on my windows desktop 1st to familiarize myself with the software.

---

<div class="post-metadata">

**Author:** ![fpervil](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@fpervil](https://discuss.elastic.co/u/fpervil)\
**Post date:** [September 21, 2018, 10:17pm UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/5 "2018-09-21T22:17:41Z")

</div>

I reinstalled java already and got the same results. I have jdk and jre 1.8.0\_181

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 19, 2018, 10:17pm UTC](https://discuss.elastic.co/t/unable-to-install-elasticsearch-plugin/149379/6 "2018-10-19T22:17:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
