ElasticSearch not starting after configuring ip address ov VM

Hi folks, just started my experence with ES - one challenge I now have:
Elasticsearch working on localhost - when editing elasticsearch.yml and adding my ip address of the vm (VirtualBox) - elasticsearch is not starting anymore.

elasticsearch.yml:

Blockquote

---------------------------------- Network -----------------------------------

By default Elasticsearch is only accessible on localhost. Set a different

address here to expose this node on the network:

#network.bind_host: AlmaLinux.fritz.box
network.host: 0.0.0.0

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: ["0.0.0.0", "192.168.2.250"]

Bootstrap the cluster using an initial set of master-eligible nodes:

#cluster.initial_master_nodes: ["node-1", "node-2"]

Blockquote

ifconfig infos:
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.90 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 fe80::33b4:ee35:ecdc:737d prefixlen 64 scopeid 0x20
inet6 2a02:810c:4cbf:e21c:fa9e:5cdd:6224:820d prefixlen 64 scopeid 0x0
ether 00:0c:29:59:cf:86 txqueuelen 1000 (Ethernet)
RX packets 135084 bytes 66094241 (63.0 MiB)
RX errors 0 dropped 26355 overruns 0 frame 0
TX packets 16955 bytes 2266377 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Lokale Schleife)
RX packets 1464382 bytes 183583693 (175.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1464382 bytes 183583693 (175.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:08:75:83 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

What do the logs show?

please see latest logfile when trying to start elasticsearch service:

[2021-05-12T02:15:20,173][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] stopping ...
[2021-05-12T02:15:20,204][INFO ][o.e.x.w.WatcherService   ] [AlmaLinux.fritz.box] stopping watch service, reason [shutdown initiated]
[2021-05-12T02:15:20,205][INFO ][o.e.x.w.WatcherLifeCycleService] [AlmaLinux.fritz.box] watcher has stopped and shutdown
[2021-05-12T02:15:20,215][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [AlmaLinux.fritz.box] [controller/11486] [Main.cc@169] ML controller exiting
[2021-05-12T02:15:20,224][INFO ][o.e.x.m.p.NativeController] [AlmaLinux.fritz.box] Native controller process has stopped - no new native processes can be started
[2021-05-12T02:15:20,538][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] stopped
[2021-05-12T02:15:20,538][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] closing ...
[2021-05-12T02:15:20,639][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] closed
[2021-05-12T02:16:18,031][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] version[7.12.1], pid[19136], build[default/rpm/3186837139b9c6b6d23c3200870651f10d3343b7/2021-04-20T20:56:39.040728659Z], OS[Linux/4.18.0-240.el8.x86_64/amd64], JVM[AdoptOpenJDK/OpenJDK 64-Bit Server VM/16/16+36]
[2021-05-12T02:16:18,034][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]
[2021-05-12T02:16:18,034][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] JVM arguments [-Xshare:auto, -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, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-1223702203170850328, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Xms2610m, -Xmx2610m, -XX:MaxDirectMemorySize=1368391680, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch, -Des.distribution.flavor=default, -Des.distribution.type=rpm, -Des.bundled_jdk=true]
[2021-05-12T02:16:22,378][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [aggs-matrix-stats]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [analysis-common]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [constant-keyword]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [flattened]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [frozen-indices]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [ingest-common]
[2021-05-12T02:16:22,379][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [ingest-geoip]
[2021-05-12T02:16:22,380][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [ingest-user-agent]
[2021-05-12T02:16:22,380][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [kibana]
[2021-05-12T02:16:22,380][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [lang-expression]
[2021-05-12T02:16:22,380][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [lang-mustache]
[2021-05-12T02:16:22,380][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [lang-painless]
[2021-05-12T02:16:22,381][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [mapper-extras]
[2021-05-12T02:16:22,381][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [mapper-version]
[2021-05-12T02:16:22,381][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [parent-join]
[2021-05-12T02:16:22,381][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [percolator]
[2021-05-12T02:16:22,381][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [rank-eval]
[2021-05-12T02:16:22,382][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [reindex]
[2021-05-12T02:16:22,382][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [repositories-metering-api]
[2021-05-12T02:16:22,382][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [repository-encrypted]
[2021-05-12T02:16:22,382][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [repository-url]
[2021-05-12T02:16:22,382][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [search-business-rules]
[2021-05-12T02:16:22,383][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [searchable-snapshots]
[2021-05-12T02:16:22,383][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [snapshot-repo-test-kit]
[2021-05-12T02:16:22,383][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [spatial]
[2021-05-12T02:16:22,383][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [systemd]
[2021-05-12T02:16:22,384][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [transform]
[2021-05-12T02:16:22,384][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [transport-netty4]
[2021-05-12T02:16:22,384][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [unsigned-long]
[2021-05-12T02:16:22,384][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [vectors]
[2021-05-12T02:16:22,384][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [wildcard]
[2021-05-12T02:16:22,385][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-aggregate-metric]
[2021-05-12T02:16:22,385][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-analytics]
[2021-05-12T02:16:22,385][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-async]
[2021-05-12T02:16:22,385][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-async-search]
[2021-05-12T02:16:22,385][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-autoscaling]
[2021-05-12T02:16:22,392][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-ccr]
[2021-05-12T02:16:22,393][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-core]
[2021-05-12T02:16:22,393][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-data-streams]
[2021-05-12T02:16:22,393][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-deprecation]
[2021-05-12T02:16:22,393][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-enrich]
[2021-05-12T02:16:22,394][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-eql]
[2021-05-12T02:16:22,394][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-fleet]
[2021-05-12T02:16:22,394][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-graph]
[2021-05-12T02:16:22,394][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-identity-provider]
[2021-05-12T02:16:22,394][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-ilm]
[2021-05-12T02:16:22,395][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-ingest]
[2021-05-12T02:16:22,395][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-logstash]
[2021-05-12T02:16:22,395][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-ml]
[2021-05-12T02:16:22,395][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-monitoring]
[2021-05-12T02:16:22,395][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-ql]
[2021-05-12T02:16:22,396][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-rollup]
[2021-05-12T02:16:22,396][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-runtime-fields]
[2021-05-12T02:16:22,396][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-security]
[2021-05-12T02:16:22,396][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-sql]
[2021-05-12T02:16:22,396][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-stack]
[2021-05-12T02:16:22,397][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-text-structure]
[2021-05-12T02:16:22,397][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-voting-only-node]
[2021-05-12T02:16:22,397][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] loaded module [x-pack-watcher]
[2021-05-12T02:16:22,398][INFO ][o.e.p.PluginsService     ] [AlmaLinux.fritz.box] no plugins loaded
[2021-05-12T02:16:22,461][INFO ][o.e.e.NodeEnvironment    ] [AlmaLinux.fritz.box] using [1] data paths, mounts [[/ (/dev/mapper/almalinux-root)]], net usable_space [9.6gb], net total_space [16.9gb], types [xfs]
[2021-05-12T02:16:22,461][INFO ][o.e.e.NodeEnvironment    ] [AlmaLinux.fritz.box] heap size [2.5gb], compressed ordinary object pointers [true]
[2021-05-12T02:16:22,585][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] node name [AlmaLinux.fritz.box], node ID [qSf37iAzSRu0EX8ErAgAvg], cluster name [elasticsearch], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]
[2021-05-12T02:16:29,350][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [AlmaLinux.fritz.box] [controller/19350] [Main.cc@117] controller (64 bit): Version 7.12.1 (Build 4172997de5701c) Copyright (c) 2021 Elasticsearch BV
[2021-05-12T02:16:30,126][INFO ][o.e.x.s.a.s.FileRolesStore] [AlmaLinux.fritz.box] parsed [0] roles from file [/etc/elasticsearch/roles.yml]
[2021-05-12T02:16:32,872][INFO ][o.e.t.NettyAllocator     ] [AlmaLinux.fritz.box] 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}]
[2021-05-12T02:16:33,009][INFO ][o.e.d.DiscoveryModule    ] [AlmaLinux.fritz.box] using discovery type [zen] and seed hosts providers [settings]
[2021-05-12T02:16:33,926][INFO ][o.e.g.DanglingIndicesState] [AlmaLinux.fritz.box] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2021-05-12T02:16:34,681][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] initialized
[2021-05-12T02:16:34,682][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] starting ...
[2021-05-12T02:16:34,704][INFO ][o.e.x.s.c.f.PersistentCache] [AlmaLinux.fritz.box] persistent cache index loaded
[2021-05-12T02:16:42,007][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] stopping ...
[2021-05-12T02:16:57,202][INFO ][o.e.t.TransportService   ] [AlmaLinux.fritz.box] publish_address {192.168.2.90:9300}, bound_addresses {[::]:9300}
[2021-05-12T02:16:57,270][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] stopped
[2021-05-12T02:16:57,270][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] closing ...
[2021-05-12T02:16:57,301][INFO ][o.e.n.Node               ] [AlmaLinux.fritz.box] closed

From what I can see, it's starting fine;

And then something external is asking it to stop;

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