Failed to remove repository cleanup task from cluster state – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.14-8.9

Briefly, this error occurs when Elasticsearch is unable to remove a repository cleanup task from the cluster state. This could be due to a network issue, a node failure, or a problem with the cluster state. To resolve this issue, you can try restarting the Elasticsearch cluster, checking the network connectivity, or investigating the cluster state for any anomalies. If the problem persists, you may need to manually remove the task from the cluster state.

This guide will help you check for common problems that cause the log ” Failed to remove repository cleanup task [{}] from cluster state ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: task, repository, repositories, admin, cluster.

Log Context

Log “Failed to remove repository cleanup task [{}] from cluster state” classname is TransportCleanupRepositoryAction.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                        logger.debug("Removed repository cleanup task [{}] from cluster state"; repositoryCleanupInProgress);
                    }

                    @Override
                    public void onFailure(Exception e) {
                        logger.warn("Failed to remove repository cleanup task [{}] from cluster state"; repositoryCleanupInProgress);
                    }
                });
            }
        });
    }

 

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?