# Unable to register s3 repo

**URL:** <https://discuss.elastic.co/t/unable-to-register-s3-repo/275959>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [June 15, 2021, 7:59am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959 "2021-06-15T07:59:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonujatav35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonujatav35/32/90308_2.png) [@sonujatav35](https://discuss.elastic.co/u/sonujatav35)\
**Post date:** [June 15, 2021, 7:59am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/1 "2021-06-15T07:59:15Z")

</div>

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.

```auto
"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

---

<div class="post-metadata">

**Author:** ![sonujatav35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonujatav35/32/90308_2.png) [@sonujatav35](https://discuss.elastic.co/u/sonujatav35)\
**Post date:** [June 15, 2021, 8:13am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/2 "2021-06-15T08:13:33Z")

</div>

Log info

```auto
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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2021, 11:18pm UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/3 "2021-06-15T23:18:35Z")

</div>

Welcome to our community! 😃

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

---

<div class="post-metadata">

**Author:** ![sonujatav35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonujatav35/32/90308_2.png) [@sonujatav35](https://discuss.elastic.co/u/sonujatav35)\
**Post date:** [July 1, 2021, 7:36am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/4 "2021-07-01T07:36:17Z")

</div>

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.

```auto
  "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

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 1, 2021, 8:28am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/5 "2021-07-01T08:28:04Z")

</div>

> [@sonujatav35](#):
>
> `Host name 'bucketname.clientname' does not match the certificate subject provided by the peer (CN=*., OU=, O=\".\", L=, ST=, C=)`

That seems pretty relevant. Have you tried fixing it?

---

<div class="post-metadata">

**Author:** ![sonujatav35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonujatav35/32/90308_2.png) [@sonujatav35](https://discuss.elastic.co/u/sonujatav35)\
**Post date:** [July 1, 2021, 8:34am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/6 "2021-07-01T08:34:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sonujatav35](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sonujatav35/32/90308_2.png) [@sonujatav35](https://discuss.elastic.co/u/sonujatav35)\
**Post date:** [July 8, 2021, 4:19am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/7 "2021-07-08T04:19:15Z")

</div>

Hi,

Any suggestion or workaround of this issue.

Thanks  
Sonu

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 5, 2021, 4:19am UTC](https://discuss.elastic.co/t/unable-to-register-s3-repo/275959/8 "2021-08-05T04:19:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
