Getting exception why installing plugin in docker container

92 views
Skip to first unread message

mallikarjun n

unread,
Feb 22, 2018, 12:42:37 PM2/22/18
to Search Guard Community Forum
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 


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)


SG

unread,
Feb 27, 2018, 12:42:58 PM2/27/18
to search...@googlegroups.com
That issue seems not really Search Guard related/specific.

Can you install other elasticsearch plugins with that command?
> --
> 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.

mallikarjun n

unread,
Feb 28, 2018, 8:20:16 AM2/28/18
to Search Guard Community Forum
I will install other plugin and check. 

mallikarjun n

unread,
Mar 6, 2018, 6:55:07 AM3/6/18
to Search Guard Community Forum
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
Reply all
Reply to author
Forward
0 new messages