# Repository verification exception when registering new ES snapshot

**URL:** <https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473>\
**Category:** Elasticsearch\
**Created:** [June 17, 2020, 12:42pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473 "2020-06-17T12:42:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpb14pk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpb14pk/32/49853_2.png) [@cpb14pk](https://discuss.elastic.co/u/cpb14pk)\
**Post date:** [June 17, 2020, 12:42pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/1 "2020-06-17T12:42:34Z")

</div>

Hi,

I am trying to snapshot an elasticsearch repository.

I have three different nodes across three different centos servers, e.g. 10.212.145.10, 10.212.145.20, 10.212.145.30.

I have added the path.repo field in my elasticsearch.yml file (etc/elasticsearch/elasticsearch.yml) on all my nodes:

`path.repo: ["/mnt/elasticsearch_repository/backup1"]`

I have created the above directory on all my nodes and run a:

`chown -R elasticsearch:elasticsearch /mnt/elasticsearch_repository/backup1`

to ensure no access issues.

I have run the following to register the repository:

```auto
curl -XPUT -H "Content-Type: application/json" 'http://10.212.145.10:9200/_snapshot/backup' -d '{
    "type": "fs",
    "settings": {
        "location": "/mnt/elasticsearch_repository/backup1",
        "compress": true
    }
}'

```

However, when I do this I get the following error:

```auto
{"error":{"root_cause":[{"type":"repository_verification_exception","reason":"[backup] [[0dWhaMt8TYK-e6ck1tMuQQ, 'RemoteTransportException[[ES02][10.212.145.10:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[backup] a file written by master to the store [/mnt/elasticsearch_repository/backup1] cannot be accessed on the node [{ES02}{0dWhaMt8TYK-e6ck1tMuQQ}{FHIuvrRvSymkpW2h8pzrqQ}{10.212.145.20}{10.212.145.20:9300}{dilm}{ml.machine_memory=12429500416, xpack.installed=true, ml.max_open_jobs=20}]. This might indicate that the store [/mnt/elasticsearch_repository/backup1] is not shared between this node and the master node or that permissions on the store don't allow reading files written by the master node]; nested: NoSuchFileException[/mnt/elasticsearch_repository/backup1/tests-i039sRXORcSfMOvtR6LHtg/master.dat];'], [JSrN7i0yRgiPZYo5JGkRUA, 'RemoteTransportException[[ES03][10.212.145.30:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[backup] a file written by master to the store [/mnt/elasticsearch_repository/fitbbackup1]....... 

```

Any help would be greatly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 17, 2020, 12:53pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/2 "2020-06-17T12:53:50Z")

</div>

It needs to be a shared volume, e.g. NFS, available to all nodes. Local directories do not work.

---

<div class="post-metadata">

**Author:** ![cpb14pk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpb14pk/32/49853_2.png) [@cpb14pk](https://discuss.elastic.co/u/cpb14pk)\
**Post date:** [June 17, 2020, 1:12pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/3 "2020-06-17T13:12:34Z")

</div>

I have used a mounted shared drive - does this not work? How do I change to NFS?

I have also used the above method before and it worked fine.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 17, 2020, 1:32pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/4 "2020-06-17T13:32:59Z")

</div>

The error indicates it is not working now though. Did you set it up correctly?

---

<div class="post-metadata">

**Author:** ![cpb14pk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpb14pk/32/49853_2.png) [@cpb14pk](https://discuss.elastic.co/u/cpb14pk)\
**Post date:** [June 17, 2020, 1:53pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/5 "2020-06-17T13:53:00Z")

</div>

I only did the steps outline above - is there something more I should have done ?

---

<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:** [July 15, 2020, 1:53pm UTC](https://discuss.elastic.co/t/repository-verification-exception-when-registering-new-es-snapshot/237473/6 "2020-07-15T13:53:59Z")

</div>

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