jprante / elasticsearch-knapsack

Knapsack plugin is an import/export tool for Elasticsearch
Apache License 2.0
472 stars 77 forks source link

"error":"FileNotFoundException when exporting #37

Closed Yaskier closed 10 years ago

Yaskier commented 10 years ago

Hi guys, we are trying to use knapsack for our backups (60GB+) but we always have this error:

curl -XPOST localhost:9200/_export {"error":"FileNotFoundException[_all.tar.gz (Permission denied)]","status":500}

We are in the machine via ssh and have tried it in root but no luck, any idea?

Thanks

jprante commented 10 years ago

You should use the path variable to point to a writable directory that can be accessed by the user running Elasticsearch and has enough disk space. E.g.

curl -XPOST localhost:9200/_export?path=/path/to/my/dir/_all.tar.gz

There is not much use in trying root.