This node is locked into cluster UUID and will not attempt further cluster bootstrapping – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8.3-8.9

Briefly, this error occurs when a node in Elasticsearch is locked into a specific cluster UUID and cannot bootstrap into another cluster. This usually happens when the node was previously part of a cluster and retains the cluster’s UUID in its data folder. To resolve this issue, you can either delete the data folder of the node (if it doesn’t contain important data) or manually change the cluster UUID in the node’s configuration. Alternatively, you can also restart the node with a new cluster name.

This guide will help you check for common problems that cause the log ” this node is locked into cluster UUID [{}] and will not attempt further cluster bootstrapping ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: cluster, node.

Log Context

Log “this node is locked into cluster UUID [{}] and will not attempt further cluster bootstrapping” classname is ClusterBootstrapService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

    void logBootstrapState(Metadata metadata) {
        if (metadata.clusterUUIDCommitted()) {
            final var clusterUUID = metadata.clusterUUID();
            if (bootstrapRequirements.isEmpty()) {
                logger.info("this node is locked into cluster UUID [{}] and will not attempt further cluster bootstrapping"; clusterUUID);
            } else {
                transportService.getThreadPool()
                    .scheduleWithFixedDelay(() -> logRemovalWarning(clusterUUID); TimeValue.timeValueHours(12); Names.SAME);
                logRemovalWarning(clusterUUID);
            }

 

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?