Access elastic search globally

Hi,

I installed elastic search 7.0 and locally this is accessible. so in order to access remotely i have set up network.host: 0.0.0.0 in elasticsearch.yml and restart service but it did not work.

below is elasticsearch.yml setting :

bootstrap.memory_lock: false
cluster.name: elasticsearch
http.port: 9200
network.host: 0.0.0.0
node.data: true
node.ingest: true
node.master: true
node.max_local_storage_nodes: 1
node.name: WSXXXXXXT
path.data: G:\ElasticSearch\Data
path.logs: G:\ElasticSearch\logs
transport.tcp.port: 9300
xpack.license.self_generated.type: basic
xpack.security.enabled: false

and in log got below exception:
node validation exception
[1] bootstrap checks failed

Please help me .

I suspect you are failing some bootstrap checks, so have a look in the logs and see what Elasticsearch is complaining about.

1 Like

Hi ,

Thank you for suggestion.

below is log:

[2019-04-30T17:07:36,516][INFO ][o.e.e.NodeEnvironment ] [WSGPPPT] using [1] data paths, mounts [[Data (G:)]], net usable_space [146.8gb], net total_space [149.9gb], types [NTFS]
[2019-04-30T17:07:36,516][INFO ][o.e.e.NodeEnvironment ] [WSGPPPT] heap size [1.9gb], compressed ordinary object pointers [true]
[2019-04-30T17:07:36,532][INFO ][o.e.n.Node ] [WSGPPPT] node name [WSGPPPT], node ID [xpYced3TSMqM18TDcjySig]
[2019-04-30T17:07:36,532][INFO ][o.e.n.Node ] [WSGPPPT] version[7.0.0], pid[7908], build[unknown/unknown/b7e28a7/2019-04-05T22:55:32.697037Z], OS[Windows Server 2016/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_201/25.201-b09]
[2019-04-30T17:07:36,532][INFO ][o.e.n.Node ] [WSGPPPT] JVM home [C:\Program Files\Java\jdk1.8.0_201\jre]
[2019-04-30T17:07:36,532][INFO ][o.e.n.Node ] [WSGPPPT] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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, -Djava.io.tmpdir=C:\Windows\TEMP\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Xmx2048m, -Xms2048m, -Dio.netty.allocator.type=pooled, -Delasticsearch, -Des.path.home=C:\Program Files\Elastic\Elasticsearch\7.0.0, -Des.path.conf=G:\ElasticSearch\config]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [aggs-matrix-stats]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [analysis-common]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [ingest-common]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [ingest-geoip]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [ingest-user-agent]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [lang-expression]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [lang-mustache]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [lang-painless]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [mapper-extras]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [parent-join]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [percolator]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [rank-eval]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [reindex]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [repository-url]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [transport-netty4]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-ccr]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-core]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-deprecation]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-graph]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-ilm]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-logstash]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-ml]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-monitoring]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-rollup]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-security]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-sql]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] loaded module [x-pack-watcher]
[2019-04-30T17:07:40,282][INFO ][o.e.p.PluginsService ] [WSGPPPT] no plugins loaded
[2019-04-30T17:07:46,438][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [WSGPPPT] [controller/3736] [Main.cc@109] controller (64 bit): Version 7.0.0 (Build cdaa022645f38d) Copyright (c) 2019 Elasticsearch BV
[2019-04-30T17:07:47,235][INFO ][o.e.d.DiscoveryModule ] [WSGPPPT] using discovery type [zen] and seed hosts providers [settings]
[2019-04-30T17:07:48,188][INFO ][o.e.n.Node ] [WSGPPPT] initialized
[2019-04-30T17:07:48,188][INFO ][o.e.n.Node ] [WSGPPPT] starting ...
[2019-04-30T17:07:48,392][INFO ][o.e.t.TransportService ] [WSGPPPT] publish_address {10.26.49.142:9300}, bound_addresses {[::]:9300}
[2019-04-30T17:07:48,407][INFO ][o.e.b.BootstrapChecks ] [WSGPPPT] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-04-30T17:07:48,423][ERROR][o.e.b.Bootstrap ] [WSGPPPT] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
[2019-04-30T17:07:48,423][INFO ][o.e.n.Node ] [WSGPPPT] stopping ...
[2019-04-30T17:07:48,438][INFO ][o.e.n.Node ] [WSGPPPT] stopped
[2019-04-30T17:07:48,438][INFO ][o.e.n.Node ] [WSGPPPT] closing ...
[2019-04-30T17:07:48,454][INFO ][o.e.n.Node ] [WSGPPPT] closed
[2019-04-30T17:07:48,470][INFO ][o.e.x.m.p.NativeController] [WSGPPPT] Native controller process has stopped - no new native processes can be started

could you please suggest me what should i do . Earlier i configured elastic search 6.7 remotely on same machine with same setting i was able to access elastic search 6.7 remotely.

Thank you.

Please read https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html

resolved . Thank You.

i need to add below configuration
cluster.initial_master_nodes: WSGPPPT

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