Can't install x-pcak on elasticsearch


(md irtizaur rahman) #1

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...


(Mark Walkom) #2

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


(Alexander Reelsen) #3

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.


(md irtizaur rahman) #4

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 :smiley:

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?


(md irtizaur rahman) #5

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?


(Tim Vernum) #6

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

You'll need to do an offline install.
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.


(system) #7

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