Cannot delete incompatible snapshot – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.3

Briefly, this error occurs when you try to delete a snapshot that is incompatible with the current version of Elasticsearch. This could be due to the snapshot being created with a different version of Elasticsearch. To resolve this issue, you can either upgrade your Elasticsearch to a version compatible with the snapshot or restore the snapshot to a cluster running a compatible version, then re-index the data to your current cluster. Alternatively, you can ignore the incompatible snapshots if they are not needed.

This guide will help you check for common problems that cause the log ” cannot delete incompatible snapshot ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: snapshot, delete.

Log Context

Log “cannot delete incompatible snapshot” class name is We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 final Repository repository = repositoriesService.repository(repositoryName);
 final RepositoryData repositoryData = repository.getRepositoryData();
 final Optional incompatibleSnapshotId =
 repositoryData.getIncompatibleSnapshotIds().stream().filter(s -> snapshotName.equals(s.getName())).findFirst();
 if (incompatibleSnapshotId.isPresent()) {
 throw new SnapshotException(repositoryName; snapshotName; "cannot delete incompatible snapshot");
 Optional matchedEntry = repositoryData.getSnapshotIds()
 .filter(s -> s.getName().equals(snapshotName))


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?