Path.repo on ECK environment

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.

Anyone have idea on this?

See the docs at Shared file system repository | Elasticsearch Guide [8.1] | Elastic

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?

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