Received join request from node but found existing node with same address removing existing node – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when a new node tries to join an Elasticsearch cluster but there’s already an existing node with the same address. This could be due to a node restart or network issues. To resolve this, ensure each node has a unique address. If it’s a network issue, check your network settings and connectivity. If it’s due to a node restart, ensure the node is properly shut down before restarting. Also, check your cluster settings and make sure they are correctly configured.

This guide will help you check for common problems that cause the log ” received join request from node [{}]; but found existing node {} with same address; removing existing node ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: discovery, join, node and request.

Log Context

Log “received join request from node [{}]; but found existing node {} with same address; removing existing node” classname is NodeJoinController.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                         nodeAdded = true;
                        nodesBuilder.put(node);
                        for (DiscoveryNode existingNode : currentState.nodes()) {
                            if (node.address().equals(existingNode.address())) {
                                nodesBuilder.remove(existingNode.id());
                                logger.warn("received join request from node [{}]; but found existing node {} with same address; removing existing node"; node; existingNode);
                            }
                        }
                    }
                }
            }




 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?