# Error while trying to install X-Pack

**URL:** <https://discuss.elastic.co/t/error-while-trying-to-install-x-pack/132874>\
**Category:** Elasticsearch\
**Created:** [May 22, 2018, 6:35pm UTC](https://discuss.elastic.co/t/error-while-trying-to-install-x-pack/132874 "2018-05-22T18:35:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bossi6of9](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@bossi6of9](https://discuss.elastic.co/u/bossi6of9)\
**Post date:** [May 22, 2018, 6:35pm UTC](https://discuss.elastic.co/t/error-while-trying-to-install-x-pack/132874/1 "2018-05-22T18:35:27Z")

</div>

Hi,

I'm getting an error while trying to install X-Pack. I'm running this as root, in the ES\_HOME directory (but it's not the standard location). Elastic is running, along with Kibana on this server, and it has internet access.  
Any suggestions?

[root@flow1 elasticsearch-6.2.4]# bin/elasticsearch-plugin install x-pack  
Exception in thread "main" java.net.UnknownHostException: [artifacts.elastic.co](http://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.(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:1156)  
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)  
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)  
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)  
at org.elasticsearch.plugins.InstallPluginCommand.urlExists(InstallPluginCommand.java:306)  
at org.elasticsearch.plugins.InstallPluginCommand.getElasticUrl(InstallPluginCommand.java:273)  
at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:229)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:221)  
at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:212)  
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:75)  
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:48)

---

<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:** [May 23, 2018, 1:23am UTC](https://discuss.elastic.co/t/error-while-trying-to-install-x-pack/132874/2 "2018-05-23T01:23:32Z")

</div>

It doesn't look like your machine has direct internet access. The x-pack install process downloads the plugin from our servers.  
If your machine is unable to do that, you should follow the offline install process described here:

- [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/installing-xpack-es.html)

In particular, follow _step 1_ and the second part of _step 2_.

---

<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:** [June 20, 2018, 1:23am UTC](https://discuss.elastic.co/t/error-while-trying-to-install-x-pack/132874/3 "2018-06-20T01:23:41Z")

</div>

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