Hi, everyone
I have just installed Elasticsearch 7.16.3 in Red Hat 7.9. This virtual machine is behind a proxy. Looking over Elasticsearch's log, I have found an error related to GeoIP:
[2022-02-14T15:14:29,056][ERROR][o.e.i.g.GeoIpDownloader ] [node-name] exception during geoip databases update
java.net.SocketTimeoutException: Connect timed out
at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:546) ~[?:?]
at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) ~[?:?]
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
at java.net.Socket.connect(Socket.java:633) ~[?:?]
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:299) ~[?:?]
at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:498) ~[?:?]
at sun.net.www.http.HttpClient.openServer(HttpClient.java:603) ~[?:?]
Is there any way to configure Elasticsearch behind a proxy?
Thanks in advance,
Regards
Update
I have added some proxy parameters in jvm.options file and it works :
# Proxy
-Dhttp.proxyHost=<ip>
-Dhttp.proxyPort=<port>
-Dhttps.proxyHost=<ip>
-Dhttps.proxyPort=<port>