# Snapshot Error

**URL:** <https://discuss.elastic.co/t/snapshot-error/68819>\
**Category:** Elasticsearch\
**Created:** [December 13, 2016, 6:56am UTC](https://discuss.elastic.co/t/snapshot-error/68819 "2016-12-13T06:56:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gogularaja](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gogularaja](https://discuss.elastic.co/u/gogularaja)\
**Post date:** [December 13, 2016, 6:56am UTC](https://discuss.elastic.co/t/snapshot-error/68819/1 "2016-12-13T06:56:55Z")

</div>

Hi All,

I have been facing issue while taking snapshot of the indices in elasticsearch cluster.

Command : curl -XPUT localhost:9200/\_snapshot/first\_1 -d '{  
"type": "fs",  
"settings": {  
"location": "/tmp/snapshot\_production",  
"compress": true,  
"chunk\_size": "10m"  
}  
}'

Error:

{"error":{"root\_cause":[{"type":"repository\_verification\_exception","reason":"[first\_1] [QJyo4WJ5Ry-d0U4myaALgw, 'RemoteTransportException[[Tri-Man][10.0.0.1:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[first\_1] store location [/tmp/snapshot\_production] is not accessible on the node [{Tri-Man}{QJyo4WJ5Ry-d0U4myaALgw}{10.0.0.1}{10.0.0.1:9300}]]; nested: NotSerializableExceptionWrapper[access\_denied\_exception: /tmp/snapshot\_production/tests-XTHsgu0rRS6WDxgnUpycyw/data-QJyo4WJ5Ry-d0U4myaALgw.dat];']]"}],"type":"repository\_verification\_exception","reason":"[first\_1] [QJyo4WJ5Ry-d0U4myaALgw, 'RemoteTransportException[[Tri-Man][10.0.0.1:9300][internal:admin/repository/verify]]; nested: RepositoryVerificationException[[first\_1] store location [/tmp/snapshot\_production] is not accessible on the node [{Tri-Man}{QJyo4WJ5Ry-d0U4myaALgw}{10.0.0.1}{10.0.0.1:9300}]]; nested: NotSerializableExceptionWrapper[access\_denied\_exception: /tmp/snapshot\_production/tests-XTHsgu0rRS6WDxgnUpycyw/data-QJyo4WJ5Ry-d0U4myaALgw.dat];']]"},"status":500}

Server1: 10.0.0.0  
Server2: 10.0.0.1

Note:

1. Added both machine as elasticsearch cluster. But i have been facing the above error while taking the snapshot.  
Also i have followed all your solution for this error. But still i am unable to solve this issue.

2. Attached the output of the following command

Command : ls -ld /tmp/snapshot\_production/

drwxrwxrwx. 2 root root 42 Dec 13 12:14 /tmp/snapshot\_production/

Please guide me in solving this issue.

Thanks,  
Gogul

---

<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:** [December 13, 2016, 7:15am UTC](https://discuss.elastic.co/t/snapshot-error/68819/2 "2016-12-13T07:15:43Z")

</div>

I doubt /tmp is a shared folder by both machines. It is?

---

<div class="post-metadata">

**Author:** ![gogularaja](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gogularaja](https://discuss.elastic.co/u/gogularaja)\
**Post date:** [December 13, 2016, 7:22am UTC](https://discuss.elastic.co/t/snapshot-error/68819/3 "2016-12-13T07:22:00Z")

</div>

Hi Dadoonet,

I have mounted the shared folder in "/tmp/snapshot" of both machines.

Thanks,  
Gogul

---

<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:** [December 13, 2016, 7:33am UTC](https://discuss.elastic.co/t/snapshot-error/68819/4 "2016-12-13T07:33:29Z")

</div>

But you are mentioning `/tmp/snapshot_production/`?

---

<div class="post-metadata">

**Author:** ![gogularaja](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gogularaja](https://discuss.elastic.co/u/gogularaja)\
**Post date:** [December 13, 2016, 7:46am UTC](https://discuss.elastic.co/t/snapshot-error/68819/5 "2016-12-13T07:46:03Z")

</div>

HI Dadoonet,

Yes, I have mounted the shared path of "nfs-server" only in this location. In both Elasticsearch server.

Server1:

```
$ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda4 329G 9.3G 320G 3% /
nfs.server12.io:/snapshot 329G 9.3G 320G 3% /tmp/snapshot_production

```

Server2 :

```
$ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/sda2 329G 9.4G 320G 3% /
nfs.server12.io:/snapshot 329G 9.3G 320G 3% /tmp/snapshot_production
```

---

<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:** [December 13, 2016, 8:20am UTC](https://discuss.elastic.co/t/snapshot-error/68819/6 "2016-12-13T08:20:13Z")

</div>

I'm not an ops guy so I can't tell what are the commands to use but is there any chance that the user which is running elasticsearch process can not write files on `/tmp/snapshot_production`?

Like: can you run something like the following on both machines?

```auto
sudo -u elasticsearch touch /tmp/snapshot_production/foo.txt
sudo -u elasticsearch rm /tmp/snapshot_production/foo.txt

```

---

<div class="post-metadata">

**Author:** ![gogularaja](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gogularaja](https://discuss.elastic.co/u/gogularaja)\
**Post date:** [December 13, 2016, 11:42am UTC](https://discuss.elastic.co/t/snapshot-error/68819/7 "2016-12-13T11:42:37Z")

</div>

Hi Dadoonet,

I found the exact error.

Error: Elasticsearch userid & groupid is different in both servers

So, now i have chaged the userid & groupid of elasticsearch in "server2". To keep it same in both server.

But after changing it , the elasticsearch service is not starting in server2.

Please guide me in solving this problem.

Thanks,  
Gogul.

---

<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:** [December 13, 2016, 1:29pm UTC](https://discuss.elastic.co/t/snapshot-error/68819/8 "2016-12-13T13:29:26Z")

</div>

Logs?

---

<div class="post-metadata">

**Author:** ![gogularaja](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@gogularaja](https://discuss.elastic.co/u/gogularaja)\
**Post date:** [December 13, 2016, 5:01pm UTC](https://discuss.elastic.co/t/snapshot-error/68819/9 "2016-12-13T17:01:00Z")

</div>

Hi Dadoonet,

I found the issue...

Once i changed the permission in /etc/elasticsearch

service stared.

Now it is working fine. Thanks a lot for guiding me to solve this issue.

Thanks,  
Gogul.

---

<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:** [January 10, 2017, 5:01pm UTC](https://discuss.elastic.co/t/snapshot-error/68819/10 "2017-01-10T17:01:20Z")

</div>

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