# Can't install x-pcak on elasticsearch

**URL:** <https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984>\
**Category:** Elasticsearch\
**Created:** [August 31, 2017, 10:05am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984 "2017-08-31T10:05:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![irtizaur](https://avatars.discourse-cdn.com/v4/letter/i/51bf81/32.png) [@irtizaur](https://discuss.elastic.co/u/irtizaur)\
**Post date:** [August 31, 2017, 10:05am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/1 "2017-08-31T10:05:06Z")

</div>

Hi,

i am using Elasticsearch 5.5.2 and Kibana 5.5.2 on ubuntu 16.04 version. for both i have followed the Debian package installation. Now i am trying to install x-pack on both elasticsearch and kibana. but getting below error for elasticsearch...

```
    cd /usr/share/elasticsearch
    sudo bin/elasticsearch-plugin install x-pack 
    Exception in thread "main" java.net.UnknownHostException: artifacts.elastic.co
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:589)
    	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
    	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
    	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
    	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
    	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
    	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    	at org.elasticsearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:300)
    	at org.elasticsearch.plugins.InstallPluginCommand.getElasticUrl(InstallPluginCommand.java:267)
    	at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:223)
    	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:215)
    	at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:201)
    	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)

```

is there anything i am missing...

---

<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:** [September 1, 2017, 2:50am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/2 "2017-09-01T02:50:15Z")

</div>

Can you run a `ping artifacts.elastic.co` and show the output?

---

<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:** [September 1, 2017, 9:29am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/3 "2017-09-01T09:29:35Z")

</div>

Can you also run `host artifacts.elastic.co` or `nslookup artifacts.elastic.co` and paste the output? It looks as if your DNS resolution is not configured correctly.

---

<div class="post-metadata">

**Author:** ![irtizaur](https://avatars.discourse-cdn.com/v4/letter/i/51bf81/32.png) [@irtizaur](https://discuss.elastic.co/u/irtizaur)\
**Post date:** [September 4, 2017, 6:45am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/4 "2017-09-04T06:45:03Z")

</div>

hi Mark Walkom,

very sorry for my late response. i was actually out of station for last 3 days and with very limited internet connectivity 😃

here is the response,

```
/usr/share/elasticsearch$ ping artifacts.elastic.co
ping: unknown host artifacts.elastic.co

```

looks like a DNS issue... is there any workaround?

---

<div class="post-metadata">

**Author:** ![irtizaur](https://avatars.discourse-cdn.com/v4/letter/i/51bf81/32.png) [@irtizaur](https://discuss.elastic.co/u/irtizaur)\
**Post date:** [September 4, 2017, 6:47am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/5 "2017-09-04T06:47:07Z")

</div>

Hi Alexander Reelsen

very sorry for my late response. here is the output...

```
/usr/share/elasticsearch$ host artifacts.elastic.co
;; connection timed out; no servers could be reached
irtizaur@ubuntu:/usr/share/elasticsearch$ nslookup artifacts.elastic.co
;; connection timed out; no servers could be reached

```

yes, looks like the issue is on the DNS side... any workaround?

---

<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:** [September 7, 2017, 4:57am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/6 "2017-09-07T04:57:52Z")

</div>

> [@irtizaur](#):
>
> yes, looks like the issue is on the DNS side… any workaround?

From the looks of it, your server is isolated from the wider internet - probably intentionally.

You'll need to do an [offline install](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/installing-xpack-es.html).  
Download the xpack zip file on a machine that has internet access, and then copy it across to your server and install from a file.

---

<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 5, 2017, 4:58am UTC](https://discuss.elastic.co/t/cant-install-x-pcak-on-elasticsearch/98984/7 "2017-10-05T04:58:01Z")

</div>

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