Adding node – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-6.8

Briefly, this error occurs when a new node is being added to an existing Elasticsearch cluster but the cluster is unable to accept it. This could be due to network issues, incorrect configuration, or version incompatibility. To resolve this, ensure that the new node has the correct network settings and is compatible with the cluster’s Elasticsearch version. Also, check the cluster’s settings and capacity to ensure it can accommodate additional nodes. If the problem persists, consider reviewing the Elasticsearch logs for more detailed error information.

This guide will help you check for common problems that cause the log ” [{}] adding node [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: node, tribe.

Log Context

Log “[{}] adding node [{}]” classname is TribeService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    tribeAttr.put(TRIBE_NAME_SETTING.getKey(); tribeName);
                    DiscoveryNode discoNode = new DiscoveryNode(tribe.getName(); tribe.getId(); tribe.getEphemeralId();
                            tribe.getHostName(); tribe.getHostAddress(); tribe.getAddress(); unmodifiableMap(tribeAttr); tribe.getRoles();
                            tribe.getVersion());
                    clusterStateChanged = true;
                    logger.info("[{}] adding node [{}]"; tribeName; discoNode);
                    nodes.remove(tribe.getId()); // remove any existing node with the same id but different ephemeral id
                    nodes.add(discoNode);
                }
            }
            if (clusterStateChanged) {

 

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?