Problem installing Elasticsearch

I'm trying to install Elasticsearch, but the script is failing. I'm using Windows 11 Enterprise.

  • Downloaded the installer (elasticsearch-8.17.1-windows-x86_64.zip) from Download Elasticsearch | Elastic
  • Unzip the zip file
  • I did not change anything in "elasticsearch.yml"
  • Run .\bin\elasticsearch.bat in non-admin command prompt
  • I get the error below. I'm expecting to see password, certificate fingerprint, and enrollment token without an error.

Any idea why the script is not working?

C:\Users\a000112>cd c:/dev/elasticsearch

c:\dev\elasticsearch>.\bin\elasticsearch.bat
CompileCommand: dontinline java/lang/invoke/MethodHandle.setAsTypeCache bool dontinline = true
CompileCommand: dontinline java/lang/invoke/MethodHandle.asTypeUncached bool dontinline = true
[2025-01-22T10:41:39,007][INFO ][o.e.n.NativeAccess       ] [THIVE-PF5CRCYR] Using [jdk] native provider and native methods for [Windows]
[2025-01-22T10:41:39,176][INFO ][o.a.l.i.v.PanamaVectorizationProvider] [THIVE-PF5CRCYR] Java vector incubator API enabled; uses preferredBitSize=256; FMA enabled
[2025-01-22T10:41:39,177][INFO ][o.e.j.JarHell            ] [THIVE-PF5CRCYR] Bootstrapping java SecurityManager
[2025-01-22T10:41:41,521][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] version[8.17.1], pid[7940], build[zip/d4b391d925c31d262eb767b8b2db8f398103f909/2025-01-10T10:08:26.972230187Z], OS[Windows 11/10.0/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/23/23+37-2369]
[2025-01-22T10:41:41,523][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] JVM home [c:\dev\elasticsearch\jdk], using bundled JDK [true]
[2025-01-22T10:41:41,524][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] JVM arguments [-Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -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=CLDR, -Des.distribution.type=zip, --enable-native-access=org.elasticsearch.nativeaccess,org.apache.lucene.core, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.security.manager=allow, -XX:+UseG1GC, -Djava.io.tmpdir=C:\Users\a000112\AppData\Local\Temp\elasticsearch, --add-modules=jdk.incubator.vector, -XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.setAsTypeCache, -XX:CompileCommand=dontinline,java/lang/invoke/MethodHandle.asTypeUncached, -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,level,pid,tags:filecount=32,filesize=64m, -Xms31744m, -Xmx31744m, -XX:MaxDirectMemorySize=16642998272, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=25, --module-path=c:\dev\elasticsearch\lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
[2025-01-22T10:41:41,524][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] Default Locale [en_US]
[2025-01-22T10:41:48,319][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [repository-url]
[2025-01-22T10:41:48,320][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [rest-root]
[2025-01-22T10:41:48,320][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-core]
[2025-01-22T10:41:48,320][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-redact]
[2025-01-22T10:41:48,322][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [ingest-user-agent]
[2025-01-22T10:41:48,322][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-async-search]
[2025-01-22T10:41:48,323][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-monitoring]
[2025-01-22T10:41:48,323][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [repository-s3]
[2025-01-22T10:41:48,324][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-analytics]
[2025-01-22T10:41:48,324][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-esql-core]
[2025-01-22T10:41:48,324][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-ent-search]
[2025-01-22T10:41:48,325][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-autoscaling]
[2025-01-22T10:41:48,325][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [lang-painless]
[2025-01-22T10:41:48,325][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-ml]
[2025-01-22T10:41:48,326][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [lang-mustache]
[2025-01-22T10:41:48,326][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [legacy-geo]
[2025-01-22T10:41:48,326][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [logsdb]
[2025-01-22T10:41:48,327][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-ql]
[2025-01-22T10:41:48,327][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [rank-rrf]
[2025-01-22T10:41:48,327][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [analysis-common]
[2025-01-22T10:41:48,328][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [health-shards-availability]
[2025-01-22T10:41:48,328][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [transport-netty4]
[2025-01-22T10:41:48,328][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [aggregations]
[2025-01-22T10:41:48,329][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [ingest-common]
[2025-01-22T10:41:48,329][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [frozen-indices]
[2025-01-22T10:41:48,330][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-identity-provider]
[2025-01-22T10:41:48,330][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-shutdown]
[2025-01-22T10:41:48,330][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-text-structure]
[2025-01-22T10:41:48,332][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [snapshot-repo-test-kit]
[2025-01-22T10:41:48,332][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [ml-package-loader]
[2025-01-22T10:41:48,333][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [kibana]
[2025-01-22T10:41:48,333][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [constant-keyword]
[2025-01-22T10:41:48,333][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-logstash]
[2025-01-22T10:41:48,333][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-ccr]
[2025-01-22T10:41:48,334][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-graph]
[2025-01-22T10:41:48,334][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-esql]
[2025-01-22T10:41:48,335][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [parent-join]
[2025-01-22T10:41:48,335][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [counted-keyword]
[2025-01-22T10:41:48,336][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-enrich]
[2025-01-22T10:41:48,336][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [repositories-metering-api]
[2025-01-22T10:41:48,336][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [transform]
[2025-01-22T10:41:48,337][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [repository-azure]
[2025-01-22T10:41:48,337][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [dot-prefix-validation]
[2025-01-22T10:41:48,337][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [repository-gcs]
[2025-01-22T10:41:48,337][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [spatial]
[2025-01-22T10:41:48,338][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-otel-data]
[2025-01-22T10:41:48,338][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [apm]
[2025-01-22T10:41:48,339][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [mapper-extras]
[2025-01-22T10:41:48,339][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [mapper-version]
[2025-01-22T10:41:48,339][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-rollup]
[2025-01-22T10:41:48,340][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [percolator]
[2025-01-22T10:41:48,340][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [data-streams]
[2025-01-22T10:41:48,341][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-stack]
[2025-01-22T10:41:48,342][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [rank-eval]
[2025-01-22T10:41:48,342][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [reindex]
[2025-01-22T10:41:48,343][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-security]
[2025-01-22T10:41:48,343][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [blob-cache]
[2025-01-22T10:41:48,344][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [searchable-snapshots]
[2025-01-22T10:41:48,344][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-slm]
[2025-01-22T10:41:48,345][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-geoip-enterprise-downloader]
[2025-01-22T10:41:48,345][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [snapshot-based-recoveries]
[2025-01-22T10:41:48,346][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-watcher]
[2025-01-22T10:41:48,346][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [old-lucene-versions]
[2025-01-22T10:41:48,347][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-ilm]
[2025-01-22T10:41:48,347][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-inference]
[2025-01-22T10:41:48,348][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-voting-only-node]
[2025-01-22T10:41:48,348][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-deprecation]
[2025-01-22T10:41:48,349][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-fleet]
[2025-01-22T10:41:48,349][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-aggregate-metric]
[2025-01-22T10:41:48,350][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-downsample]
[2025-01-22T10:41:48,350][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-profiling]
[2025-01-22T10:41:48,351][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [ingest-geoip]
[2025-01-22T10:41:48,351][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-write-load-forecaster]
[2025-01-22T10:41:48,352][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [search-business-rules]
[2025-01-22T10:41:48,352][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [ingest-attachment]
[2025-01-22T10:41:48,352][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [wildcard]
[2025-01-22T10:41:48,353][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-apm-data]
[2025-01-22T10:41:48,354][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [unsigned-long]
[2025-01-22T10:41:48,354][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-sql]
[2025-01-22T10:41:48,354][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [runtime-fields-common]
[2025-01-22T10:41:48,355][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-async]
[2025-01-22T10:41:48,355][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [vector-tile]
[2025-01-22T10:41:48,355][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-kql]
[2025-01-22T10:41:48,355][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [lang-expression]
[2025-01-22T10:41:48,356][INFO ][o.e.p.PluginsService     ] [THIVE-PF5CRCYR] loaded module [x-pack-eql]
[2025-01-22T10:41:51,386][INFO ][o.e.e.NodeEnvironment    ] [THIVE-PF5CRCYR] using [1] data paths, mounts [[Windows (c:)]], net usable_space [694.3gb], net total_space [951.6gb], types [NTFS]
[2025-01-22T10:41:51,387][INFO ][o.e.e.NodeEnvironment    ] [THIVE-PF5CRCYR] heap size [31gb], compressed ordinary object pointers [true]
[2025-01-22T10:41:51,611][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] node name [THIVE-PF5CRCYR], node ID [CB5tEJnDSsOrjgJwcDUvhA], cluster name [elasticsearch], roles [data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen, ml]
[2025-01-22T10:41:58,157][INFO ][o.e.i.r.RecoverySettings ] [THIVE-PF5CRCYR] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2025-01-22T10:41:58,603][INFO ][o.e.f.FeatureService     ] [THIVE-PF5CRCYR] Registered local node features [cluster.stats.source_modes, data_stream.auto_sharding, data_stream.lifecycle.global_retention, data_stream.rollover.lazy, desired_node.version_deprecated, esql.agg_values, esql.async_query, esql.base64_decode_encode, esql.casting_operator, esql.counter_types, esql.disable_nullable_opts, esql.from_options, esql.metadata_fields, esql.metrics_counter_fields, esql.mv_ordering_sorted_ascending, esql.mv_sort, esql.resolve_fields_api, esql.spatial_points_from_source, esql.spatial_shapes, esql.st_centroid_agg, esql.st_contains_within, esql.st_disjoint, esql.st_intersects, esql.st_x_y, esql.string_literal_auto_casting, esql.string_literal_auto_casting_extended, esql.timespan_abbreviations, features_supported, file_settings, flattened.ignore_above_support, geoip.downloader.database.configuration, get_database_configuration_action.multi_node, health.dsl.info, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, logsdb_telemetry, logsdb_telemetry_stats, mapper.boolean_dimension, mapper.flattened.ignore_above_with_arrays_support, mapper.ignore_above_index_level_setting, mapper.index_sorting_on_nested, mapper.keyword_dimension_ignore_above, mapper.keyword_normalizer_synthetic_source, mapper.pass_through_priority, mapper.query_index_mode, mapper.range.null_values_off_by_one_fix, mapper.segment_level_fields_stats, mapper.source.synthetic_source_copy_to_fix, mapper.source.synthetic_source_copy_to_inside_objects_fix, mapper.source.synthetic_source_fallback, mapper.source.synthetic_source_stored_fields_advance_fix, mapper.source.synthetic_source_with_copy_to_and_doc_values_false, mapper.subobjects_auto, mapper.subobjects_auto_fixes, mapper.synthetic_source_keep, mapper.track_ignored_source, mapper.vectors.bbq, mapper.vectors.bit_vectors, mapper.vectors.int4_quantization, put_database_configuration_action.ipinfo, query_rule_list_types, query_rule_retriever_supported, query_rules.test, random_reranker_retriever_supported, repositories.supports_usage_stats, rest.capabilities_action, rest.local_only_capabilities, retrievers_supported, routing.boolean_routing_path, routing.multi_value_routing_path, rrf_retriever_composition_supported, rrf_retriever_supported, script.hamming, script.term_stats, search.vectors.k_param_supported, security.migration_framework, security.role_mapping_cleanup, security.roles_metadata_flattened, semantic_text.default_elser_2, semantic_text.search_inference_id, simulate.component.template.substitutions, simulate.index.template.substitutions, simulate.mapping.addition, simulate.mapping.validation, simulate.mapping.validation.templates, simulate.support.non.template.mapping, slm.interval_schedule, snapshot.repository_verify_integrity, standard_retriever_supported, stats.include_disk_thresholds, text_similarity_reranker_retriever_composition_supported, text_similarity_reranker_retriever_supported, tsdb.ts_routing_hash_doc_value_parse_byte_ref, unified_highlighter_matched_fields, usage.data_tiers.precalculate_stats]
[2025-01-22T10:41:58,693][INFO ][o.e.c.m.DataStreamGlobalRetentionSettings] [THIVE-PF5CRCYR] Updated default factory retention to [null]
[2025-01-22T10:41:58,694][INFO ][o.e.c.m.DataStreamGlobalRetentionSettings] [THIVE-PF5CRCYR] Updated max factory retention to [null]
[2025-01-22T10:41:59,547][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [THIVE-PF5CRCYR] [controller/44272] [Main.cc@123] controller (64 bit): Version 8.17.1 (Build ef1d04f0279dc6) Copyright (c) 2024 Elasticsearch BV
[2025-01-22T10:42:00,223][INFO ][o.e.x.o.OTelPlugin       ] [THIVE-PF5CRCYR] OTel ingest plugin is enabled
[2025-01-22T10:42:00,292][INFO ][o.e.x.c.t.YamlTemplateRegistry] [THIVE-PF5CRCYR] OpenTelemetry index template registry is enabled
[2025-01-22T10:42:00,305][INFO ][o.e.t.a.APM              ] [THIVE-PF5CRCYR] Sending apm metrics is disabled
[2025-01-22T10:42:00,306][INFO ][o.e.t.a.APM              ] [THIVE-PF5CRCYR] Sending apm tracing is disabled
[2025-01-22T10:42:00,379][INFO ][o.e.x.s.Security         ] [THIVE-PF5CRCYR] Security is enabled
[2025-01-22T10:42:00,992][INFO ][o.e.x.s.a.s.FileRolesStore] [THIVE-PF5CRCYR] parsed [0] roles from file [c:\dev\elasticsearch\config\roles.yml]

[2025-01-22T10:42:01,809][INFO ][o.e.x.w.Watcher          ] [THIVE-PF5CRCYR] Watcher initialized components at 2025-01-22T15:42:01.809Z
[2025-01-22T10:42:02,012][INFO ][o.e.x.p.ProfilingPlugin  ] [THIVE-PF5CRCYR] Profiling is enabled
[2025-01-22T10:42:02,046][INFO ][o.e.x.p.ProfilingPlugin  ] [THIVE-PF5CRCYR] profiling index templates will not be installed or reinstalled
[2025-01-22T10:42:02,055][INFO ][o.e.x.a.APMPlugin        ] [THIVE-PF5CRCYR] APM ingest plugin is enabled
[2025-01-22T10:42:02,156][INFO ][o.e.x.c.t.YamlTemplateRegistry] [THIVE-PF5CRCYR] apm index template registry is enabled
[2025-01-22T10:42:03,299][INFO ][o.e.t.n.NettyAllocator   ] [THIVE-PF5CRCYR] 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=16mb}]
[2025-01-22T10:42:03,420][INFO ][o.e.d.DiscoveryModule    ] [THIVE-PF5CRCYR] using discovery type [multi-node] and seed hosts providers [settings]
[2025-01-22T10:42:06,377][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] initialized
[2025-01-22T10:42:06,379][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] starting ...
[2025-01-22T10:42:06,429][INFO ][o.e.x.s.c.f.PersistentCache] [THIVE-PF5CRCYR] persistent cache index loaded
[2025-01-22T10:42:06,431][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [THIVE-PF5CRCYR] deprecation component started
[2025-01-22T10:42:06,634][INFO ][o.e.t.TransportService   ] [THIVE-PF5CRCYR] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2025-01-22T10:42:07,453][WARN ][o.e.c.c.ClusterBootstrapService] [THIVE-PF5CRCYR] this node is locked into cluster UUID [0Fg0DObCR5WmtfDEBAfT6g] but [cluster.initial_master_nodes] is set to [THIVE-PF5CRCYR]; remove this setting to avoid possible data loss caused by subsequent cluster bootstrap attempts; for further information see https://www.elastic.co/guide/en/elasticsearch/reference/8.17/important-settings.html#initial_master_nodes
[2025-01-22T10:42:07,720][INFO ][o.e.c.s.MasterService    ] [THIVE-PF5CRCYR] elected-as-master ([1] nodes joined in term 4)[_FINISH_ELECTION_, {THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}{fMi6ws_HQFyNi6I2fz2l-A}{THIVE-PF5CRCYR}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.17.1}{7000099-8521000} completing election], term: 4, version: 96, delta: master node changed {previous [], current [{THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}{fMi6ws_HQFyNi6I2fz2l-A}{THIVE-PF5CRCYR}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.17.1}{7000099-8521000}]}
[2025-01-22T10:42:08,033][INFO ][o.e.c.s.ClusterApplierService] [THIVE-PF5CRCYR] master node changed {previous [], current [{THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}{fMi6ws_HQFyNi6I2fz2l-A}{THIVE-PF5CRCYR}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.17.1}{7000099-8521000}]}, term: 4, version: 96, reason: Publication{term=4, version=96}
[2025-01-22T10:42:08,150][INFO ][o.e.c.c.NodeJoinExecutor ] [THIVE-PF5CRCYR] node-join: [{THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}{fMi6ws_HQFyNi6I2fz2l-A}{THIVE-PF5CRCYR}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.17.1}{7000099-8521000}] with reason [completing election]
[2025-01-22T10:42:08,158][INFO ][o.e.h.AbstractHttpServerTransport] [THIVE-PF5CRCYR] publish_address {172.30.160.1:9200}, bound_addresses {[::]:9200}
[2025-01-22T10:42:08,201][INFO ][o.e.n.Node               ] [THIVE-PF5CRCYR] started {THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}{fMi6ws_HQFyNi6I2fz2l-A}{THIVE-PF5CRCYR}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.17.1}{7000099-8521000}{ml.max_jvm_size=33285996544, ml.config_version=12.0.0, xpack.installed=true, transform.config_version=10.0.0, ml.machine_memory=68125392896, ml.allocated_processors=14, ml.allocated_processors_double=14.0}
[2025-01-22T10:42:09,034][INFO ][o.e.x.s.a.Realms         ] [THIVE-PF5CRCYR] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
[2025-01-22T10:42:09,040][INFO ][o.e.l.ClusterStateLicenseService] [THIVE-PF5CRCYR] license [254b6376-c942-4fca-936a-f042ca921797] mode [basic] - valid
[2025-01-22T10:42:09,045][INFO ][o.e.c.f.AbstractFileWatchingService] [THIVE-PF5CRCYR] starting file watcher ...
[2025-01-22T10:42:09,056][INFO ][o.e.c.f.AbstractFileWatchingService] [THIVE-PF5CRCYR] file settings service up and running [tid=91]
[2025-01-22T10:42:09,057][INFO ][o.e.g.GatewayService     ] [THIVE-PF5CRCYR] recovered [3] indices into cluster_state
[2025-01-22T10:42:09,059][INFO ][o.e.r.s.FileSettingsService] [THIVE-PF5CRCYR] setting file [c:\dev\elasticsearch\config\operator\settings.json] not found, initializing [file_settings] as empty
[2025-01-22T10:42:10,038][WARN ][o.e.h.AbstractHttpServerTransport] [THIVE-PF5CRCYR] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53382}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:500)
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)

See logs for more details.

[2025-01-22T10:42:10,272][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [THIVE-PF5CRCYR] Node [{THIVE-PF5CRCYR}{CB5tEJnDSsOrjgJwcDUvhA}] is selected as the current health node.
[2025-01-22T10:42:10,281][INFO ][o.e.c.r.a.AllocationService] [THIVE-PF5CRCYR] current.health="GREEN" message="Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[.ds-.logs-deprecation.elasticsearch-default-2025.01.22-000001][0], [.ds-ilm-history-7-2025.01.22-000001][0], [.security-7][0]]])." previous.health="RED" reason="shards started [[.ds-.logs-deprecation.elasticsearch-default-2025.01.22-000001][0], [.ds-ilm-history-7-2025.01.22-000001][0], [.security-7][0]]"
[2025-01-22T10:42:11,104][WARN ][o.e.h.AbstractHttpServerTransport] [THIVE-PF5CRCYR] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53387}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:500)
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)

See logs for more details.

[2025-01-22T10:42:13,151][WARN ][o.e.h.AbstractHttpServerTransport] [THIVE-PF5CRCYR] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53398}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:500)
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)

See logs for more details.

[2025-01-22T10:42:17,195][WARN ][o.e.h.AbstractHttpServerTransport] [THIVE-PF5CRCYR] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53413}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:500)
        at io.netty.codec@4.1.115.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.transport@4.1.115.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)

Welcome!

Elasticsearch is up and running but I think you are trying to connect using http instead of https.

1 Like

Thank you so much for your reply!
This instruction (Install Elasticsearch with .zip on Windows | Elasticsearch Guide [8.17] | Elastic) says " The password for the elastic user and the enrollment token for Kibana are output to your terminal.". I'm not seeing any password or enrollment token on the terminal. How am I supposed to get the password, fingerprint, and enrollment token if they are not displayed on the terminal?

Also, I'm not trying to connect to Elasticsearch. All I did was to run the "elasticsearch.bat" script. Do you think something is trying to connect to Elasticsearch using http without me knowing? Is there a way to find out what is trying to connect?

What I would suggest is clean up the whole directory... unzip again ...
run again...
be patient it can take a while... (perhaps stopped it prematurely last time / first time)

There is also msg:

Received fatal alert: unknown_ca

Have you checked your certificates?

I got it to work! Here is the summary.

  • When running "elasticsearch.bat", no password or enrollment token is displayed. Below is how I regenerated them.

    • While the script is running, open another command prompt. Run .\bin\elasticsearch-reset-password -u elastic to reset and display the new password. Run .\bin\elasticsearch-create-enrollment-token -s kibana to display the enrollment token
    • Removing all files and unzipping the installer did not help
  • When you see this error below, the Elasticsearch is probably running fine, and something is trying to connect to Elasticsearch using incorrect connection setting

caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/127.0.0.1:9200, remoteAddress=/127.0.0.1:53413}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: (unknown_ca) Received fatal alert: unknown_ca

By regenerating the password and enrollment token, I was able to set up Elasticsearch along with Kibana. It turned out that there was a software (my software of course) that was trying to talk to Elasticsearch with incorrect connection setting. After updating the connection setting, my software can now talk to Elasticsearch and see the log in Kibana.

Thank you so much for your help!

2 Likes

was later followed by

That amused me :slight_smile: