• Support
  • ElasticSearch cannot start properly

I've installed elasticsearch successfully. However, it can't start properly at the terminal command. But on the panel service status, it shown running.

Here is from panel service status:

Here is from my terminal status:

[root@localhost aapanel]# /etc/init.d/elasticsearch start
Starting Elasticsearch server...
Nov 28, 2024 4:11:11 AM sun.util.locale.provider.LocaleProviderAdapter <clinit>
WARNING: COMPAT locale provider will be removed in a future release
[2024-11-28T04:11:11,970][INFO ][o.e.n.NativeAccess       ] [localhost] Using native vector library; to disable start with -Dorg.elasticsearch.nativeaccess.enableVectorLibrary=false
[2024-11-28T04:11:12,282][INFO ][o.e.n.NativeAccess       ] [localhost] Using [jdk] native provider and native methods for [Linux]
[2024-11-28T04:11:12,642][INFO ][o.a.l.i.v.PanamaVectorizationProvider] [localhost] Java vector incubator API enabled; uses preferredBitSize=512; FMA enabled
[2024-11-28T04:11:13,519][INFO ][o.e.n.Node               ] [localhost] version[8.15.0], pid[222511], build[tar/1a77947f34deddb41af25e6f0ddb8e830159c179/2024-08-05T10:05:34.233336849Z], OS[Linux/5.14.0-529.el9.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/22.0.1/22.0.1+8-16]
[2024-11-28T04:11:13,520][INFO ][o.e.n.Node               ] [localhost] JVM home [/www/server/elasticsearch/jdk], using bundled JDK [true]
[2024-11-28T04:11:13,521][INFO ][o.e.n.Node               ] [localhost] 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=org.elasticsearch.preallocate, --enable-native-access=org.elasticsearch.nativeaccess,org.apache.lucene.core, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.library.path=/www/server/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Djna.library.path=/www/server/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Des.distribution.type=tar, -XX:+UnlockDiagnosticVMOptions, -XX:G1NumCollectionsKeepPinned=10000000, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-404687806807928971, --add-modules=jdk.incubator.vector, -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, -Xms3825m, -Xmx3825m, -XX:MaxDirectMemorySize=2005925888, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=/www/server/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
[2024-11-28T04:11:13,522][INFO ][o.e.n.Node               ] [localhost] Default Locale [en_US]
[2024-11-28T04:11:17,293][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-url]
[2024-11-28T04:11:17,293][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rest-root]
[2024-11-28T04:11:17,294][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-core]
[2024-11-28T04:11:17,294][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-redact]
[2024-11-28T04:11:17,294][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-user-agent]
[2024-11-28T04:11:17,295][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-async-search]
[2024-11-28T04:11:17,295][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-monitoring]
[2024-11-28T04:11:17,295][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-s3]
[2024-11-28T04:11:17,295][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-esql-core]
[2024-11-28T04:11:17,295][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-analytics]
[2024-11-28T04:11:17,296][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ent-search]
[2024-11-28T04:11:17,296][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-autoscaling]
[2024-11-28T04:11:17,296][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-painless]
[2024-11-28T04:11:17,296][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ml]
[2024-11-28T04:11:17,297][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [legacy-geo]
[2024-11-28T04:11:17,297][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-mustache]
[2024-11-28T04:11:17,297][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ql]
[2024-11-28T04:11:17,297][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rank-rrf]
[2024-11-28T04:11:17,298][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [analysis-common]
[2024-11-28T04:11:17,298][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [health-shards-availability]
[2024-11-28T04:11:17,298][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [transport-netty4]
[2024-11-28T04:11:17,298][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [aggregations]
[2024-11-28T04:11:17,298][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-common]
[2024-11-28T04:11:17,299][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-identity-provider]
[2024-11-28T04:11:17,299][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [frozen-indices]
[2024-11-28T04:11:17,299][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-text-structure]
[2024-11-28T04:11:17,299][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-shutdown]
[2024-11-28T04:11:17,300][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [snapshot-repo-test-kit]
[2024-11-28T04:11:17,300][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ml-package-loader]
[2024-11-28T04:11:17,300][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [kibana]
[2024-11-28T04:11:17,300][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [constant-keyword]
[2024-11-28T04:11:17,301][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-logstash]
[2024-11-28T04:11:17,301][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-graph]
[2024-11-28T04:11:17,301][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ccr]
[2024-11-28T04:11:17,301][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-esql]
[2024-11-28T04:11:17,301][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [parent-join]
[2024-11-28T04:11:17,302][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [counted-keyword]
[2024-11-28T04:11:17,302][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-enrich]
[2024-11-28T04:11:17,302][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repositories-metering-api]
[2024-11-28T04:11:17,302][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [transform]
[2024-11-28T04:11:17,302][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-azure]
[2024-11-28T04:11:17,303][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-gcs]
[2024-11-28T04:11:17,303][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [spatial]
[2024-11-28T04:11:17,303][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [mapper-version]
[2024-11-28T04:11:17,303][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [mapper-extras]
[2024-11-28T04:11:17,303][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [apm]
[2024-11-28T04:11:17,304][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-rollup]
[2024-11-28T04:11:17,304][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [percolator]
[2024-11-28T04:11:17,304][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-stack]
[2024-11-28T04:11:17,304][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [data-streams]
[2024-11-28T04:11:17,304][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [reindex]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rank-eval]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-security]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [blob-cache]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [searchable-snapshots]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-slm]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-geoip-enterprise-downloader]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [snapshot-based-recoveries]
[2024-11-28T04:11:17,305][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-watcher]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [old-lucene-versions]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ilm]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-voting-only-node]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-inference]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-deprecation]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-fleet]
[2024-11-28T04:11:17,306][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-profiling]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-aggregate-metric]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-downsample]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-geoip]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-write-load-forecaster]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [search-business-rules]
[2024-11-28T04:11:17,307][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [wildcard]
[2024-11-28T04:11:17,308][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-attachment]
[2024-11-28T04:11:17,308][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-apm-data]
[2024-11-28T04:11:17,308][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-sql]
[2024-11-28T04:11:17,308][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [unsigned-long]
[2024-11-28T04:11:17,308][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-async]
[2024-11-28T04:11:17,309][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [runtime-fields-common]
[2024-11-28T04:11:17,309][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [vector-tile]
[2024-11-28T04:11:17,309][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-expression]
[2024-11-28T04:11:17,309][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-eql]
[2024-11-28T04:11:18,803][INFO ][o.e.e.NodeEnvironment    ] [localhost] using [1] data paths, mounts [[/ (/dev/mapper/centos-root)]], net usable_space [16.8gb], net total_space [37.3gb], types [xfs]
[2024-11-28T04:11:18,804][INFO ][o.e.e.NodeEnvironment    ] [localhost] heap size [3.7gb], compressed ordinary object pointers [true]
[2024-11-28T04:11:18,879][INFO ][o.e.n.Node               ] [localhost] node name [localhost], node ID [hmJ0aPlCSLa1TiXYx-VOZA], cluster name [elasticsearch], roles [ingest, data_frozen, ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold]
[2024-11-28T04:11:23,542][INFO ][o.e.i.r.RecoverySettings ] [localhost] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
[2024-11-28T04:11:23,764][INFO ][o.e.f.FeatureService     ] [localhost] Registered local node features [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.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, geoip.downloader.database.configuration, health.dsl.info, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, mapper.index_sorting_on_nested, mapper.keyword_dimension_ignore_above, mapper.pass_through_priority, mapper.range.null_values_off_by_one_fix, mapper.source.synthetic_source_fallback, mapper.track_ignored_source, mapper.vectors.bit_vectors, mapper.vectors.int4_quantization, rest.capabilities_action, retrievers_supported, rrf_retriever_supported, script.hamming, search.vectors.k_param_supported, security.migration_framework, security.roles_metadata_flattened, standard_retriever_supported, stats.include_disk_thresholds, text_similarity_reranker_retriever_supported, unified_highlighter_matched_fields, usage.data_tiers.precalculate_stats]
[2024-11-28T04:11:24,446][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [localhost] [controller/222575] [Main.cc@123] controller (64 bit): Version 8.15.0 (Build 64f00009177815) Copyright (c) 2024 Elasticsearch BV
[2024-11-28T04:11:24,727][INFO ][o.e.t.a.APM              ] [localhost] Sending apm metrics is disabled
[2024-11-28T04:11:24,728][INFO ][o.e.t.a.APM              ] [localhost] Sending apm tracing is disabled
[2024-11-28T04:11:24,772][INFO ][o.e.x.s.Security         ] [localhost] Security is enabled
[2024-11-28T04:11:25,377][INFO ][o.e.x.s.a.s.FileRolesStore] [localhost] parsed [0] roles from file [/www/server/elasticsearch/config/roles.yml]

[2024-11-28T04:11:25,897][INFO ][o.e.x.w.Watcher          ] [localhost] Watcher initialized components at 2024-11-27T21:11:25.897Z
[2024-11-28T04:11:25,999][INFO ][o.e.x.p.ProfilingPlugin  ] [localhost] Profiling is enabled
[2024-11-28T04:11:26,022][INFO ][o.e.x.p.ProfilingPlugin  ] [localhost] profiling index templates will not be installed or reinstalled
[2024-11-28T04:11:26,028][INFO ][o.e.x.a.APMPlugin        ] [localhost] APM ingest plugin is enabled
[2024-11-28T04:11:26,070][INFO ][o.e.x.a.APMIndexTemplateRegistry] [localhost] APM index template registry is enabled
[2024-11-28T04:11:26,727][INFO ][o.e.t.n.NettyAllocator   ] [localhost] 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}]
[2024-11-28T04:11:26,803][INFO ][o.e.d.DiscoveryModule    ] [localhost] using discovery type [multi-node] and seed hosts providers [settings]
[2024-11-28T04:11:28,610][INFO ][o.e.n.Node               ] [localhost] initialized
[2024-11-28T04:11:28,611][INFO ][o.e.n.Node               ] [localhost] starting ...
[2024-11-28T04:11:28,630][INFO ][o.e.x.s.c.f.PersistentCache] [localhost] persistent cache index loaded
[2024-11-28T04:11:28,631][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [localhost] deprecation component started
[2024-11-28T04:11:28,748][INFO ][o.e.t.TransportService   ] [localhost] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2024-11-28T04:11:29,124][WARN ][o.e.c.c.ClusterBootstrapService] [localhost] this node is locked into cluster UUID [Q9-t1k_oT7SwMjms575YFw] but [cluster.initial_master_nodes] is set to [localhost]; 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.15/important-settings.html#initial_master_nodes
[2024-11-28T04:11:29,239][INFO ][o.e.c.s.MasterService    ] [localhost] elected-as-master ([1] nodes joined in term 3)[_FINISH_ELECTION_, {localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{utxi0GwZRCmaoA2rEqod6g}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000} completing election], term: 3, version: 58, delta: master node changed {previous [], current [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{utxi0GwZRCmaoA2rEqod6g}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]}
[2024-11-28T04:11:29,289][INFO ][o.e.c.s.ClusterApplierService] [localhost] master node changed {previous [], current [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{utxi0GwZRCmaoA2rEqod6g}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]}, term: 3, version: 58, reason: Publication{term=3, version=58}
[2024-11-28T04:11:29,339][INFO ][o.e.h.AbstractHttpServerTransport] [localhost] publish_address {220.158.233.215:9200}, bound_addresses {[::]:9200}
[2024-11-28T04:11:29,340][INFO ][o.e.c.c.NodeJoinExecutor ] [localhost] node-join: [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{utxi0GwZRCmaoA2rEqod6g}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}] with reason [completing election]
[2024-11-28T04:11:29,354][INFO ][o.e.n.Node               ] [localhost] started {localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{utxi0GwZRCmaoA2rEqod6g}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}{ml.allocated_processors_double=6.0, ml.max_jvm_size=4013948928, ml.config_version=12.0.0, xpack.installed=true, transform.config_version=10.0.0, ml.machine_memory=8023212032, ml.allocated_processors=6}
Starting Elasticsearch success!
[root@localhost aapanel]# systemctl status elasticsearch
â—‹ elasticsearch.service - Elasticsearch
     Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; preset: disabled)
     Active: inactive (dead) since Thu 2024-11-28 04:10:51 +07; 49s ago
       Docs: https://www.elastic.co
    Process: 222380 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS)
    Process: 222384 ExecStop=/etc/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)
        CPU: 40ms

Nov 28 04:10:50 localhost systemd[1]: Starting Elasticsearch...
Nov 28 04:10:50 localhost elasticsearch[222380]: Elasticsearch is running! (217687)
Nov 28 04:10:50 localhost elasticsearch[222384]: Stopping ...
Nov 28 04:10:51 localhost elasticsearch[222384]: Elasticsearch stopped
Nov 28 04:10:51 localhost systemd[1]: elasticsearch.service: Deactivated successfully.
Nov 28 04:10:51 localhost systemd[1]: Started Elasticsearch.
[root@localhost aapanel]#

Any advices are much appreciated.

    aaP_demo1
    Please help me with some of the advices, seems it is deactivated in some reason.

    [2024-11-30T02:42:52,377][INFO ][o.e.n.NativeAccess       ] [localhost] Using native vector library; to disable start with -Dorg.elasticsearch.nativeaccess.enableVectorLibrary=false
    [2024-11-30T02:42:52,606][INFO ][o.e.n.NativeAccess       ] [localhost] Using [jdk] native provider and native methods for [Linux]
    [2024-11-30T02:42:52,987][INFO ][o.a.l.i.v.PanamaVectorizationProvider] [localhost] Java vector incubator API enabled; uses preferredBitSize=512; FMA enabled
    [2024-11-30T02:42:53,896][INFO ][o.e.n.Node               ] [localhost] version[8.15.0], pid[375933], build[tar/1a77947f34deddb41af25e6f0ddb8e830159c179/2024-08-05T10:05:34.233336849Z], OS[Linux/5.14.0-529.el9.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/22.0.1/22.0.1+8-16]
    [2024-11-30T02:42:53,897][INFO ][o.e.n.Node               ] [localhost] JVM home [/www/server/elasticsearch/jdk], using bundled JDK [true]
    [2024-11-30T02:42:53,897][INFO ][o.e.n.Node               ] [localhost] 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=org.elasticsearch.preallocate, --enable-native-access=org.elasticsearch.nativeaccess,org.apache.lucene.core, -XX:ReplayDataFile=logs/replay_pid%p.log, -Djava.library.path=/www/server/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Djna.library.path=/www/server/elasticsearch/lib/platform/linux-x64:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib, -Des.distribution.type=tar, -XX:+UnlockDiagnosticVMOptions, -XX:G1NumCollectionsKeepPinned=10000000, -Xms1g, -Xmx1g, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-10011920094507177009, --add-modules=jdk.incubator.vector, -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, -XX:MaxDirectMemorySize=536870912, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, --module-path=/www/server/elasticsearch/lib, --add-modules=jdk.net, --add-modules=ALL-MODULE-PATH, -Djdk.module.main=org.elasticsearch.server]
    [2024-11-30T02:42:53,898][INFO ][o.e.n.Node               ] [localhost] Default Locale [en_US]
    [2024-11-30T02:42:57,476][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-url]
    [2024-11-30T02:42:57,476][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rest-root]
    [2024-11-30T02:42:57,476][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-core]
    [2024-11-30T02:42:57,477][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-redact]
    [2024-11-30T02:42:57,477][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-user-agent]
    [2024-11-30T02:42:57,477][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-async-search]
    [2024-11-30T02:42:57,477][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-monitoring]
    [2024-11-30T02:42:57,477][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-s3]
    [2024-11-30T02:42:57,478][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-esql-core]
    [2024-11-30T02:42:57,478][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-analytics]
    [2024-11-30T02:42:57,478][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ent-search]
    [2024-11-30T02:42:57,478][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-autoscaling]
    [2024-11-30T02:42:57,478][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-painless]
    [2024-11-30T02:42:57,479][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ml]
    [2024-11-30T02:42:57,479][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [legacy-geo]
    [2024-11-30T02:42:57,479][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-mustache]
    [2024-11-30T02:42:57,479][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ql]
    [2024-11-30T02:42:57,479][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rank-rrf]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [analysis-common]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [health-shards-availability]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [transport-netty4]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [aggregations]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-common]
    [2024-11-30T02:42:57,480][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-identity-provider]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [frozen-indices]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-text-structure]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-shutdown]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [snapshot-repo-test-kit]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ml-package-loader]
    [2024-11-30T02:42:57,481][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [kibana]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [constant-keyword]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-logstash]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-graph]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ccr]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-esql]
    [2024-11-30T02:42:57,482][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [parent-join]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [counted-keyword]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-enrich]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repositories-metering-api]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [transform]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-azure]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [repository-gcs]
    [2024-11-30T02:42:57,483][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [spatial]
    [2024-11-30T02:42:57,484][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [mapper-version]
    [2024-11-30T02:42:57,484][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [mapper-extras]
    [2024-11-30T02:42:57,484][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [apm]
    [2024-11-30T02:42:57,484][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-rollup]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [percolator]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-stack]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [data-streams]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [reindex]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [rank-eval]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-security]
    [2024-11-30T02:42:57,485][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [blob-cache]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [searchable-snapshots]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-slm]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-geoip-enterprise-downloader]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [snapshot-based-recoveries]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-watcher]
    [2024-11-30T02:42:57,486][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [old-lucene-versions]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-ilm]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-voting-only-node]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-inference]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-deprecation]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-fleet]
    [2024-11-30T02:42:57,487][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-profiling]
    [2024-11-30T02:42:57,488][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-aggregate-metric]
    [2024-11-30T02:42:57,488][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-downsample]
    [2024-11-30T02:42:57,488][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-geoip]
    [2024-11-30T02:42:57,488][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-write-load-forecaster]
    [2024-11-30T02:42:57,488][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [search-business-rules]
    [2024-11-30T02:42:57,489][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [wildcard]
    [2024-11-30T02:42:57,489][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [ingest-attachment]
    [2024-11-30T02:42:57,489][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-apm-data]
    [2024-11-30T02:42:57,489][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-sql]
    [2024-11-30T02:42:57,489][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [unsigned-long]
    [2024-11-30T02:42:57,490][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-async]
    [2024-11-30T02:42:57,490][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [runtime-fields-common]
    [2024-11-30T02:42:57,490][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [vector-tile]
    [2024-11-30T02:42:57,490][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [lang-expression]
    [2024-11-30T02:42:57,490][INFO ][o.e.p.PluginsService     ] [localhost] loaded module [x-pack-eql]
    [2024-11-30T02:42:58,881][INFO ][o.e.e.NodeEnvironment    ] [localhost] using [1] data paths, mounts [[/ (/dev/mapper/centos-root)]], net usable_space [16.4gb], net total_space [37.3gb], types [xfs]
    [2024-11-30T02:42:58,882][INFO ][o.e.e.NodeEnvironment    ] [localhost] heap size [1gb], compressed ordinary object pointers [true]
    [2024-11-30T02:42:58,947][INFO ][o.e.n.Node               ] [localhost] node name [localhost], node ID [hmJ0aPlCSLa1TiXYx-VOZA], cluster name [elasticsearch], roles [ml, data_hot, transform, data_content, data_warm, master, remote_cluster_client, data, data_cold, ingest, data_frozen]
    [2024-11-30T02:43:03,624][INFO ][o.e.i.r.RecoverySettings ] [localhost] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]
    [2024-11-30T02:43:03,845][INFO ][o.e.f.FeatureService     ] [localhost] Registered local node features [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.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, geoip.downloader.database.configuration, health.dsl.info, health.extended_repository_indicator, knn_retriever_supported, license-trial-independent-version, mapper.index_sorting_on_nested, mapper.keyword_dimension_ignore_above, mapper.pass_through_priority, mapper.range.null_values_off_by_one_fix, mapper.source.synthetic_source_fallback, mapper.track_ignored_source, mapper.vectors.bit_vectors, mapper.vectors.int4_quantization, rest.capabilities_action, retrievers_supported, rrf_retriever_supported, script.hamming, search.vectors.k_param_supported, security.migration_framework, security.roles_metadata_flattened, standard_retriever_supported, stats.include_disk_thresholds, text_similarity_reranker_retriever_supported, unified_highlighter_matched_fields, usage.data_tiers.precalculate_stats]
    [2024-11-30T02:43:04,404][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [localhost] [controller/375958] [Main.cc@123] controller (64 bit): Version 8.15.0 (Build 64f00009177815) Copyright (c) 2024 Elasticsearch BV
    [2024-11-30T02:43:04,708][INFO ][o.e.t.a.APM              ] [localhost] Sending apm metrics is disabled
    [2024-11-30T02:43:04,709][INFO ][o.e.t.a.APM              ] [localhost] Sending apm tracing is disabled
    [2024-11-30T02:43:04,752][INFO ][o.e.x.s.Security         ] [localhost] Security is enabled
    [2024-11-30T02:43:05,183][INFO ][o.e.x.s.a.s.FileRolesStore] [localhost] parsed [0] roles from file [/www/server/elasticsearch/config/roles.yml]
    [2024-11-30T02:43:05,394][INFO ][o.e.x.s.InitialNodeSecurityAutoConfiguration] [localhost] Auto-configuration will not generate a password for the elastic built-in superuser, as we cannot  determine if there is a terminal attached to the elasticsearch process. You can use the `bin/elasticsearch-reset-password` tool to set the password for the elastic user.
    [2024-11-30T02:43:05,691][INFO ][o.e.x.w.Watcher          ] [localhost] Watcher initialized components at 2024-11-29T19:43:05.691Z
    [2024-11-30T02:43:05,779][INFO ][o.e.x.p.ProfilingPlugin  ] [localhost] Profiling is enabled
    [2024-11-30T02:43:05,800][INFO ][o.e.x.p.ProfilingPlugin  ] [localhost] profiling index templates will not be installed or reinstalled
    [2024-11-30T02:43:05,806][INFO ][o.e.x.a.APMPlugin        ] [localhost] APM ingest plugin is enabled
    [2024-11-30T02:43:05,845][INFO ][o.e.x.a.APMIndexTemplateRegistry] [localhost] APM index template registry is enabled
    [2024-11-30T02:43:06,473][INFO ][o.e.t.n.NettyAllocator   ] [localhost] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=1mb, factors={es.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=4mb, heap_size=1gb}]
    [2024-11-30T02:43:06,554][INFO ][o.e.d.DiscoveryModule    ] [localhost] using discovery type [multi-node] and seed hosts providers [settings]
    [2024-11-30T02:43:08,137][INFO ][o.e.n.Node               ] [localhost] initialized
    [2024-11-30T02:43:08,138][INFO ][o.e.n.Node               ] [localhost] starting ...
    [2024-11-30T02:43:08,156][INFO ][o.e.x.s.c.f.PersistentCache] [localhost] persistent cache index loaded
    [2024-11-30T02:43:08,157][INFO ][o.e.x.d.l.DeprecationIndexingComponent] [localhost] deprecation component started
    [2024-11-30T02:43:08,263][INFO ][o.e.t.TransportService   ] [localhost] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
    [2024-11-30T02:43:08,588][WARN ][o.e.b.BootstrapChecks    ] [localhost] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]; for more information see [https://www.elastic.co/guide/en/elasticsearch/reference/8.15/_maximum_map_count_check.html]
    [2024-11-30T02:43:08,590][WARN ][o.e.c.c.ClusterBootstrapService] [localhost] this node is locked into cluster UUID [Q9-t1k_oT7SwMjms575YFw] but [cluster.initial_master_nodes] is set to [localhost]; 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.15/important-settings.html#initial_master_nodes
    [2024-11-30T02:43:08,768][INFO ][o.e.c.s.MasterService    ] [localhost] elected-as-master ([1] nodes joined in term 7)[_FINISH_ELECTION_, {localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{0cqGvfvNSEeGXqzMDjJIOg}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000} completing election], term: 7, version: 89, delta: master node changed {previous [], current [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{0cqGvfvNSEeGXqzMDjJIOg}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]}
    [2024-11-30T02:43:08,821][INFO ][o.e.c.s.ClusterApplierService] [localhost] master node changed {previous [], current [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{0cqGvfvNSEeGXqzMDjJIOg}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}]}, term: 7, version: 89, reason: Publication{term=7, version=89}
    [2024-11-30T02:43:08,870][INFO ][o.e.h.AbstractHttpServerTransport] [localhost] publish_address {220.158.233.215:9200}, bound_addresses {[::]:9200}
    [2024-11-30T02:43:08,872][INFO ][o.e.c.c.NodeJoinExecutor ] [localhost] node-join: [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{0cqGvfvNSEeGXqzMDjJIOg}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}] with reason [completing election]
    [2024-11-30T02:43:08,887][INFO ][o.e.n.Node               ] [localhost] started {localhost}{hmJ0aPlCSLa1TiXYx-VOZA}{0cqGvfvNSEeGXqzMDjJIOg}{localhost}{127.0.0.1}{127.0.0.1:9300}{cdfhilmrstw}{8.15.0}{7000099-8512000}{ml.max_jvm_size=1073741824, ml.config_version=12.0.0, xpack.installed=true, transform.config_version=10.0.0, ml.machine_memory=8023191552, ml.allocated_processors=6, ml.allocated_processors_double=6.0}
    [2024-11-30T02:43:09,306][INFO ][o.e.x.s.a.Realms         ] [localhost] license mode is [basic], currently licensed security realms are [reserved/reserved,file/default_file,native/default_native]
    [2024-11-30T02:43:09,310][INFO ][o.e.l.ClusterStateLicenseService] [localhost] license [fe94ad0d-28aa-4c91-b7d8-fb9a86091e72] mode [basic] - valid
    [2024-11-30T02:43:09,312][INFO ][o.e.c.f.AbstractFileWatchingService] [localhost] starting file watcher ...
    [2024-11-30T02:43:09,317][INFO ][o.e.g.GatewayService     ] [localhost] recovered [1] indices into cluster_state
    [2024-11-30T02:43:09,316][INFO ][o.e.c.f.AbstractFileWatchingService] [localhost] file settings service up and running [tid=70]
    [2024-11-30T02:43:09,318][INFO ][o.e.r.s.FileSettingsService] [localhost] setting file [/www/server/elasticsearch/config/operator/settings.json] not found, initializing [file_settings] as empty
    [2024-11-30T02:43:09,607][INFO ][o.e.h.n.s.HealthNodeTaskExecutor] [localhost] Node [{localhost}{hmJ0aPlCSLa1TiXYx-VOZA}] is selected as the current health node.
    [2024-11-30T02:43:09,666][INFO ][o.e.c.r.a.AllocationService] [localhost] 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]]"

    Now, I have already get elasticsearch to works. But after installed kibana, it shows this error message.

    Can you help me update new versions of ElasticSearch to 8.16 or 8.16.1? as it is needed to configure with kibana client.

      aaP_demo1
      I decided to manually update elasticsearch.
      Verify current elasticsearch version:

      [root@localhost aapanel]# /www/server/elasticsearch/bin/elasticsearch --version
      Version: 8.15.0, Build: tar/1a77947f34deddb41af25e6f0ddb8e830159c179/2024-08-05T10:05:34.233336849Z, JVM: 22.0.1

      Download latest elasticsearch version:

      [root@localhost aapanel]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.16.1-linux-x86_64.tar.gz
      --2024-11-30 12:31:54--  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.16.1-linux-x86_64.tar.gz
      Resolving artifacts.elastic.co (artifacts.elastic.co)... 34.120.127.130, 2600:1901:0:1d7::
      Connecting to artifacts.elastic.co (artifacts.elastic.co)|34.120.127.130|:443... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 635240896 (606M) [application/x-gzip]
      Saving to: ‘elasticsearch-8.16.1-linux-x86_64.tar.gz’
      
      elasticsearch-8.16.1-linux-x86_64.tar.gz                         100%[========================================================================================================================================================>] 605.81M  3.69MB/s    in 3m 0s
      
      2024-11-30 12:34:56 (3.36 MB/s) - ‘elasticsearch-8.16.1-linux-x86_64.tar.gz’ saved [635240896/635240896]

      Copy elasticsearch data and config folders & files to backup directory:

      [root@localhost aapanel]# cp -r /www/server/elasticsearch/data /www/backup/data.bak
      [root@localhost aapanel]# cp -r /www/server/elasticsearch/config /www/backup/config.bak

      Extract new elasticsearch versions:

      [root@localhost aapanel]# tar -xvzf elasticsearch-8.16.1-linux-x86_64.tar.gz
      [root@localhost aapanel]# ls
      elasticsearch-8.16.1  elasticsearch-8.16.1-linux-x86_64.tar.gz  install.sh

      Move old elasticsearch configuration files:

      [root@localhost aapanel]# mv /www/server/elasticsearch /www/server/elasticsearch-old

      Move extracted files to working elasticsearch directory:

      [root@localhost aapanel]# mv elasticsearch-8.16.1 /www/server/elasticsearch

      Restore old configuration files:

      [root@localhost aapanel]# cp -r /www/server/elasticsearch-old/config/* /www/server/elasticsearch/config/
      cp: overwrite '/www/server/elasticsearch/config/elasticsearch-plugins.example.yml'? y
      cp: overwrite '/www/server/elasticsearch/config/elasticsearch.yml'? y
      cp: overwrite '/www/server/elasticsearch/config/jvm.options'? y
      cp: overwrite '/www/server/elasticsearch/config/log4j2.properties'? y
      cp: overwrite '/www/server/elasticsearch/config/role_mapping.yml'? y
      cp: overwrite '/www/server/elasticsearch/config/roles.yml'? y
      cp: overwrite '/www/server/elasticsearch/config/users'? y
      cp: overwrite '/www/server/elasticsearch/config/users_roles'? y
      [root@localhost aapanel]# cp /www/server/elasticsearch-old/config/jvm.options /www/server/elasticsearch/config/
      cp: overwrite '/www/server/elasticsearch/config/jvm.options'? y

      Set elasticsearch permission to elasticsearch working directory:

      [root@localhost aapanel]# chown -R elasticsearch:elasticsearch /www/server/elasticsearch

      Restart the elasticsearch service:

      [root@localhost aapanel]# sudo systemctl start elasticsearch

      Verify new elasticsearch version:

      [root@localhost aapanel]# /www/server/elasticsearch/bin/elasticsearch --version
      Version: 8.16.1, Build: tar/ffe992aa682c1968b5df375b5095b3a21f122bf3/2024-11-19T16:00:31.793213192Z, JVM: 23