Can not access in container – How to solve this OpenSearch error

Opster Team

Aug-23, Version: 1-2.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your OpenSearch operation.

Briefly, this error occurs when OpenSearch is unable to access a specific resource or service within a container. This could be due to incorrect permissions, a missing resource, or a misconfigured container. To resolve this issue, you can try the following: 1) Check and correct the permissions for the resource in question. 2) Ensure the resource or service exists and is correctly configured. 3) Review the container configuration and make necessary adjustments. 4) Restart the container or the entire OpenSearch service if necessary.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

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

Log Context

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

    public boolean blobExists(String blobName) {
        logger.trace("blobExists({})"; blobName);
        try {
            return blobStore.blobExists(buildKey(blobName));
        } catch (URISyntaxException | BlobStorageException e) {
            logger.warn("can not access [{}] in container {{}}: {}"; blobName; blobStore; e.getMessage());
        }
        return false;
    }

    private InputStream openInputStream(String blobName; long position; @Nullable Long length) throws IOException {

 

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?

Get expert answers on Elasticsearch/OpenSearch