# Snapshot issue to creating repo

**URL:** <https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175>\
**Category:** Elasticsearch\
**Created:** [January 11, 2017, 5:36am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175 "2017-01-11T05:36:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit2255](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ankit2255](https://discuss.elastic.co/u/ankit2255)\
**Post date:** [January 11, 2017, 5:36am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/1 "2017-01-11T05:36:13Z")

</div>

{  
"error": {  
"root\_cause": [  
{  
"type": "repository\_verification\_exception",  
"reason": "[es4\_backup] [[SiVtYos-Qo-LRlL9UItz8A, 'RemoteTransportException[[tmz-mc2][192.0.0.21:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[es4\_backup] store location [/opt/nfsstorage] is not accessible on the node [{tmz-mc2}{SiVtYos-Qo-LRlL9UItz8A}{DNKSF50UQke0xzuHwqgILg}{192.0.0.21}{192.0.0.21:9300}]]; nested: AccessDeniedException[/opt/nfsstorage/tests-cIvTtcNSSrm1RuY2oTYkYg/data-SiVtYos-Qo-LRlL9UItz8A.dat];']]"  
}  
],  
"type": "repository\_verification\_exception",  
"reason": "[es4\_backup] [[SiVtYos-Qo-LRlL9UItz8A, 'RemoteTransportException[[tmz-mc2][192.0.0.21:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[es4\_backup] store location [/opt/nfsstorage] is not accessible on the node [{tmz-mc2}{SiVtYos-Qo-LRlL9UItz8A}{DNKSF50UQke0xzuHwqgILg}{192.0.0.21}{192.0.0.21:9300}]]; nested: AccessDeniedException[/opt/nfsstorage/tests-cIvTtcNSSrm1RuY2oTYkYg/data-SiVtYos-Qo-LRlL9UItz8A.dat];']]"  
},  
"status": 500  
}

unable to create snapshot repo can any help on this because i am stuck on this.

---

<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:** [January 11, 2017, 6:01am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/2 "2017-01-11T06:01:24Z")

</div>

Does the Elasticsearch user have the read and write permissions on the directory? Is it a shared drive available to all nodes in the cluster?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 11, 2017, 6:02am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/3 "2017-01-11T06:02:26Z")

</div>

`/opt/nfsstorage` is not accessible on node `tmz-mc2`.

Check that you mount it.

---

<div class="post-metadata">

**Author:** ![ankit2255](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ankit2255](https://discuss.elastic.co/u/ankit2255)\
**Post date:** [January 11, 2017, 6:11am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/4 "2017-01-11T06:11:16Z")

</div>

hi #dadoonet

i have share nfs storage from tmz-mc2 to tmz-mc1 both have permission to read and right.but when i right something with elasticsearch user on tmz-mc1 it show me elasticsearch user permission but when i see on tmz-mc2 its show uid and gid of tmz-mc1 like below

tmz-mc2:-

-rw-r--r-- 1 107 115 0 Jan 11 11:24 ankitd  
-rw-r--r-- 1 107 115 0 Jan 11 11:28 ankitdddd

tmz-mc1:-

-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 11 11:24 ankitd

i think issue with uid gid mapping issue do have any idea about this

---

<div class="post-metadata">

**Author:** ![ankit2255](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ankit2255](https://discuss.elastic.co/u/ankit2255)\
**Post date:** [January 11, 2017, 6:12am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/5 "2017-01-11T06:12:11Z")

</div>

yes @Christian_Dahlqvist

i have share nfs storage from tmz-mc2 to tmz-mc1 both have permission to read and right.but when i right something with elasticsearch user on tmz-mc1 it show me elasticsearch user permission but when i see on tmz-mc2 its show uid and gid of tmz-mc1 like below

tmz-mc2:-

-rw-r--r-- 1 107 115 0 Jan 11 11:24 ankitd  
-rw-r--r-- 1 107 115 0 Jan 11 11:28 ankitdddd

tmz-mc1:-

-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 11 11:24 ankitd

i think issue with uid gid mapping issue do have any idea about this

---

<div class="post-metadata">

**Author:** ![ankit2255](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ankit2255](https://discuss.elastic.co/u/ankit2255)\
**Post date:** [January 11, 2017, 11:09am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/6 "2017-01-11T11:09:19Z")

</div>

anyone is there who can help me on this issue #elasticsearch

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 11, 2017, 11:23am UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/7 "2017-01-11T11:23:41Z")

</div>

Yes. I believe it's not related to elasticsearch but to your shared FS config.

You need to fix that to make sure that your user running elasticsearch can read and write a file from both nodes.

May be a mount issue?

---

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [January 11, 2017, 1:07pm UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/8 "2017-01-11T13:07:21Z")

</div>

What are your mount options? Make sure that the elasticsearch user has same uid / gid on both tmz-mc1 and tmz-mc2.

---

<div class="post-metadata">

**Author:** ![ankit2255](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@ankit2255](https://discuss.elastic.co/u/ankit2255)\
**Post date:** [January 11, 2017, 5:02pm UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/9 "2017-01-11T17:02:20Z")

</div>

Hi @ywelsch

I am using nfs storage for snapshot on both machine. and i have setup elasticsearch on both instance with different uid and gid on both instances. can you help me on nfs uid gid mapping issue bcoz i know its an issue with nfs uid gid mapping

---

<div class="post-metadata">

**Author:** ![abeyad](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@abeyad](https://discuss.elastic.co/u/abeyad)\
**Post date:** [January 11, 2017, 6:10pm UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/10 "2017-01-11T18:10:43Z")

</div>

You can use the `usermod` and `groupmod` commands to change the UID and GID. Make sure they are the same on the server and all client machines for the given user name.

e.g. `usermod -u 5555 my_user_name` and `groupmod -g 6666 my_group_name`

You will have to make sure that any directories that you created outside of the user's home folder have the permissions changed to include the new UID and GID.

A google search for "changing the uid and gid mappings on linux" yields several pages and examples. Check out the man pages for each command as well.

---

<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:** [February 8, 2017, 6:10pm UTC](https://discuss.elastic.co/t/snapshot-issue-to-creating-repo/71175/11 "2017-02-08T18:10:52Z")

</div>

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