Can't connect from another pc

Hi all,
i'm neewbi with Elasticsearch. I'm trying ton install the service on a windows machine. The service should be reachable from the firewall.
With the basic setup the service is reacheable only from the same PC. I've checked guides and document on the web and seams that I've to modify the "elasticsearch.yml" file, and set the field "nettwork.host" with 0.0.0.0 or a IP of one of my NIC. The problem is that when i enable this field and start Elasticsearch service, it's stop after a while. I've reported the error below:

[2024-11-13 10:02:20] [debug] ( javajni.c:419 ) [ 1708] JNI_GetCreatedJavaVMs...
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[0] -XX:+UseSerialGC
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[1] -Des.path.home=C:\elasticsearch-8.16.0
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[2] -Des.path.conf=C:\elasticsearch-8.16.0\config
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[3] -Des.distribution.type=zip
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[4] -Dcli.name=windows-service-daemon
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[5] -Dcli.libs=lib/tools/server-cli,lib/tools/windows-service-cli
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[6] -Djava.class.path=C:\elasticsearch-8.16.0/lib/ecs-logging-core-1.2.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-cli-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-core-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-geo-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-grok-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-log4j-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-logging-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-lz4-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-native-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-plugin-analysis-api-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-plugin-api-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-secure-sm-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-simdvec-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-tdigest-8.16.0.jar;C:\elasticsearch-8.16.0/lib/elasticsearch-x-content-8.16.0.jar;C:\elasticsearch-8.16.0/lib/HdrHistogram-2.1.9.jar;C:\elasticsearch-8.16.0/lib/hppc-0.8.1.jar;C:\elasticsearch-8.16.0/lib/jcodings-1.0.44.jar;C:\elasticsearch-8.16.0/lib/joni-2.1.29.jar;C:\elasticsearch-8.16.0/lib/jopt-simple-5.0.2.jar;C:\elasticsearch-8.16.0/lib/log4j-api-2.19.0.jar;C:\elasticsearch-8.16.0/lib/log4j2-ecs-layout-1.2.0.jar;C:\elasticsearch-8.16.0/lib/lucene-analysis-common-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-backward-codecs-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-core-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-facet-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-grouping-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-highlighter-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-join-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-memory-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-misc-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-queries-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-queryparser-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-sandbox-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lucene-suggest-9.12.0.jar;C:\elasticsearch-8.16.0/lib/lz4-java-1.8.0.jar;C:\elasticsearch-8.16.0/lib/cli-launcher/cli-launcher-8.16.0.jar
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[7] exit
[2024-11-13 10:02:20] [debug] ( javajni.c:817 ) [ 3796] JVM Option[8] abort
[2024-11-13 10:02:20] [debug] ( javajni.c:1062) [ 3796] Java worker thread started for org/elasticsearch/launcher/CliToolLauncher:main
[2024-11-13 10:02:20] [debug] ( javajni.c:1068) [ 3796] JNI calling static void method org/elasticsearch/launcher/CliToolLauncher:main
[2024-11-13 10:02:22] [debug] ( prunsrv.c:1486) [ 1708] Java started 'org/elasticsearch/launcher/CliToolLauncher'.
[2024-11-13 10:02:22] [info]  ( prunsrv.c:1585) [ 1708] Service started in 1304 milliseconds.
[2024-11-13 10:02:22] [debug] ( prunsrv.c:1123) [ 1708] reportServiceStatusE: dwCurrentState = 4 (SERVICE_RUNNING), dwWin32ExitCode = 0, dwWaitHint = 0 milliseconds, dwServiceSpecificExitCode = 0.
[2024-11-13 10:02:22] [debug] ( prunsrv.c:1832) [ 1708] Waiting for worker to finish...
[2024-11-13 10:02:22] [debug] ( javajni.c:1157) [ 1708] apxJavaWait -> WaitForSingleObject (0x00000000000001E0, -1 milliseconds) (-1=INFINITE)...
[2024-11-13 10:02:56] [debug] ( javajni.c:566 ) [ 5188] Exit hook with exit code 78
[2024-11-13 10:02:56] [debug] ( prunsrv.c:1199) [ 5188] Start exit hook called...
[2024-11-13 10:02:56] [debug] ( prunsrv.c:1200) [ 5188] JVM exit code: 78.

I don't know what to do.
Help me please!! :sob: _face:

From Elastic Search to Elasticsearch

Welcome!

I think you should also have the Elasticsearch logs somewhere. Could you share them?

Most likely it's a bootstrap checks problem. See Bootstrap Checks | Elasticsearch Guide [8.16] | Elastic once you checked the logs.

Thank you for the answare and for the link.
I've added the record discovery.type: single-node and the service started correclty!
Thanks again

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