Can not create azure storage client – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 2.3-2.3

Briefly, this error occurs when Elasticsearch fails to establish a connection with Azure Storage due to incorrect configuration or network issues. To resolve this, ensure that the Azure Storage account and access key are correctly configured in Elasticsearch. Also, check your network connectivity to Azure. If the problem persists, verify that the necessary permissions are granted for Elasticsearch to access Azure Storage.

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

Log Context

Log “can not create azure storage client: {}” classname is AzureStorageServiceImpl.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             CloudBlobClient client = storageAccount.createCloudBlobClient();

            // Register the client
            this.clients.put(azureStorageSettings.getAccount(); client);
        } catch (Exception e) {
            logger.error("can not create azure storage client: {}"; e.getMessage());
        }
    }

    CloudBlobClient getSelectedClient(String account; LocationMode mode) {
        logger.trace("selecting a client for account [{}]; mode [{}]"; account; mode.name());




 

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?