Received cluster state from with a different cluster uuid than local cluster uuid . rejecting – How to solve related issues

Opster Team

Feb-20, Version: 1.7-8.0

Before you begin reading this guide, we recommend you run Elasticsearch Error Check-Up which analyzes 2 JSON files to detect many errors.

Briefly, this error message typically occurs when Elasticsearch receives a cluster state with a different UUID than the local cluster UUID. This error can occur when there are multiple Elasticsearch clusters or when a node is disconnected from the cluster for an extended period. To resolve the issue, you can try restarting the node or the entire cluster to ensure that all nodes have the same cluster state and UUID. You can also check the Elasticsearch configuration to ensure that all nodes are using the same cluster name and that there are no network connectivity issues.

To easily locate the root cause and resolve this issue try AutoOps for Elasticsearch & OpenSearch. It diagnoses problems by analyzing hundreds of metrics collected by a lightweight agent and offers guidance for resolving them. Take a self-guided product tour to see for yourself (no registration required).

This guide will help you check for common problems that cause the log ” Received cluster state from with a different cluster uuid than local cluster uuid . rejecting ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster.

Log Context

Log “received cluster state from {} with a different cluster uuid {} than local cluster uuid {}; rejecting” classname is Coordinator.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 
            final ClusterState localState = coordinationState.get().getLastAcceptedState();

            if (localState.metaData().clusterUUIDCommitted() &&
                localState.metaData().clusterUUID().equals(publishRequest.getAcceptedState().metaData().clusterUUID()) == false) {
                logger.warn("received cluster state from {} with a different cluster uuid {} than local cluster uuid {}; rejecting";
                    sourceNode; publishRequest.getAcceptedState().metaData().clusterUUID(); localState.metaData().clusterUUID());
                throw new CoordinationStateRejectedException("received cluster state from " + sourceNode +
                    " with a different cluster uuid " + publishRequest.getAcceptedState().metaData().clusterUUID() +
                    " than local cluster uuid " + localState.metaData().clusterUUID() + "; rejecting");
            }




 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content