I tried to create snapshot rep but failing with
location [/data/elasticsearch_backups] doesn't match any of the locations specified by path.repo
config is there:
cat /etc/elasticsearch/elasticsearch.yml | grep repo
path.repo: /data/elasticsearch_backups
Also, this config is recongized via node settings api:
curl -s http://192.168.51.80:9200/_nodes/settings?pretty | grep 'repo\|host"'
"host" : "192.168.51.80",
"host" : "192.168.51.80"
"repo" : "/data/elasticsearch_backups"
and the mounted share directory have read/write for elasticsearch
ls -al /data/ | grep elastic
drwxr-xr-x 8 elasticsearch elasticsearch 114 May 14 2019 elasticsearch_backups
but this is what I get... and I'm out of idea... any advice would be appriciated!
http://192.168.51.80:9200/_snapshot/_all?pretty
curl -XPUT -H "Content-Type: application/json" 'http://192.168.51.81:9200/_snapshot/es6_dev' -d '{
"type": "fs",
"settings": {
"location": "/data/elasticsearch_backups",
"compress": true
}
}'
{"error":{"root_cause":[{"type":"repository_exception","reason":"[es6_dev] location [/data/elasticsearch_backups] doesn't match any of the locations specified by path.repo"}],"type":"repository_exception","reason":"[es6_dev] failed to create repository","caused_by":{"type":"repository_exception","reason":"[es6_dev] location [/data/elasticsearch_backups] doesn't match any of the locations specified by path.repo"}},"status":500}