Error on running Elasticsearch from the command line

I downloaded, unzipped, and run Elasticsearch from the command line successfully. But after closing the command line, I am trying to run the Elasticsearch from the command line again, but it is giving me an error "localhost refused to connect" and Kibana is also not starting. Can someone please help me with how we can run again Elasticsearch from the command line after running the first time successfully?

Welcome to our community! :smiley:

Please share the full command you are running and the output. Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

I am running bin\elasticsearch.bat

After running the first time then closing the command prompt, does it keeps running in the background?

The strange this is when I run the above command, in the logs over command prompt, it shows that node is running but on hitting (http://192.168.0.0:9200/) or (http://localhost:9200/), it shows can't reach or refused to connect error.

Please provide ES log from the subfolder logs.

What is network.host: param in elasticsearch.yml?
Have you open port9200 on a firewall?

If you start ES as bat, it will be process.
If you like as a service, you have to install: elasticsearch-service.bat install <instancename>
Change the service params: elasticsearch-service.bat manager <instancename>
Remove the service: elasticsearch-service.bat remove <instancename>
The instance name is an optional.

Thanks for replying and sending the logs.

[2023-01-31T00:15:13,941][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:63902}
[2023-01-31T00:15:13,944][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:63903}
[2023-01-31T00:45:13,961][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64003}
[2023-01-31T00:45:13,966][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64004}
[2023-01-31T01:15:14,003][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64123}
[2023-01-31T01:15:14,005][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64124}
[2023-01-31T01:29:59,858][INFO ][o.e.x.m.MlDailyMaintenanceService] [UMAIRSAEED] triggering scheduled [ML] maintenance tasks
[2023-01-31T01:29:59,914][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [UMAIRSAEED] Deleting expired data
[2023-01-31T01:30:00,056][INFO ][o.e.x.m.j.r.UnusedStatsRemover] [UMAIRSAEED] Successfully deleted [0] unused stats documents
[2023-01-31T01:30:00,057][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [UMAIRSAEED] Completed deletion of expired ML data
[2023-01-31T01:30:00,057][INFO ][o.e.x.m.MlDailyMaintenanceService] [UMAIRSAEED] Successfully completed [ML] maintenance task: triggerDeleteExpiredDataTask
[2023-01-31T01:45:14,026][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64211}
[2023-01-31T01:45:14,027][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64212}
[2023-01-31T01:45:14,030][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64214}
[2023-01-31T11:47:28,873][WARN ][o.e.t.ThreadPool         ] [UMAIRSAEED] timer thread slept for [7.9s/7957583100ns] on relative clock which is above the warn threshold of [5000ms]
[2023-01-31T11:47:29,212][WARN ][o.e.t.ThreadPool         ] [UMAIRSAEED] timer thread slept for [10h/36078892ms] on absolute clock which is above the warn threshold of [5000ms]
[2023-01-31T11:47:29,215][WARN ][o.e.t.ThreadPool         ] [UMAIRSAEED] timer thread slept for [10h/36078892793700ns] on relative clock which is above the warn threshold of [5000ms]
[2023-01-31T11:48:01,994][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:64474}
[2023-01-31T12:19:22,592][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:65242}
[2023-01-31T12:19:22,595][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:65244}
[2023-01-31T12:19:22,602][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [UMAIRSAEED] received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/[0:0:0:0:0:0:0:1]:9200, remoteAddress=/[0:0:0:0:0:0:0:1]:65246}
[2023-01-31T15:52:32,840][INFO ][o.e.n.Node               ] [UMAIRSAEED] version[8.6.0], pid[288], build[zip/f67ef2df40237445caa70e2fef79471cc608d70d/2023-01-04T09:35:21.782467981Z], OS[Windows 11/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/19.0.1/19.0.1+10-21]
[2023-01-31T15:52:32,848][INFO ][o.e.n.Node               ] [UMAIRSAEED] JVM home [C:\D\Elastic\elasticsearch\jdk], using bundled JDK [true]
[2023-01-31T15:52:32,848][INFO ][o.e.n.Node               ] [UMAIRSAEED] 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\UMAIRS~1\AppData\Local\Temp\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, -Xms8043m, -Xmx8043m, -XX:MaxDirectMemorySize=4217372672, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.distribution.type=zip, --module-path=C:\D\Elastic\elasticsearch\lib, --add-modules=jdk.net, -Djdk.module.main=org.elasticsearch.server]
[2023-01-31T15:52:37,348][INFO ][c.a.c.i.j.JacksonVersion ] [UMAIRSAEED] 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
[2023-01-31T15:52:42,090][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [aggregations]
[2023-01-31T15:52:42,092][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [aggs-matrix-stats]
[2023-01-31T15:52:42,094][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [analysis-common]
[2023-01-31T15:52:42,094][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [apm]
[2023-01-31T15:52:42,095][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [constant-keyword]
[2023-01-31T15:52:42,096][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [data-streams]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [frozen-indices]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [ingest-attachment]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [ingest-common]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [ingest-geoip]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [ingest-user-agent]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [kibana]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [lang-expression]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [lang-mustache]
[2023-01-31T15:52:42,097][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [lang-painless]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [legacy-geo]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [mapper-extras]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [mapper-version]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [old-lucene-versions]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [parent-join]
[2023-01-31T15:52:42,102][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [percolator]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [rank-eval]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [reindex]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repositories-metering-api]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repository-azure]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repository-encrypted]
[2023-01-31T15:52:42,105][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repository-gcs]
[2023-01-31T15:52:42,110][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repository-s3]
[2023-01-31T15:52:42,111][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [repository-url]
[2023-01-31T15:52:42,112][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [runtime-fields-common]
[2023-01-31T15:52:42,113][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [search-business-rules]
[2023-01-31T15:52:42,113][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [searchable-snapshots]
[2023-01-31T15:52:42,114][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [snapshot-based-recoveries]
[2023-01-31T15:52:42,114][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [snapshot-repo-test-kit]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [spatial]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [transform]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [transport-netty4]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [unsigned-long]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [vector-tile]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [wildcard]
[2023-01-31T15:52:42,115][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-aggregate-metric]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-analytics]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-async]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-async-search]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-autoscaling]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-ccr]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-core]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-deprecation]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-enrich]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-eql]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-fleet]
[2023-01-31T15:52:42,118][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-graph]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-identity-provider]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-ilm]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-logstash]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-ml]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-monitoring]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-ql]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-rollup]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-security]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-shutdown]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-sql]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-stack]
[2023-01-31T15:52:42,126][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-text-structure]
[2023-01-31T15:52:42,135][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-voting-only-node]
[2023-01-31T15:52:42,135][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-watcher]
[2023-01-31T15:52:42,135][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] loaded module [x-pack-write-load-forecaster]
[2023-01-31T15:52:42,135][INFO ][o.e.p.PluginsService     ] [UMAIRSAEED] no plugins loaded
[2023-01-31T15:52:49,766][WARN ][stderr                   ] [UMAIRSAEED] Jan 31, 2023 3:52:49 PM org.apache.lucene.store.MMapDirectory lookupProvider
[2023-01-31T15:52:49,766][WARN ][stderr                   ] [UMAIRSAEED] WARNING: You are running with Java 19. To make full use of MMapDirectory, please pass '--enable-preview' to the Java command line.
[2023-01-31T15:52:49,793][INFO ][o.e.e.NodeEnvironment    ] [UMAIRSAEED] using [1] data paths, mounts [[(C:)]], net usable_space [299.6gb], net total_space [476gb], types [NTFS]
[2023-01-31T15:52:49,793][INFO ][o.e.e.NodeEnvironment    ] [UMAIRSAEED] heap size [7.8gb], compressed ordinary object pointers [true]
[2023-01-31T15:52:50,230][INFO ][o.e.n.Node               ] [UMAIRSAEED] node name [UMAIRSAEED], node ID [H72j8d5sT9KVwklksDrYng], cluster name [elasticsearch], roles [ingest, data_cold, data, remote_cluster_client, master, data_warm, data_content, transform, data_hot, ml, data_frozen]
[2023-01-31T15:52:57,089][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-ASN.mmdb]
[2023-01-31T15:52:57,089][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-ASN.mmdb_COPYRIGHT.txt]
[2023-01-31T15:52:57,825][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-ASN.mmdb_elastic-geoip-database-service-agreement-LICENSE.txt]
[2023-01-31T15:52:57,827][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-ASN.mmdb_LICENSE.txt]
[2023-01-31T15:52:57,830][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb]
[2023-01-31T15:52:57,840][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb_COPYRIGHT.txt]
[2023-01-31T15:52:57,840][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb_elastic-geoip-database-service-agreement-LICENSE.txt]
[2023-01-31T15:52:57,846][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb_LICENSE.txt]
[2023-01-31T15:52:57,846][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb_README.txt]
[2023-01-31T15:52:57,855][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-Country.mmdb]
[2023-01-31T15:52:57,856][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-Country.mmdb_COPYRIGHT.txt]
[2023-01-31T15:52:57,862][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-Country.mmdb_elastic-geoip-database-service-agreement-LICENSE.txt]
[2023-01-31T15:52:57,862][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] deleting stale file [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-Country.mmdb_LICENSE.txt]
[2023-01-31T15:52:58,565][INFO ][o.e.x.s.Security         ] [UMAIRSAEED] Security is enabled
[2023-01-31T15:52:59,361][INFO ][o.e.x.s.a.s.FileRolesStore] [UMAIRSAEED] parsed [0] roles from file [C:\D\Elastic\elasticsearch\config\roles.yml]
[2023-01-31T15:53:01,225][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [UMAIRSAEED] [controller/12724] [Main.cc@123] controller (64 bit): Version 8.6.0 (Build 85eb78d83cdd94) Copyright (c) 2022 Elasticsearch BV
[2023-01-31T15:53:02,998][INFO ][o.e.t.n.NettyAllocator   ] [UMAIRSAEED] 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}]
[2023-01-31T15:53:03,066][INFO ][o.e.i.r.RecoverySettings ] [UMAIRSAEED] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2023-01-31T15:53:03,178][INFO ][o.e.d.DiscoveryModule    ] [UMAIRSAEED] using discovery type [multi-node] and seed hosts providers [settings]
[2023-01-31T15:53:06,346][INFO ][o.e.n.Node               ] [UMAIRSAEED] initialized
[2023-01-31T15:53:06,354][INFO ][o.e.n.Node               ] [UMAIRSAEED] starting ...
[2023-01-31T15:53:06,404][INFO ][o.e.x.s.c.f.PersistentCache] [UMAIRSAEED] persistent cache index loaded
[2023-01-31T15:53:06,404][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [UMAIRSAEED] deprecation component started
[2023-01-31T15:53:07,056][INFO ][o.e.t.TransportService   ] [UMAIRSAEED] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2023-01-31T15:53:08,192][WARN ][o.e.c.c.ClusterBootstrapService] [UMAIRSAEED] this node is locked into cluster UUID [2UZPbhOcQ7aZDcWoBmQSqg] but [cluster.initial_master_nodes] is set to [UMAIRSAEED]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts
[2023-01-31T15:53:08,566][INFO ][o.e.c.s.MasterService    ] [UMAIRSAEED] elected-as-master ([1] nodes joined)[_FINISH_ELECTION_, {UMAIRSAEED}{H72j8d5sT9KVwklksDrYng}{u3e24bNSSqC1gk55hfGjhw}{UMAIRSAEED}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw} completing election], term: 9, version: 235, delta: master node changed {previous [], current [{UMAIRSAEED}{H72j8d5sT9KVwklksDrYng}{u3e24bNSSqC1gk55hfGjhw}{UMAIRSAEED}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}
[2023-01-31T15:53:08,712][INFO ][o.e.c.s.ClusterApplierService] [UMAIRSAEED] master node changed {previous [], current [{UMAIRSAEED}{H72j8d5sT9KVwklksDrYng}{u3e24bNSSqC1gk55hfGjhw}{UMAIRSAEED}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}]}, term: 9, version: 235, reason: Publication{term=9, version=235}
[2023-01-31T15:53:08,837][INFO ][o.e.r.s.FileSettingsService] [UMAIRSAEED] starting file settings watcher ...
[2023-01-31T15:53:08,853][INFO ][o.e.r.s.FileSettingsService] [UMAIRSAEED] file settings service up and running [tid=78]
[2023-01-31T15:53:08,982][INFO ][o.e.h.AbstractHttpServerTransport] [UMAIRSAEED] publish_address {10.166.9.74:9200}, bound_addresses {[::]:9200}
[2023-01-31T15:53:08,982][INFO ][o.e.n.Node               ] [UMAIRSAEED] started {UMAIRSAEED}{H72j8d5sT9KVwklksDrYng}{u3e24bNSSqC1gk55hfGjhw}{UMAIRSAEED}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{ml.allocated_processors=8, ml.machine_memory=16867512320, xpack.installed=true, ml.allocated_processors_double=8.0, ml.max_jvm_size=8434745344}
[2023-01-31T15:53:09,591][INFO ][o.e.l.LicenseService     ] [UMAIRSAEED] license [cdf6b03e-3718-48d8-a675-e9f719d0ae3e] mode [basic] - valid
[2023-01-31T15:53:09,597][INFO ][o.e.x.s.a.Realms         ] [UMAIRSAEED] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2023-01-31T15:53:09,603][INFO ][o.e.g.GatewayService     ] [UMAIRSAEED] recovered [12] indices into cluster_state
[2023-01-31T15:53:10,681][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [UMAIRSAEED] Node [{UMAIRSAEED}{H72j8d5sT9KVwklksDrYng}] is selected as the current health node.
[2023-01-31T15:53:10,681][ERROR][o.e.i.g.GeoIpDownloader  ] [UMAIRSAEED] exception during geoip databases update
org.elasticsearch.ElasticsearchException: not all primary shards of [.geoip_databases] index are active
	at org.elasticsearch.ingest.geoip.GeoIpDownloader.updateDatabases(GeoIpDownloader.java:134) ~[?:?]
	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.6.0.jar:?]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:917) ~[elasticsearch-8.6.0.jar:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-8.6.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) ~[?:?]
[2023-01-31T15:53:11,510][INFO ][o.e.c.r.a.AllocationService] [UMAIRSAEED] current.health="YELLOW" message="Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[.kibana-event-log-8.6.0-000001][0]]])." previous.health="RED" reason="shards started [[.kibana-event-log-8.6.0-000001][0]]"
[2023-01-31T15:53:11,830][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] successfully loaded geoip database file [GeoLite2-Country.mmdb]
[2023-01-31T15:53:11,985][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] successfully loaded geoip database file [GeoLite2-ASN.mmdb]
[2023-01-31T15:53:14,162][INFO ][o.e.i.g.DatabaseNodeService] [UMAIRSAEED] successfully loaded geoip database file [GeoLite2-City.mmdb]
[2023-01-31T15:54:03,661][INFO ][o.e.b.Elasticsearch      ] [UMAIRSAEED] running graceful exit on windows
[2023-01-31T15:54:03,662][INFO ][o.e.n.Node               ] [UMAIRSAEED] stopping ...
[2023-01-31T15:54:03,662][INFO ][o.e.r.s.FileSettingsService] [UMAIRSAEED] shutting down watcher thread
[2023-01-31T15:54:03,665][INFO ][o.e.r.s.FileSettingsService] [UMAIRSAEED] watcher service stopped
[2023-01-31T15:54:03,669][INFO ][o.e.x.w.WatcherService   ] [UMAIRSAEED] stopping watch service, reason [shutdown initiated]
[2023-01-31T15:54:03,671][INFO ][o.e.x.w.WatcherLifeCycleService] [UMAIRSAEED] watcher has stopped and shutdown
[2023-01-31T15:54:03,712][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [UMAIRSAEED] [controller/12724] [Main.cc@176] ML controller exiting
[2023-01-31T15:54:03,715][INFO ][o.e.x.m.p.NativeController] [UMAIRSAEED] Native controller process has stopped - no new native processes can be started
[2023-01-31T15:54:03,999][INFO ][o.e.n.Node               ] [UMAIRSAEED] stopped
[2023-01-31T15:54:03,999][INFO ][o.e.n.Node               ] [UMAIRSAEED] closing ...
[2023-01-31T15:54:04,023][INFO ][o.e.i.g.DatabaseReaderLazyLoader] [UMAIRSAEED] evicted [0] entries from cache after reloading database [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-Country.mmdb]
[2023-01-31T15:54:04,023][INFO ][o.e.i.g.DatabaseReaderLazyLoader] [UMAIRSAEED] evicted [0] entries from cache after reloading database [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-ASN.mmdb]
[2023-01-31T15:54:04,023][INFO ][o.e.i.g.DatabaseReaderLazyLoader] [UMAIRSAEED] evicted [0] entries from cache after reloading database [C:\Users\UMAIRS~1\AppData\Local\Temp\elasticsearch\geoip-databases\H72j8d5sT9KVwklksDrYng\GeoLite2-City.mmdb]
[2023-01-31T15:54:04,034][INFO ][o.e.n.Node               ] [UMAIRSAEED] closed

Only error is related to GeoIP,which can be ignored.

Two more things:

  • What is network.host: param in elasticsearch.yml?
  • Have you open port 9200 on a firewall?

It's seems you have started on network IP and IPV6. Are you using the same from Kibana
[UMAIRSAEED] publish_address {..9.74:9200}, bound_addresses {[::]:9200}

Is there anything in logs/hs_err_pid%p.log?

Network.host:
Sets the address of this node for both HTTP and transport traffic. The node will bind to this address and will also use it as its publish address. Accepts an IP address, a hostname, or a special value.

docs: Networking | Elasticsearch Guide [8.6] | Elastic

You would have to open 9200, if you want to reach Elasticsearch from "the outside" of your machine/network.

1 Like

Thank so much for help. Sharing the configurations:

# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
#path.data: /path/to/data
#
# Path to log files:
#
#path.logs: /path/to/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
#network.host: 192.168.0.1
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
#http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
#discovery.seed_hosts: ["host1", "host2"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
#cluster.initial_master_nodes: ["node-1", "node-2"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false

#----------------------- BEGIN SECURITY AUTO CONFIGURATION -----------------------
#
# The following settings, TLS certificates, and keys have been automatically      
# generated to configure Elasticsearch security features on 25-01-2023 11:27:44
#
# --------------------------------------------------------------------------------

# Enable security features
xpack.security.enabled: true

xpack.security.enrollment.enabled: true

# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12

# Enable encryption and mutual authentication between cluster nodes
xpack.security.transport.ssl:
  enabled: true
  verification_mode: certificate
  keystore.path: certs/transport.p12
  truststore.path: certs/transport.p12
# Create a new cluster with the current node only
# Additional nodes can still join the cluster later
cluster.initial_master_nodes: ["UMAIRSAEED"]

# Allow HTTP API connections from anywhere
# Connections are encrypted and require user authentication
http.host: 0.0.0.0

# Allow other nodes to join the cluster from anywhere
# Connections are encrypted and mutually authenticated
#transport.host: 0.0.0.0

#----------------------- END SECURITY AUTO CONFIGURATION -------------------------

#Bydefault Elasticsearch is only accessible on localhost. Set a different address here to expose this node on the network:

Can you try to add network.host: 0.0.0.0 and restart ES, or network.host: [ _local_, _site_ ]

Check here

Thanks @Rios

I have resolved it by setting the following value to false:

# Enable security features
xpack.security.enabled: false

Can you or someone please tell me why this was causing an issue? any thoughts?

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