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

Opster Team

Aug-23, Version: 2-2

Briefly, this error occurs when Elasticsearch tries to delete data from a Docker container but fails due to insufficient permissions or because the data is currently in use. To resolve this issue, you can try stopping the container before deleting the data. If the problem persists, check the permissions of the data directory. It should be writable by the Elasticsearch user. If none of these work, the data might be in use by another process. Identify and stop that process before attempting to delete the data again.

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 {
            client.deleteFiles(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?