# Backup repository missing exception

**URL:** <https://discuss.elastic.co/t/backup-repository-missing-exception/136538>\
**Category:** Elasticsearch\
**Created:** [June 19, 2018, 4:31pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538 "2018-06-19T16:31:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammedEssabri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedessabri/32/42177_2.png) [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Post date:** [June 19, 2018, 4:31pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/1 "2018-06-19T16:31:38Z")

</div>

Hi Elasticsearch Team,

After redeploying Elasticsearch 1.7 in our server, data has been removed. and when we use \_snapshot api to restore created backup using:  
`curl -X GET "localhost:9200/_snapshot/test_backup"`

it shows the following exception:

```
`{"error":"RepositoryMissingException[[test_backup] missing]","status":404}`

```

the request:

`curl -X GET "localhost:9200/_snapshot`

Has an empty response

`{}`

Please help me.

Thank you!

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [June 19, 2018, 9:15pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/2 "2018-06-19T21:15:05Z")

</div>

You need to [re-register the repository](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_repositories) with the same settings that your used to create snapshots.

---

<div class="post-metadata">

**Author:** ![mohammedEssabri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedessabri/32/42177_2.png) [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Post date:** [June 20, 2018, 6:09pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/3 "2018-06-20T18:09:49Z")

</div>

Hi @Igor_Motov,

Thank you for the feedback!  
But i have already added the path in elasticsearch\_cutom.yml as repo path, and the feedback was already created by an other instance of elasticsearch.

Best regards,  
Mohammed ESSABRI

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [June 20, 2018, 8:00pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/4 "2018-06-20T20:00:07Z")

</div>

Your errors indicate the repository registration didn't succeed.

---

<div class="post-metadata">

**Author:** ![mohammedEssabri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedessabri/32/42177_2.png) [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Post date:** [June 20, 2018, 10:16pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/5 "2018-06-20T22:16:00Z")

</div>

Thank you @Igor_Motov for your help!

I will try with that.

Best regards,

---

<div class="post-metadata">

**Author:** ![mohammedEssabri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedessabri/32/42177_2.png) [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Post date:** [July 5, 2018, 1:31pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/6 "2018-07-05T13:31:45Z")

</div>

Dear @Igor_Motov,

I've created a snapshot named snapshot20180625 in an environment and i copied it into another environment, then i tried to register the repository using:

```
curl -XPUT " ***IP*** :9200/_snapshot/snapshot20180625" -d '{
  "type": "fs",
  "settings": {
    "compress": "true",
    "location": "/shared/appdata/sls/sls.elasticsearch/backups"
  }
}'

```

But it gives me the following error:

`{"error":"RemoteTransportException[[***server name***][inet[/ ***IP*** :9300]][cluster:admin/repository/put]]; nested: ProcessClusterEventTimeoutException[failed to process cluster event (put_repository [snapshot20180625]) within 30s]; ","status":503}`

Can you please give me a help ?  
Thank you!

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [July 5, 2018, 2:57pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/7 "2018-07-05T14:57:41Z")

</div>

There is one to many relationship between repositories and snapshots and you seemed to be conflating the two. One repository can contain multiple snapshots and you register repository while creating and restoring snapshots. Please, check documentation and fully understand the difference and relationship between them before continue.

The error that you are getting can indicate several things. It can indicate that some nodes don't have access to the directory `/shared/appdata/sls/sls.elasticsearch/backups` and timeout trying to access it or that the cluster is in pretty bad shape and cannot process the request within 30 seconds.

Could you verify that the directory `/shared/appdata/sls/sls.elasticsearch/backups` is mounted on all nodes and have the same access rights and that elasticsearch is running under the user with the same id on all nodes.

Could you also check that nothing else is going on on the cluster by running `GET /_cat/pending_tasks`

Do you see any error message in the log file on the master node?

---

<div class="post-metadata">

**Author:** ![mohammedEssabri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohammedessabri/32/42177_2.png) [@mohammedEssabri](https://discuss.elastic.co/u/mohammedEssabri)\
**Post date:** [July 5, 2018, 3:23pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/8 "2018-07-05T15:23:08Z")

</div>

Dear @Igor_Motov,

I would thank you for the help, it was exactly as you suggested, the owner user was not the same for both repository and Elasticsearch cluster.

Thank you so much!

Best regards,  
Mohammed ESSABRI

---

<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:** [August 2, 2018, 3:23pm UTC](https://discuss.elastic.co/t/backup-repository-missing-exception/136538/9 "2018-08-02T15:23:16Z")

</div>

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