# Restore shared fs snapshots permissions issues 2.x

**URL:** <https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606>\
**Category:** OpenSearch\
**Tags:** troubleshoot\
**Created:** [August 13, 2022, 3:01pm UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606 "2022-08-13T15:01:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![infodata](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@infodata](https://forum.opensearch.org/u/infodata)\
**Post date:** [August 13, 2022, 3:01pm UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606/1 "2022-08-13T15:01:54Z")

</div>

Hello my os snapshots are configured with shared fs (nfs) and can see snapshots in dashboards gui but not in console api ?

Im not seeing snapshot name for (\_all ?)  
all below show same response

get \_snapshot/  
get \_snapshot/\_all  
get \_snapshot/snapshots\_dailybackups/

{  
“snapshots\_dailybackups” : {  
“type” : “fs”,  
“settings” : {  
“chunk\_size” : null,  
“location” : “/usr/share/opensearch/snapshots/dailybackups/”,  
“max\_restore\_bytes\_per\_sec” : “40m”,  
“readonly” : “false”,  
“compress” : “false”,  
“max\_snapshot\_bytes\_per\_sec” : “40m”  
}  
}  
}

there are few snaps in repo snapshots\_dailybackups  
for this snap  
snapshots\_dailybackups/812\_daily

get \_snapshot/snapshots\_dailybackups/812\_daily  
{  
“snapshots” : [  
{  
“snapshot” : “812\_daily”,  
“uuid” : “2dy7HN\_tRJKY4EVj8p-gDg”,  
“version\_id” : 136227827,  
“version” : “2.1.0”,  
“indices” : [  
…  
…

but no snap-xx.dat or meta.dat files on my nfs shared storage  
/usr/share/opensearch/snapshots/dailybackups

Im using local user with admin role and restore get these errors

POST \_snapshot/snapshots\_dailybackups/812\_daily/\_restore  
{  
“error” : {  
“root\_cause” : [  
{  
“type” : “security\_exception”,  
“reason” : “no permissions for and User [name=admindata, backend\_roles=[admin], requestedTenant= **user** ]”  
}  
],  
“type” : “security\_exception”,  
“reason” : “no permissions for and User [name=admindata, backend\_roles=[admin], requestedTenant= **user** ]”  
},  
“status” : 403  
}

> [@Why does snapshot restore have permission error?](https://forum.opensearch.org/t/why-does-snapshot-restore-have-permission-error/3287/1):
>
> Hello? I just tried to restore snapshot indices. Howerver there is security permission issue. This is used my admin user. Any ideas? POST /\_snapshot/admin/metricbeat-7.7.0-restore-not-work-2020.07.09\_11:25:47/\_restore { “indices”: “metricbeat-7.7.0-restore-not-work”, “ignore\_unavailable”: true, “include\_global\_state”: false, “rename\_pattern”: “metricbeat-7.7.0-restore-not-work”, “rename\_replacement”: “metricbeat-7.7.0-restore-not-work-rere”, “include\_aliases”: false } { “error” : …

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 15, 2022, 11:04am UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606/2 "2022-08-15T11:04:14Z")

</div>

@infodata Could you share the exact version of your OpenSearch environment?

---

<div class="post-metadata">

**Author:** ![infodata](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@infodata](https://forum.opensearch.org/u/infodata)\
**Post date:** [August 15, 2022, 2:06pm UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606/3 "2022-08-15T14:06:09Z")

</div>

its in the above output of this  
get \_snapshot/snapshots\_dailybackups/812\_daily  
“version” : “2.1.0”,

I did have snap-xx.dat or meta.dat files a while ago before updated path to this path but havent tested restore at that time and cant seem to find where are snapshots being saved as dont see those files any more

Update:  
im able to restore with these extra options after following docs

> **[Take and restore snapshots](https://opensearch.org/docs/2.1/opensearch/snapshots/snapshot-restore)**
>
> Take and restore snapshots

using exact index

post \_snapshot/snapshots\_dailybackups/812\_daily/\_restore  
{  
“indices”: “myindex-2022.08.10”,  
“include\_global\_state”: false  
}

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [August 15, 2022, 4:33pm UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606/4 "2022-08-15T16:33:36Z")

</div>

@infodata If you want to see all snapshots in the repository then you should the following command.

```auto
get _snapshot/<repository_name>/_all

```

i.e.

```auto
get _snapshot/snapshots_dailybackups/_all

```

The permission error is caused by the snapshot that contains the `.opendistro_security` index.  
In that case, either you’ll restore a single index/list of the indices or use the admin certificate and curl to restore the full snapshot.

> **[Take and restore snapshots](https://opensearch.org/docs/latest/opensearch/snapshots/snapshot-restore/#security-plugin-considerations)**
>
> Take and restore snapshots

What is the value of the `path.repo` in opensearch.yml? What group and user is assigned to that shared folder?

---

<div class="post-metadata">

**Author:** ![infodata](https://avatars.discourse-cdn.com/v4/letter/i/ba8739/32.png) [@infodata](https://forum.opensearch.org/u/infodata)\
**Post date:** [August 15, 2022, 5:04pm UTC](https://forum.opensearch.org/t/restore-shared-fs-snapshots-permissions-issues-2-x/10606/5 "2022-08-15T17:04:33Z")

</div>

yes this works

> [@pablo](#):
>
> `get _snapshot/snapshots_dailybackups/_all`

$ grep path.repo opensearch-ad.yml  
path.repo: /usr/share/opensearch/snapshots/dailybackups

is there a api console get to check value of path.repo ?

I could be having nfs mount issues rechecking
