Two nodes, set on the same machine, can't see each other - Dev purposes

Hi,
We have a problem in our organization. We are trying to add second node, to existing cluster, on the same machine. I know it's not a good solution, but we only do it for development purposes. The version that we are using is: 7.8
Our problem is that we are actually able to run two nodes on the same machine, but they don't detect each other - that is, when creating a node, each is created with totally new cluster ID, and they are not interconnected with each other.
When it comes to the configuration file, we only use the basic settings, as two nodes are running on the same machine, and there is no need to set up advanced stuff.
The parameters that we changed, is the node name, network host, we set up paths, node.max_local_storage_nodes: 2. Cluster name is the same for both nodes, and http ports are established automatically.
Is there any step that we skip that causes the two nodes do not find each other? Do you have any ideas? Thanks in advance!

Cluster

cluster.name: uipath-test
cluster.initial_master_nodes: 2

``````````````` Node ````````````````

node.name: node-2
node.max_local_storage_nodes: 2

````````````````Paths ``````````````````

path.data: D:\Elasticsearch\data
path.logs: D:\Elasticsearch\logs

#``````````````````Network `````````````````
network.host: [..........]
http.port: 9201
#``````````````Discovery ````````````````
transport.tcp.port: 9301

This parameter is deprecated, don't use it, it's trappy because it requires the nodes to race against each other when starting up. Instead give each node a different value for path.data.

You have not set cluster.initial_master_nodes correctly, it should be a list of the node names:

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

You'll need to fix this and delete the contents of D:\Elasticsearch\data to reset everything.

Thank you! it partially worked for us and it allowed us to go further, but now we have encountered a bit of another error. We just changed network host address from localhost to our destination one, and we get the error as below:

{​​​​​​​​"statusCode":503,"error":"Service Unavailable","message":"blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];: [cluster_block_exception] blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];"}​​​​​​​​

I think there'll be more helpful information in the logs.

[2021-01-21T15:10:36,081][WARN ][r.suppressed             ] [node-1] path: /.kibana/_search, params: {rest_total_hits_as_int=true, size=20, index=.kibana, from=0}
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
    at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:189) ~[elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:175) ~[elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:468) ~[elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:403) ~[elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.search.TransportSearchAction.lambda$doExecute$3(TransportSearchAction.java:213) ~[elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:114) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:87) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:244) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:88) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:179) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:124) [x-pack-security-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:155) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:83) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.action.RestCancellableNodeClient.doExecute(RestCancellableNodeClient.java:90) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:409) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$2(RestSearchAction.java:117) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:115) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:81) [x-pack-security-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:236) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:318) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:318) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:372) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:308) [elasticsearch-7.9.2.jar:7.9.2]
    at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42) [transport-netty4-client-7.9.2.jar:7.9.2]
    at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:28) [transport-netty4-client-7.9.2.jar:7.9.2]
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:58) [transport-netty4-client-7.9.2.jar:7.9.2]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
    at java.lang.Thread.run(Thread.java:832) [?:?]

I think this is not the only message in the logs. This alone doesn't tell us much.

1st part

[2021-01-21T15:09:54,195][INFO ][o.e.n.Node               ] [node-1] JVM home [C:\Program Files\Java\jdk-15.0.1]
[2021-01-21T15:09:54,195][INFO ][o.e.n.Node               ] [node-1] 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, -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, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=C:\{}\AppData\Local\Temp\2\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=536870912, -Delasticsearch, -Des.path.home=D:\elasticsearch_node#1\elasticsearch-7.9.2, -Des.path.conf=D:\elasticsearch_node#1\elasticsearch-7.9.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip, -Des.bundled_jdk=true]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [aggs-matrix-stats]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [analysis-common]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [constant-keyword]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [flattened]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [frozen-indices]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-common]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-geoip]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [ingest-user-agent]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [kibana]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-expression]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-mustache]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [lang-painless]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [mapper-extras]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [parent-join]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [percolator]
[2021-01-21T15:09:57,726][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [rank-eval]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [reindex]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [repository-url]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [search-business-rules]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [searchable-snapshots]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [spatial]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [tasks]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transform]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [transport-netty4]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [vectors]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [wildcard]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-analytics]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-async-search]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-autoscaling]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ccr]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-core]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-data-streams]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-deprecation]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-enrich]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-eql]
[2021-01-21T15:09:57,741][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-graph]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-identity-provider]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ilm]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-logstash]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ml]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-monitoring]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-ql]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-rollup]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-security]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-sql]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-stack]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-voting-only-node]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] loaded module [x-pack-watcher]
[2021-01-21T15:09:57,757][INFO ][o.e.p.PluginsService     ] [node-1] no plugins loaded
[2021-01-21T15:09:57,960][INFO ][o.e.e.NodeEnvironment    ] [node-1] using [1] data paths, mounts [[(D:)]], net usable_space [226.1gb], net total_space [499.9gb], types [NTFS]
[2021-01-21T15:09:57,960][INFO ][o.e.e.NodeEnvironment    ] [node-1] heap size [1gb], compressed ordinary object pointers [true]
[2021-01-21T15:09:58,023][INFO ][o.e.n.Node               ] [node-1] node name [node-1], node ID [iSMEBOs0QGi3lyDohk9jSg], cluster name [test]
[2021-01-21T15:10:02,703][INFO ][o.e.x.m.p.l.CppLogMessageHandler] [node-1] [controller/5784] [Main.cc@114] controller (64 bit): Version 7.9.2 (Build 6a60f0cf2dd5a5) Copyright (c) 2020 Elasticsearch BV
[2021-01-21T15:10:03,500][INFO ][o.e.x.s.a.s.FileRolesStore] [node-1] parsed [0] roles from file [D:\elasticsearch_node#1\elasticsearch-7.9.2\config\roles.yml]
[2021-01-21T15:10:04,643][INFO ][o.e.t.NettyAllocator     ] [node-1] creating NettyAllocator with the following configs: [name=unpooled, factors={es.unsafe.use_unpooled_allocator=false, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=1gb}]
[2021-01-21T15:10:04,712][INFO ][o.e.d.DiscoveryModule    ] [node-1] using discovery type [zen] and seed hosts providers [settings]
[2021-01-21T15:10:05,150][WARN ][o.e.g.DanglingIndicesState] [node-1] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
[2021-01-21T15:10:05,587][INFO ][o.e.n.Node               ] [node-1] initialized
[2021-01-21T15:10:05,587][INFO ][o.e.n.Node               ] [node-1] starting ...
[2021-01-21T15:10:05,712][INFO ][o.e.t.TransportService   ] [node-1] publish_address {[cleared_out]:9300}, bound_addresses {[cleared_out]:9300}
[2021-01-21T15:10:05,900][INFO ][o.e.b.BootstrapChecks    ] [node-1] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2021-01-21T15:10:15,937][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1, node-2] to bootstrap a cluster: have discovered [{node-1}{iSMEBOs0QGi3lyDohk...}{ml.machine_memory=17179332608, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2021-01-21T15:10:25,952][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1, node-2] to bootstrap a cluster: have discovered [{node-1}{iSMEBOs0QGi3lyDohk...}{ml.machine_memory=17179332608, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0
[2021-01-21T15:10:35,943][WARN ][o.e.n.Node               ] [node-1] timed out while waiting for initial discovery state - timeout: 30s
[2021-01-21T15:10:35,943][INFO ][o.e.h.AbstractHttpServerTransport] [node-1] publish_address {[cleared_out]:9200}, bound_addresses {[cleared_out]:9200}
[2021-01-21T15:10:35,943][INFO ][o.e.n.Node               ] [node-1] started
[2021-01-21T15:10:35,958][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-1] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1, node-2] to bootstrap a cluster: have discovered [{node-1}{iSMEBOs0QG...}{ml.machine_memory=17179332608, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0```

2nd part


[2021-01-21T15:10:36,081][WARN ][r.suppressed             ] [node-1] path: /.kibana/_search, params: {rest_total_hits_as_int=true, size=20, index=.kibana, from=0}
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
	at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:189) ~[elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedRaiseException(ClusterBlocks.java:175) ~[elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.search.TransportSearchAction.executeSearch(TransportSearchAction.java:468) ~[elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.search.TransportSearchAction.executeLocalSearch(TransportSearchAction.java:403) ~[elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.search.TransportSearchAction.lambda$doExecute$3(TransportSearchAction.java:213) ~[elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:114) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.index.query.Rewriteable.rewriteAndFetch(Rewriteable.java:87) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:244) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.search.TransportSearchAction.doExecute(TransportSearchAction.java:88) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:179) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.ActionFilter$Simple.apply(ActionFilter.java:53) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.xpack.security.action.filter.SecurityActionFilter.apply(SecurityActionFilter.java:124) [x-pack-security-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:177) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:155) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:83) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.action.RestCancellableNodeClient.doExecute(RestCancellableNodeClient.java:90) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:409) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.action.search.RestSearchAction.lambda$prepareRequest$2(RestSearchAction.java:117) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.BaseRestHandler.handleRequest(BaseRestHandler.java:115) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:81) [x-pack-security-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:236) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:318) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:318) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:372) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:308) [elasticsearch-7.9.2.jar:7.9.2]
	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42) [transport-netty4-client-7.9.2.jar:7.9.2]
	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:28) [transport-netty4-client-7.9.2.jar:7.9.2]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:58) [transport-netty4-client-7.9.2.jar:7.9.2]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
	at java.lang.Thread.run(Thread.java:832) [?:?]
[2021-01-21T15:11:10,831][INFO ][o.e.x.m.p.NativeController] [node-1] Native controller process has stopped - no new native processes can be started
[2021-01-21T15:11:10,831][INFO ][o.e.b.Bootstrap          ] [node-1] running graceful exit on windows
[2021-01-21T15:11:10,831][INFO ][o.e.n.Node               ] [node-1] stopping ...
[2021-01-21T15:11:10,831][INFO ][o.e.x.w.WatcherService   ] [node-1] stopping watch service, reason [shutdown initiated]
[2021-01-21T15:11:10,831][INFO ][o.e.x.w.WatcherLifeCycleService] [node-1] watcher has stopped and shutdown
[2021-01-21T15:11:11,009][INFO ][o.e.n.Node               ] [node-1] stopped
[2021-01-21T15:11:11,009][INFO ][o.e.n.Node               ] [node-1] closing ...
[2021-01-21T15:11:11,009][INFO ][o.e.n.Node               ] [node-1] closed```

Here you are, any ideas?

Yes, this is slightly more useful:

As it says, it needs to discover nodes node-1 and node-2 but it's only discovered node-1. You've edited this message to remove details like the discovery config which is often the source of this problem -- you're making it really quite difficult to offer useful help!

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