Can not remove in container – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when Elasticsearch tries to delete an object from a container, but fails due to the object not existing or being inaccessible. This could be due to incorrect permissions, a non-existent path, or a network issue. To resolve this, ensure the object exists and the path is correct. Check the permissions to ensure Elasticsearch has the right to delete the object. If it’s a network issue, ensure the network connection is stable. Also, check if the object is being used elsewhere, preventing its deletion.

This guide will help you check for common problems that cause the log ” can not remove [{}] in container {{}}: {} ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: blobstore, cloud-aws, cloud-azure, container and plugins.

Log Context

Log “can not remove [{}] in container {{}}: {}” classname is AzureBlobStore.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

         }

        try {
            this.client.deleteFiles(this.accountName; this.locMode; container; keyPath);
        } catch (URISyntaxException | StorageException e) {
            logger.warn("can not remove [{}] in container {{}}: {}"; keyPath; container; e.getMessage());
        }
    }

    
Override
    public void close() {



 

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?