Deleted snapshot failed – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.8-7.17

Briefly, this error occurs when Elasticsearch encounters an issue while trying to delete a snapshot. This could be due to a variety of reasons such as insufficient permissions, a corrupted snapshot, or the snapshot is currently in use. To resolve this issue, you can check and adjust the permissions, try deleting the snapshot again if it was in use, or restore the snapshot if it’s corrupted. If the snapshot is not needed, you can also consider deleting it from the repository.

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

Log Context

Log “deleted snapshot failed” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

                    if (ExceptionsHelper.unwrap(e; NotMasterException.class; FailedToCommitClusterStateException.class) != null) {
                        logger.warn("master failover before deleted snapshot could complete"; e);
                        // Just pass the exception to the transport handler as is so it is retried on the new master
                    } else {
                        logger.warn("deleted snapshot failed"; e);
                            new SnapshotMissingException(runningSnapshot.getRepository(); runningSnapshot.getSnapshotId(); e)