Access key option is required for cleaning up S3 repository – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.4-7.17

Briefly, this error occurs when Elasticsearch is trying to clean up an S3 repository but the access_key is not provided. The access_key is necessary for authentication with the S3 service. To resolve this issue, you can either provide the access_key in the elasticsearch.yml file or pass it as a parameter when calling the cleanup API. Also, ensure that the provided access_key has the necessary permissions to perform cleanup operations on the S3 repository.

This guide will help you check for common problems that cause the log ” access_key option is required for cleaning up S3 repository ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: repository.

Log Context

Log “access_key option is required for cleaning up S3 repository” class name is CleanupS3RepositoryCommand.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 throw new ElasticsearchException("you must not specify both region and endpoint");
 }  String accessKey = accessKeyOption.value(options);
 if (Strings.isNullOrEmpty(accessKey)) {
 throw new ElasticsearchException("access_key option is required for cleaning up S3 repository");
 }  String secretKey = secretKeyOption.value(options);
 if (Strings.isNullOrEmpty(secretKey)) {
 throw new ElasticsearchException("secret_key option is required for cleaning up S3 repository");

 

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?