S3 proxy type has been set but proxy host or port is not defined – How to solve this OpenSearch exception

Opster Team

Aug-23, Version: 1.3-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 the S3 proxy type is configured in OpenSearch, but the proxy host or port is not defined. This is necessary for OpenSearch to connect to the S3 service through a proxy. To resolve this issue, you should define the proxy host and port in the OpenSearch configuration. If you’re not using a proxy, ensure the proxy type is not set. Alternatively, if you’re unsure of the correct host or port, consult your network administrator for the correct details.

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 ” S3 proxy type has been set but proxy host or port is not defined. ” to appear. To understand the issues related to this log, read the explanation below about the following OpenSearch concepts: repositories, plugins, repository-s3.

Log Context

Log “S3 proxy type has been set but proxy host or port is not defined.” class name is S3ClientSettings.java. We extracted the following from OpenSearch source code for those seeking an in-depth context :

 if (proxyType == ProxySettings.ProxyType.DIRECT
 && (proxyPort != 80 || Strings.hasText(proxyHost) || Strings.hasText(proxyUserName) || Strings.hasText(proxyPassword))) {
 throw new SettingsException("S3 proxy port or host or username or password have been set but proxy type is not defined.");
 if (proxyType != ProxySettings.ProxyType.DIRECT && Strings.isEmpty(proxyHost)) {
 throw new SettingsException("S3 proxy type has been set but proxy host or port is not defined.");
 if (proxyType == ProxySettings.ProxyType.DIRECT) {
 return ProxySettings.NO_PROXY_SETTINGS;
 if (awsProtocol == Protocol.HTTP && proxyType == ProxySettings.ProxyType.SOCKS) {


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