Can t clone index – How to solve this OpenSearch exception

Opster Team

Aug-23, Version: 1-1.1

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch fails to duplicate an existing index, possibly due to insufficient permissions, lack of disk space, or the index being closed. To resolve this, ensure that the user has the necessary permissions to clone the index. Check if there’s enough disk space available for the operation. If the index is closed, it needs to be opened before cloning. Also, ensure that the index you’re trying to clone is not in the process of being deleted or updated.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” Can’t clone index [ ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: index.

Log Context

Log “Can’t clone index [” class name is SnapshotsService.java. We extracted the following from OpenSearch source code for those seeking an in-depth context :

 final GroupedActionListener> shardCountListener =
 new GroupedActionListener<>(allShardCountsListener; indices.size());
 snapshotInfoListener.whenComplete(snapshotInfo -> {
 for (IndexId indexId : indices) {
 if (RestoreService.failed(snapshotInfo; indexId.getName())) {
 throw new SnapshotException(targetSnapshot; "Can't clone index [" + indexId +
 "] because its snapshot was not successful.");
 }
 }
 // 2. step; load the number of shards we have in each index to be cloned from the index metadata.
 repository.getRepositoryData(ActionListener.wrap(repositoryData -> {

 

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?

Get expert answers on Elasticsearch/OpenSearch