Put repository – 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 create a snapshot repository due to issues like incorrect repository settings, insufficient permissions, or connectivity problems with the storage location. To resolve this, ensure that the repository settings are correct, the OpenSearch cluster has the necessary permissions to access the repository, and the storage location is accessible. Also, check if the repository plugin is properly installed and enabled. If the issue persists, consider checking the OpenSearch logs for more detailed error information.

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 ” put repository [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: repository, repositories.

Log Context

Log “put repository [{}]” classname is RepositoriesService.java.
We extracted the following from OpenSearch source code for those seeking an in-depth context :

                    ensureRepositoryNotInUse(currentState; request.name());
                    Metadata metadata = currentState.metadata();
                    Metadata.Builder mdBuilder = Metadata.builder(currentState.metadata());
                    RepositoriesMetadata repositories = metadata.custom(RepositoriesMetadata.TYPE);
                    if (repositories == null) {
                        logger.info("put repository [{}]"; request.name());
                        repositories = new RepositoriesMetadata(
                            Collections.singletonList(new RepositoryMetadata(request.name(); request.type(); request.settings()))
                    } else {
                        boolean found = false;


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