Snapshot error (Solved)

Hi All,

I would like to create the snapshot but get the result

{"error":"RepositoryVerificationException[[my_backup] path  is not accessible on master node]; nested: FileNotFoundException[/mnt/es_snapshot/tests-AHLJFeQaTMap0CjEvhZhNA-master (Permission denied)]; ","status":500}

Following is my steps.

There are 2 nodes of my elasticsearch cluster, all of two are mount to GFS, like

140.92.25.176:/cakestorage/elasticsearch
                     5857675264 104251392 5753423872   2% /mnt/es_snapshot

My elasticsearch.yml setting (all nodes)

path.repo: /mnt/es_snapshot

Then create snapshot

$curl -XPOST -u es_admin:iiiiii "http://localhost:9200/_snapshot/my_backup" -d '
{
    "type": "fs",
    "settings": {
        "location": "/mnt/es_snapshot"
    }
}'

Anyone can help?

Jason

What's the output from ls -ld /mnt/es_snapshot

Hi Mark,

drwxr-xr-x 3 root root 124 Sep 10 15:22 /mnt/es_snapshot

I change owner root to elasticsearch, it can be work, thanks

drwxr-xr-x 3 elasticsearch elasticsearch 124 Sep 10 15:25 /mnt/es_snapshot

Jason