# Getting Repository verification exception while creating Snapshot

**URL:** <https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 9:21am UTC](https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945 "2017-04-11T09:21:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjukdvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjukdvg/32/9544_2.png) [@manjukdvg](https://discuss.elastic.co/u/manjukdvg)\
**Post date:** [April 11, 2017, 9:21am UTC](https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945/1 "2017-04-11T09:21:18Z")

</div>

I am trying to create snapshot for S3 repository . But it's throwing exception .  
Elasticsearch version : 2.3.5 using plugin cloud-aws . Plugin is installed across all the nodes.

I have created AWS user with permission as below .

```
{
    "Statement": [
        {
            "Action": [
                "s3:ListBucket",
                "s3:GetBucketLocation",
                "s3:ListBucketMultipartUploads",
                "s3:ListBucketVersions"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:s3:::TESTBUCKET"
            ]
        },
        {
            "Action": [
                "s3:GetObject",
                "s3:PutObject",
                "s3:DeleteObject",
                "s3:AbortMultipartUpload",
                "s3:ListMultipartUploadParts"
            ],
            "Effect": "Allow",
            "Resource": [
                "arn:aws:s3:::TESTBUCKET/*"
            ]
        }
    ],
    "Version": "2012-10-17"
}

```

and trying to execute the following command .  
PUT /\_snapshot/dev\_snapshot1  
{  
"type": "s3",  
"settings": {  
"bucket": "TESTBUCKET",  
"base\_path": "backups/",  
"access\_key": "ACCESS\_KEY\_HERE",  
"secret\_key": "SECRET\_KEY\_HERE",  
"endpoint": "[s3-us-west-2.amazonaws.com](http://s3-us-west-2.amazonaws.com)"  
}  
}

I am getting the following exception.

```
{
  "error": {
    "root_cause": [
      {
        "type": "repository_verification_exception",
        "reason": "[dev_snapshot1] [uKBReIYMTs6ALUY4pHVC-A, 'RemoteTransportException[[data_4][IP1:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];'], [tAxayK0uTz-ACFRPdovzXQ, 'RemoteTransportException[[data_5][IP2.207:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];'], [cVeA7vYRTBqurWdDcQKeag, 'RemoteTransportException[[data_3][IP3:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];']]"
      }
    ],
    "type": "repository_verification_exception",
    "reason": "[dev_snapshot1] [uKBReIYMTs6ALUY4pHVC-A, 'RemoteTransportException[[data_4][IP1:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];'], [tAxayK0uTz-ACFRPdovzXQ, 'RemoteTransportException[[data_5][IP2:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];'], [cVeA7vYRTBqurWdDcQKeag, 'RemoteTransportException[[data_3][IP3:9300][internal:admin/repository/verify]]; nested: RepositoryMissingException[[dev_snapshot1] missing];']]"
  },
  "status": 500
}

```

What could be wrong here ?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [April 11, 2017, 4:50pm UTC](https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945/2 "2017-04-11T16:50:05Z")

</div>

What this is suggesting is that one or more of your local nodes does not have write access to the remote S3 end point, or that the write was slow or interrupted so it did not or could not complete.

The repository verification step occurs at repository creation time. It tells each node to write a file to the remote end point, and then check to ensure the file got written. The message you're getting is that it couldn't find one of those files sent by one or more nodes, for whatever reason.

---

<div class="post-metadata">

**Author:** ![manjukdvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/manjukdvg/32/9544_2.png) [@manjukdvg](https://discuss.elastic.co/u/manjukdvg)\
**Post date:** [April 12, 2017, 3:11pm UTC](https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945/3 "2017-04-12T15:11:36Z")

</div>

Yes . Got it . One of the data node had issue . Now working fine. Thank you.

---

<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:** [May 10, 2017, 3:20pm UTC](https://discuss.elastic.co/t/getting-repository-verification-exception-while-creating-snapshot/81945/4 "2017-05-10T15:20:52Z")

</div>

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