Can t create clone of shardId for snapshot – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.1-7.13

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 Elasticsearch operation.

Briefly, this error occurs when Elasticsearch is unable to clone a shard for creating a snapshot. This could be due to insufficient disk space, network issues, or problems with the underlying file system. To resolve this, you can try freeing up disk space, checking network connectivity, or repairing the file system. Additionally, ensure that the Elasticsearch cluster is in a healthy state and that the shard is not corrupted. If the shard is corrupted, you may need to restore it from a previous snapshot.

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 create clone of [” + shardId + “] for snapshot [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: repositories, shard, snapshot, blobstore.

Log Context

Log “Can’t create clone of [” + shardId + “] for snapshot [” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 if (sourceFiles != null && existingTargetFiles != null) {
 if (sourceFiles == null) {
 throw new RepositoryException(; "Can't create clone of [" + shardId + "] for snapshot ["
 + target + "]. The source snapshot [" + source + "] was not found in the shard metadata.");
 if (existingTargetFiles != null) {
 if (existingTargetFiles.isSame(sourceFiles)) {
 return new ShardSnapshotResult(


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?