# Repo register issue

**URL:** <https://discuss.elastic.co/t/repo-register-issue/296016>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [February 2, 2022, 12:05am UTC](https://discuss.elastic.co/t/repo-register-issue/296016 "2022-02-02T00:05:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Levan\_Medoshvili](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/levan_medoshvili/32/101200_2.png) [@Levan\_Medoshvili](https://discuss.elastic.co/u/Levan_Medoshvili)\
**Post date:** [February 2, 2022, 12:05am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/1 "2022-02-02T00:05:06Z")

</div>

Hello

I have Elasticsearch installed in Windows Server.

I want to take snapshot and restore it in another server.  
I have added in Elasticsearch.yml file path.repo and location  
`path.repo: "D:\ES_Backup"`

When I am trying to register repo it gives me error  
`"reason": "[ES_Backup] location [D:\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty"`

Can you help me? What am I doing wrong?

P.S. also I tried in Elasticsearch.yml file to write repo path in these ways:  
path.repo: ["D:\ES\_Backup"]  
path.repo: D:\ES\_Backup  
path.repo: "D:/ES\_Backup"  
path.repo: ["D:/ES\_Backup"]

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 2, 2022, 2:01am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/2 "2022-02-02T02:01:09Z")

</div>

> **[Register a snapshot repository | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/snapshots-register-repository.html#snapshots-filesystem-repository)**

It says `path.repo` should be escaped to be `"D:\\ES_Backup"`.

---

<div class="post-metadata">

**Author:** ![Levan\_Medoshvili](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/levan_medoshvili/32/101200_2.png) [@Levan\_Medoshvili](https://discuss.elastic.co/u/Levan_Medoshvili)\
**Post date:** [February 2, 2022, 9:59am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/3 "2022-02-02T09:59:26Z")

</div>

So, changed path.repo  
`path.repo: "D:\\ES_Backup"`

run command, but still gives me error

 ![elasticsearch issue](https://us1.discourse-cdn.com/elastic/original/3X/4/5/45b82349e56ae65dfcb5c96b0e2389da0b6ed883.png)

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 2, 2022, 10:17am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/4 "2022-02-02T10:17:01Z")

</div>

Changed Elasticsearch.yml in everynode and restarted them after changing path.repo?

---

<div class="post-metadata">

**Author:** ![Levan\_Medoshvili](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/levan_medoshvili/32/101200_2.png) [@Levan\_Medoshvili](https://discuss.elastic.co/u/Levan_Medoshvili)\
**Post date:** [February 2, 2022, 11:18am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/5 "2022-02-02T11:18:37Z")

</div>

Yes, changed it and restarted service. I have single node.

Here is message from elasticsearch\_server.json file

```auto
[netty-common-4.1.49.Final.jar:4.1.49.Final]",
"at java.lang.Thread.run(Thread.java:832) [?:?]",
"Caused by: org.elasticsearch.repositories.RepositoryException: [ES_Backup] location [D:\\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty",
"at org.elasticsearch.repositories.fs.FsRepository.<init>(FsRepository.java:98) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.RepositoriesModule.lambda$new$0(RepositoriesModule.java:48) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.Repository$Factory.create(Repository.java:75) ~[elasticsearch-7.10.1.jar:7.10.1]",
"at org.elasticsearch.repositories.RepositoriesService.createRepository(RepositoriesService.java:499) ~[elasticsearch-7.10.1.jar:7.10.1]",
"... 81 more"] }

```

Here is log from Elasticsearch.log file

```auto
[2022-02-02T14:07:37,239][WARN][o.e.r.f.FsRepository] [ELASTIC01] The specified location [D:\ES_Backup] should start with a repository path specified by the path.repo setting, but the path.repo setting was not set on this node
[2022-02-02T14:07:37,239][WARN][o.e.r.RepositoriesService] [ELASTIC01] failed to create repository [fs][ES_Backup]
org.elasticsearch.repositories.RepositoryException: [ES_Backup] location [D:\ES_Backup] doesn't match any of the locations specified by path.repo because this setting is empty

```

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [February 2, 2022, 11:41am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/6 "2022-02-02T11:41:26Z")

</div>

I wonder whether the ES cluster look at the Elasticsearch.yml you changed. ([The default location is described here](https://www.elastic.co/guide/en/elasticsearch/reference/current/settings.html#config-files-location).)

Another change such as change of some node roles in Elasticsearch.yml take effect?  
What will happen if for example add `data_frozen`, retart and `GET /_nodes` ?

---

<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:** [March 2, 2022, 11:41am UTC](https://discuss.elastic.co/t/repo-register-issue/296016/7 "2022-03-02T11:41:37Z")

</div>

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