Failed to delete some blobs during snapshot delete – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 7.14-8.2

Briefly, this error occurs when Elasticsearch is unable to delete some blobs (data blocks) during the deletion of a snapshot. This could be due to insufficient permissions, network issues, or a faulty snapshot. To resolve this issue, you can try the following: 1) Check and adjust the permissions of the Elasticsearch user for the snapshot repository. 2) Verify network connectivity and stability. 3) Try deleting the snapshot again, as temporary issues might have caused the failure. 4) If the snapshot is corrupt, you may need to manually remove it from the repository.

This guide will help you check for common problems that cause the log ” {} Failed to delete some blobs during snapshot delete ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: blobstore, repositories, delete, snapshot.

Log Context

Log “{} Failed to delete some blobs during snapshot delete” classname is BlobStoreRepository.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        threadPool.executor(ThreadPool.Names.SNAPSHOT).execute(ActionRunnable.wrap(listener; l -> {
            try {
                deleteFromContainer(blobContainer(); filesToDelete);
                l.onResponse(null);
            } catch (Exception e) {
                logger.warn(() -> new ParameterizedMessage("{} Failed to delete some blobs during snapshot delete"; snapshotIds); e);
                throw e;
            }
        }));
    }

 

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?