Connection exception during geoip database [ERROR][o.e.i.g.GeoIpDownloader ][WUWVC0ASX02]

Hi there,

I've downloaded the latest version of elasticsearch 8.5.1 and when I try to run it (bin\elasticsearch.bat) I get this error:

[2022-11-15T01:08:55,761][ERROR][o.e.i.g.GeoIpDownloader  ] [WUWVC0ASX02] exception during geoip databases update
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
	at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
	at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) ~[?:?]
	at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
	at java.net.Socket.connect(Socket.java:666) ~[?:?]
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:378) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1661) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1585) ~[?:?]
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.lambda$get$0(HttpClient.java:46) ~[?:?]
	at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.doPrivileged(HttpClient.java:88) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.get(HttpClient.java:40) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.getBytes(HttpClient.java:36) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.fetchDatabasesOverview(GeoIpDownloader.java:155) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:143) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) ~[?:?]
	at org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42) ~[elasticsearch-8.5.0.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:892) ~[elasticsearch-8.5.0.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.5.0.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1589) ~[?:?]

Anyone any idea, why is this happening?

Kind regards,
Kamil

Welcome!

Did you install 8.5.1?

at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.5.0.jar:?]

Is saying 8.5.0...

Could you also share the full logs?

Hi dadoonet!

Thank you for your reply, it is indeed 8.5.0, sorry.
Here the full log:

[2022-11-17T04:17:17,562][INFO ][o.e.n.Node               ] [WUWVC0ASX02] version[8.5.0], pid[10140], build[zip/c94b4700cda13820dad5aa74fae6db185ca5c304/2022-10-24T16:54:16.433628434Z], OS[Windows Server 2019/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19/19+36-2238]
[2022-11-17T04:17:17,683][INFO ][o.e.n.Node               ] [WUWVC0ASX02] JVM home [E:\elasticsearch-8.5.0-windows-x86_64\elasticsearch-8.5.0\jdk], using bundled JDK [true]
[2022-11-17T04:17:17,825][INFO ][o.e.n.Node               ] [WUWVC0ASX02] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -Djava.security.manager=allow, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j2.formatMsgNoLookups=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=C:\Users\SW0013~1\AppData\Local\Temp\5\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:+ExitOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms8191m, -Xmx8191m, -XX:MaxDirectMemorySize=4294967296, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, -Des.distribution.type=zip, --module-path=E:\elasticsearch-8.5.0-windows-x86_64\elasticsearch-8.5.0\lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
[2022-11-17T04:17:24,294][INFO ][c.a.c.i.j.JacksonVersion ] [WUWVC0ASX02] Package versions: jackson-annotations=2.13.2, jackson-core=2.13.2, jackson-databind=2.13.2.2, jackson-dataformat-xml=2.13.2, jackson-datatype-jsr310=2.13.2, azure-core=1.27.0, Troubleshooting version conflicts: https://aka.ms/azsdk/java/dependency/troubleshoot
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [aggs-matrix-stats]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [analysis-common]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [apm]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [constant-keyword]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [data-streams]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [frozen-indices]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [ingest-attachment]
[2022-11-17T04:17:27,373][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [ingest-common]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [ingest-geoip]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [ingest-user-agent]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [kibana]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [lang-expression]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [lang-mustache]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [lang-painless]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [legacy-geo]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [mapper-extras]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [mapper-version]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [old-lucene-versions]
[2022-11-17T04:17:27,388][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [parent-join]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [percolator]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [rank-eval]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [reindex]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repositories-metering-api]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repository-azure]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repository-encrypted]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repository-gcs]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repository-s3]
[2022-11-17T04:17:27,404][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [repository-url]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [runtime-fields-common]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [search-business-rules]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [searchable-snapshots]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [snapshot-based-recoveries]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [snapshot-repo-test-kit]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [spatial]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [transform]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [transport-netty4]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [unsigned-long]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [vector-tile]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [wildcard]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-aggregate-metric]
[2022-11-17T04:17:27,420][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-analytics]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-async]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-async-search]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-autoscaling]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-ccr]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-core]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-deprecation]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-enrich]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-eql]
[2022-11-17T04:17:27,435][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-fleet]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-graph]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-identity-provider]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-ilm]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-logstash]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-ml]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-monitoring]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-ql]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-rollup]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-security]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-shutdown]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-sql]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-stack]
[2022-11-17T04:17:27,451][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-text-structure]
[2022-11-17T04:17:27,466][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-voting-only-node]
[2022-11-17T04:17:27,473][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] loaded module [x-pack-watcher]
[2022-11-17T04:17:27,473][INFO ][o.e.p.PluginsService     ] [WUWVC0ASX02] no plugins loaded
[2022-11-17T04:17:34,156][WARN ][stderr                   ] [WUWVC0ASX02] Nov 17, 2022 4:17:34 AM org.apache.lucene.store.MMapDirectory lookupProvider
[2022-11-17T04:17:34,156][WARN ][stderr                   ] [WUWVC0ASX02] WARNING: You are running with Java 19. To make full use of MMapDirectory, please pass '--enable-preview' to the Java command line.
[2022-11-17T04:17:34,203][INFO ][o.e.e.NodeEnvironment    ] [WUWVC0ASX02] using [1] data paths, mounts [[New Volume (E:)]], net usable_space [493.2gb], net total_space [499.9gb], types [NTFS]
[2022-11-17T04:17:34,203][INFO ][o.e.e.NodeEnvironment    ] [WUWVC0ASX02] heap size [8gb], compressed ordinary object pointers [true]
[2022-11-17T04:17:34,373][INFO ][o.e.n.Node               ] [WUWVC0ASX02] node name [WUWVC0ASX02], node ID [U7wme_NvQO6zXCquNjsoAw], cluster name [elasticsearch], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold]
[2022-11-17T04:17:41,490][INFO ][o.e.x.s.Security         ] [WUWVC0ASX02] Security is enabled
[2022-11-17T04:17:42,091][INFO ][o.e.x.s.a.s.FileRolesStore] [WUWVC0ASX02] parsed [0] roles from file [E:\elasticsearch-8.5.0-windows-x86_64\elasticsearch-8.5.0\config\roles.yml]
[2022-11-17T04:17:42,961][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [WUWVC0ASX02] [controller/13700] [Main.cc@123] controller (64 bit): Version 8.5.0 (Build 3922fab346e761) Copyright (c) 2022 Elasticsearch BV
[2022-11-17T04:17:44,480][INFO ][o.e.t.n.NettyAllocator   ] [WUWVC0ASX02] creating NettyAllocator with the following configs: [name=elasticsearch_configured, chunk_size=1mb, suggested_max_allocation_size=1mb, factors={es.unsafe.use_netty_default_chunk_and_page_size=false, g1gc_enabled=true, g1gc_region_size=4mb}]
[2022-11-17T04:17:44,542][INFO ][o.e.i.r.RecoverySettings ] [WUWVC0ASX02] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2022-11-17T04:17:44,665][INFO ][o.e.d.DiscoveryModule    ] [WUWVC0ASX02] using discovery type [multi-node] and seed hosts providers [settings]
[2022-11-17T04:17:48,123][INFO ][o.e.n.Node               ] [WUWVC0ASX02] initialized
[2022-11-17T04:17:48,123][INFO ][o.e.n.Node               ] [WUWVC0ASX02] starting ...
[2022-11-17T04:17:48,155][INFO ][o.e.x.s.c.f.PersistentCache] [WUWVC0ASX02] persistent cache index loaded
[2022-11-17T04:17:48,161][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [WUWVC0ASX02] deprecation component started
[2022-11-17T04:17:48,493][INFO ][o.e.t.TransportService   ] [WUWVC0ASX02] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2022-11-17T04:17:49,141][WARN ][o.e.c.c.ClusterBootstrapService] [WUWVC0ASX02] this node is locked into cluster UUID [Xvlfe0kqTIqDqwa1Y0UdfA] but [cluster.initial_master_nodes] is set to [WUWVC0ASX02]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts
[2022-11-17T04:17:49,382][INFO ][o.e.c.s.MasterService    ] [WUWVC0ASX02] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {WUWVC0ASX02}{U7wme_NvQO6zXCquNjsoAw}{vSNYR05TSOODgFObxAAyZQ}{WUWVC0ASX02}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw} completing election], term: 6, version: 60, delta: master node changed {previous [], current [{WUWVC0ASX02}{U7wme_NvQO6zXCquNjsoAw}{vSNYR05TSOODgFObxAAyZQ}{WUWVC0ASX02}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}
[2022-11-17T04:17:49,511][INFO ][o.e.c.s.ClusterApplierService] [WUWVC0ASX02] master node changed {previous [], current [{WUWVC0ASX02}{U7wme_NvQO6zXCquNjsoAw}{vSNYR05TSOODgFObxAAyZQ}{WUWVC0ASX02}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}, term: 6, version: 60, reason: Publication{term=6, version=60}
[2022-11-17T04:17:49,595][INFO ][o.e.r.s.FileSettingsService] [WUWVC0ASX02] starting file settings watcher ...
[2022-11-17T04:17:49,627][INFO ][o.e.r.s.FileSettingsService] [WUWVC0ASX02] file settings service up and running [tid=70]
[2022-11-17T04:17:49,680][INFO ][o.e.h.AbstractHttpServerTransport] [WUWVC0ASX02] publish_address {10.45.232.61:9200}, bound_addresses {[::]:9200}
[2022-11-17T04:17:49,680][INFO ][o.e.n.Node               ] [WUWVC0ASX02] started {WUWVC0ASX02}{U7wme_NvQO6zXCquNjsoAw}{vSNYR05TSOODgFObxAAyZQ}{WUWVC0ASX02}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{ml.max_jvm_size=8589934592, ml.allocated_processors_double=4.0, xpack.installed=true, ml.machine_memory=17179328512, ml.allocated_processors=4}
[2022-11-17T04:17:49,812][INFO ][o.e.l.LicenseService     ] [WUWVC0ASX02] license [472a3f9d-f72b-4574-be50-2346f5d9a0a1] mode [basic] - valid
[2022-11-17T04:17:49,812][INFO ][o.e.x.s.a.Realms         ] [WUWVC0ASX02] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2022-11-17T04:17:49,834][INFO ][o.e.g.GatewayService     ] [WUWVC0ASX02] recovered [1] indices into cluster_state
[2022-11-17T04:17:49,965][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [WUWVC0ASX02] Node [{WUWVC0ASX02}{U7wme_NvQO6zXCquNjsoAw}] is selected as the current health node.
[2022-11-17T04:17:50,567][INFO ][o.e.c.r.a.AllocationService] [WUWVC0ASX02] current.health="GREEN" message="Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[.security-7][0]]])." previous.health="RED" reason="shards started [[.security-7][0]]"
[2022-11-17T04:17:51,099][ERROR][o.e.i.g.GeoIpDownloader  ] [WUWVC0ASX02] exception during geoip databases update
java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.Net.pollConnect(Native Method) ~[?:?]
	at sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[?:?]
	at sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) ~[?:?]
	at sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:585) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[?:?]
	at java.net.Socket.connect(Socket.java:666) ~[?:?]
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304) ~[?:?]
	at sun.net.NetworkClient.doConnect(NetworkClient.java:178) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:531) ~[?:?]
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:636) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264) ~[?:?]
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:378) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127) ~[?:?]
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1661) ~[?:?]
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1585) ~[?:?]
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:529) ~[?:?]
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:308) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.lambda$get$0(HttpClient.java:46) ~[?:?]
	at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.doPrivileged(HttpClient.java:88) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.get(HttpClient.java:40) ~[?:?]
	at org.elasticsearch.ingest.geoip.HttpClient.getBytes(HttpClient.java:36) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.fetchDatabasesOverview(GeoIpDownloader.java:155) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:143) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.runDownloader(GeoIpDownloader.java:274) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:102) ~[?:?]
	at org.elasticsearch.ingest.geoip.GeoIpDownloaderTaskExecutor.nodeOperation(GeoIpDownloaderTaskExecutor.java:48) ~[?:?]
	at org.elasticsearch.persistent.NodePersistentTasksExecutor$1.doRun(NodePersistentTasksExecutor.java:42) ~[elasticsearch-8.5.0.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:892) ~[elasticsearch-8.5.0.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.5.0.jar:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1589) ~[?:?]

I am getting something similar

when I do http://10.40.0.20:9200/_ingest/geoip/stats?pretty

I get

{
"stats": {
"successful_downloads": 0,
"failed_downloads": 3,
"total_download_time": 0,
"databases_count": 0,
"skipped_updates": 0,
"expired_databases": 0
},
"nodes": {}
}

Looks like https://geoip.elastic.co/v1/database is not working. If I go to it I get 400: Bad Request

should a get request work on that URL

Hi,

I managed to solve the issue internally.

Solution is:
Go to config/elasticsearch.yml and add this line:
ingest.geoip.downloader.enabled=false

I hope this helps,
Kamil

1 Like

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