# Path.repo on ECK environment

**URL:** <https://discuss.elastic.co/t/path-repo-on-eck-environment/302255>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting, snapshot-and-restore\
**Created:** [April 12, 2022, 3:55pm UTC](https://discuss.elastic.co/t/path-repo-on-eck-environment/302255 "2022-04-12T15:55:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prabakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabakar/32/81795_2.png) [@Prabakar](https://discuss.elastic.co/u/Prabakar)\
**Post date:** [April 12, 2022, 3:55pm UTC](https://discuss.elastic.co/t/path-repo-on-eck-environment/302255/1 "2022-04-12T15:55:35Z")

</div>

We set path.repo on YAML file like below.

path:  
repo:  
-

But we are unable to add this path into kibana--\> Snapshot --\> Register Repository, it throws below error  
Cannot register new repository  
[test] failed to create repository

Also I tried using API

PUT /\_snapshot/my\_repository  
{  
"type": "fs",  
"settings": {  
"location":   
}  
}

It throws below error

{  
"error" : {  
"root\_cause" : [  
{  
"type" : "repository\_exception",  
"reason" : "[my\_repository] location [] doesn't match any of the locations specified by path.repo because this setting is empty"  
}  
],  
"type" : "repository\_exception",  
"reason" : "[my\_repository] failed to create repository",  
"caused\_by" : {  
"type" : "repository\_exception",  
"reason" : "[my\_repository] location [] doesn't match any of the locations specified by path.repo because this setting is empty"  
}  
},  
"status" : 500  
}

Please share your thoughts on this.

---

<div class="post-metadata">

**Author:** ![Prabakar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prabakar/32/81795_2.png) [@Prabakar](https://discuss.elastic.co/u/Prabakar)\
**Post date:** [April 12, 2022, 11:52pm UTC](https://discuss.elastic.co/t/path-repo-on-eck-environment/302255/2 "2022-04-12T23:52:13Z")

</div>

Anyone have idea on this?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 13, 2022, 12:46pm UTC](https://discuss.elastic.co/t/path-repo-on-eck-environment/302255/3 "2022-04-13T12:46:54Z")

</div>

See the docs at [Shared file system repository | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.1/snapshots-filesystem-repository.html)

> To register a shared file system repository, first mount the file system to the same location on all master and data nodes. Then add the file system’s path or parent directory to the path.repo setting in elasticsearch.yml for each master and data node. For running clusters, this requires a rolling restart of each node.

Have you added that setting?

---

<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:** [May 11, 2022, 12:47pm UTC](https://discuss.elastic.co/t/path-repo-on-eck-environment/302255/4 "2022-05-11T12:47:52Z")

</div>

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