Getting exception why installing plugin in docker container

When asking questions, please provide the following information:

  • search-guard-6:6.1.0-20.1 and Elasticsearch version 6.1.0 kibana 6.1.0

  • Installing on docker container - docker version 1.11.2

  • JVM version 1.8.0_51 and operating system version Debian 3.16

My docker file commands

FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0

COPY config/sg/ config/sg/

COPY bin/ bin/

RUN ES_JAVA_OPTS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=8080 -Dhttps.proxyHost=xxxx -Dhttps.proxyPort=8080" elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.1.0-20.1 \

&& chmod +x \

	plugins/search-guard-6/tools/hash.sh \

	plugins/search-guard-6/tools/sgadmin.sh \

&& chown -R elasticsearch config/sg/ \

&& chmod -R go= config/sg/

While executing docker file getting exception

Exception in thread “main” java.net.ConnectException: Connection refused (Connection refused)

at java.net.PlainSocketImpl.socketConnect(Native Method)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

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: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:298)

at org.elasticsearch.plugins.InstallPluginCommand.getMavenUrl(InstallPluginCommand.java:278)

at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:229)

at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)

at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)

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)

That issue seems not really Search Guard related/specific.

Can you install other elasticsearch plugins with that command?

···

Am 22.02.2018 um 18:42 schrieb mallikarjun n <mallikarjun.n@gmail.com>:

When asking questions, please provide the following information:

* search-guard-6:6.1.0-20.1 and Elasticsearch version 6.1.0 kibana 6.1.0
* Installing on docker container - docker version 1.11.2
* JVM version 1.8.0_51 and operating system version Debian 3.16

My docker file commands

FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0

COPY config/sg/ config/sg/
COPY bin/ bin/

RUN ES_JAVA_OPTS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=8080 -Dhttps.proxyHost=xxxx -Dhttps.proxyPort=8080" elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.1.0-20.1 \
  && chmod +x \
    plugins/search-guard-6/tools/hash.sh \
    plugins/search-guard-6/tools/sgadmin.sh \
  && chown -R elasticsearch config/sg/ \
  && chmod -R go= config/sg/

While executing docker file getting exception

Exception in thread "main" java.net.ConnectException: Connection refused (Connection refused)
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  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: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:298)
  at org.elasticsearch.plugins.InstallPluginCommand.getMavenUrl(InstallPluginCommand.java:278)
  at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:229)
  at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)
  at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
  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)

--
You received this message because you are subscribed to the Google Groups "Search Guard Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.
To post to this group, send email to search-guard@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/7796e9cb-a65a-4e35-a1f1-5241a4461a51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I will install other plugin and check.

···

On Tuesday, 27 February 2018 18:42:58 UTC+1, Search Guard wrote:

That issue seems not really Search Guard related/specific.

Can you install other elasticsearch plugins with that command?

Am 22.02.2018 um 18:42 schrieb mallikarjun n mallik...@gmail.com:

When asking questions, please provide the following information:

  • search-guard-6:6.1.0-20.1 and Elasticsearch version 6.1.0 kibana 6.1.0
  • Installing on docker container - docker version 1.11.2
  • JVM version 1.8.0_51 and operating system version Debian 3.16

My docker file commands

FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0

COPY config/sg/ config/sg/

COPY bin/ bin/

RUN ES_JAVA_OPTS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=8080 -Dhttps.proxyHost=xxxx -Dhttps.proxyPort=8080" elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.1.0-20.1 \

    && chmod +x \
            plugins/search-guard-6/tools/hash.sh \
            plugins/search-guard-6/tools/sgadmin.sh \
    && chown -R elasticsearch config/sg/ \
    && chmod -R go= config/sg/

While executing docker file getting exception

Exception in thread “main” java.net.ConnectException: Connection refused (Connection refused)

    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    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: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:298)
    at org.elasticsearch.plugins.InstallPluginCommand.getMavenUrl(InstallPluginCommand.java:278)
    at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:229)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
    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)


You received this message because you are subscribed to the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.

To post to this group, send email to search...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/7796e9cb-a65a-4e35-a1f1-5241a4461a51%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

I am sorry, there was issue installing all plugins. Problem was while setting I used https:// and http:// for proxy address. Instead just proxy address will do good. Please Ignore

···

On Wednesday, 28 February 2018 14:20:16 UTC+1, mallikarjun n wrote:

I will install other plugin and check.

On Tuesday, 27 February 2018 18:42:58 UTC+1, Search Guard wrote:

That issue seems not really Search Guard related/specific.

Can you install other elasticsearch plugins with that command?

Am 22.02.2018 um 18:42 schrieb mallikarjun n mallik...@gmail.com:

When asking questions, please provide the following information:

  • search-guard-6:6.1.0-20.1 and Elasticsearch version 6.1.0 kibana 6.1.0
  • Installing on docker container - docker version 1.11.2
  • JVM version 1.8.0_51 and operating system version Debian 3.16

My docker file commands

FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.1.0

COPY config/sg/ config/sg/

COPY bin/ bin/

RUN ES_JAVA_OPTS="-Dhttp.proxyHost=xxx -Dhttp.proxyPort=8080 -Dhttps.proxyHost=xxxx -Dhttps.proxyPort=8080" elasticsearch-plugin install --batch com.floragunn:search-guard-6:6.1.0-20.1 \

    && chmod +x \
            plugins/search-guard-6/tools/hash.sh \
            plugins/search-guard-6/tools/sgadmin.sh \
    && chown -R elasticsearch config/sg/ \
    && chmod -R go= config/sg/

While executing docker file getting exception

Exception in thread “main” java.net.ConnectException: Connection refused (Connection refused)

    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    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: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:298)
    at org.elasticsearch.plugins.InstallPluginCommand.getMavenUrl(InstallPluginCommand.java:278)
    at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:229)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:213)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:204)
    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)


You received this message because you are subscribed to the Google Groups “Search Guard Community Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.

To post to this group, send email to search...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/7796e9cb-a65a-4e35-a1f1-5241a4461a51%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.