Unable to register s3 repo

Hi,

Can someone advice me what will be possible cause of this kind of error. while register the s3 repo i am getting below error.

"error" : {
    "root_cause" : [
      {
        "type" : "repository_verification_exception",
        "reason" : "[backup_s3_repository] path [———————] is not accessible on master node"
      }
    ],
    "type" : "repository_verification_exception",
    "reason" : "[backup_s3_repository] path [——————] is not accessible on master node",
    "caused_by" : {
      "type" : "i_o_exception",
      "reason" : "Unable to upload object [——————]] using a single upload",
      "caused_by" : {
        "type" : "sdk_client_exception",
        "reason" : "Unable to execute HTTP request: ",
        "caused_by" : {
          "type" : "unknown_host_exception",
          "reason" : " "
        }
      }
    }
  },
  "status" : 500
}

Thanks
Sonu

Log info

Caused by: com.amazonaws.SdkClientException: Unable to execute HTTP request: hostname
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1175) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1121) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532) ~[?:?]
        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4920) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4866) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client.access$300(AmazonS3Client.java:389) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client$PutObjectStrategy.invokeServiceCall(AmazonS3Client.java:5800) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client.uploadObject(AmazonS3Client.java:1789) ~[?:?]
        at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1749) ~[?:?]
        at org.elasticsearch.repositories.s3.S3BlobContainer.lambda$executeSingleUpload$17(S3BlobContainer.java:335) ~[?:?]
        at org.elasticsearch.repositories.s3.SocketAccess.lambda$doPrivilegedVoid$0(SocketAccess.java:57) ~[?:?]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
        at org.elasticsearch.repositories.s3.SocketAccess.doPrivilegedVoid(SocketAccess.java:56) ~[?:?]
        at org.elasticsearch.repositories.s3.S3BlobContainer.executeSingleUpload(S3BlobContainer.java:334) ~[?:?]
        at org.elasticsearch.repositories.s3.S3BlobContainer.lambda$writeBlob$1(S3BlobContainer.java:106) ~[?:?]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_141]
        at org.elasticsearch.repositories.s3.SocketAccess.doPrivilegedIOException(SocketAccess.java:48) ~[?:?]
        at org.elasticsearch.repositories.s3.S3BlobContainer.writeBlob(S3BlobContainer.java:104) ~[?:?]
        at org.elasticsearch.repositories.s3.S3BlobContainer.writeBlobAtomic(S3BlobContainer.java:116) ~[?:?]

Thanks
Sonu

Welcome to our community! :smiley:

Can you share the post you are using to register the repo?

Hi,

When i used this option to register the repo "path_style_access": "true" in elasticsearch 5.6 is working fine. However same option is not working for v6.4.
What are other parameter i need to use so that i can resolve this DNS issue.

  "error" : {
    "root_cause" : [
      {
        "type" : "repository_exception",
        "reason" : "[name_20210630] failed to create repository"
      }
    ],
    "type" : "repository_exception",
    "reason" : "[name_20210630] failed to create repository",
    "caused_by" : {
      "type" : "sdk_client_exception",
      "reason" : "Unable to execute HTTP request: Host name 'bucketname.clientname' does not match the certificate subject provided by the peer (CN=*., OU=, O=\".\", L=, ST=, C=)",
      "caused_by" : {
        "type" : "s_s_l_peer_unverified_exception",
        "reason" : "Host name 'bucketname.clientname' does not match the certificate subject provided by the peer (CN=*., OU=, O=\".\", L=, ST=, C=)"
      }
    }
  },
  "status" : 500
}

Thanks
Sonu

That seems pretty relevant. Have you tried fixing it?

I tried but unable to figure out while adding path_style_access parameter is working fine on v5.6.

But same path_style_access parameter when i tried on v6.4, I am getting the above ssl related error. Can you give me some suggestion where i need to make other change.

Thanks
Sonu

Hi,

Any suggestion or workaround of this issue.

Thanks
Sonu