Did you check your read/write settings for /mount/backups dir?
They should be writable by the user which runs elasticsearch.

If still not working, could you try create /mount/backups/my_backup and gives 
privileges to elasticsearch user?

HTH

-- 
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr


Le 16 mai 2014 à 17:55:28, Fred Ducrot ([email protected]) a écrit:

Hello ES community,

I am trying to create a snapshot for ES and I am following the steps at: 
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-snapshots.html.

Unfortunately the repository creation fails in our environment: Debian 6.0.9

This is what I run:

curl -XPUT 'http://localhost:9200/_snapshot/my_backup' -d '{
    "type": "fs",
    "settings": {
        "location": "/mount/backups/my_backup",
        "compress": true
    }
}'

The Error I get every time: (for info, just in case i restarted ES...)

{"error":"RepositoryException[[my_backup] failed to create repository]; nested: 
CreationException[Guice creation errors:\n\n1) Error injecting constructor, 
org.elasticsearch.common.blobstore.BlobStoreException: Failed to create 
directory at [/mount/backups/my_backup]\n  at 
org.elasticsearch.repositories.fs.FsRepository.<init>(Unknown Source)\n  while 
locating org.elasticsearch.repositories.fs.FsRepository\n  while locating 
org.elasticsearch.repositories.Repository\n\n1 error]; nested: 
BlobStoreException[Failed to create directory at [/mount/backups/my_backup]]; 
","status":500}

Here is our version of ES:

{
  "status" : 200,
  "name" : "Slither",
  "version" : {
    "number" : "1.0.1",
    "build_hash" : "5c03844e1978e5cc924dab2a423dc63ce881c42b",
    "build_timestamp" : "2014-02-25T15:52:53Z",
    "build_snapshot" : false,
    "lucene_version" : "4.6"
  },

I spent quite a long time trying to find something on the web in all the ES 
threads but without any luck....Am I missing something obvious???

Many thanks in advance for your help.

Kind regards

Fred



--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/25e30d61-6148-452a-975c-0a04d992ebb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/etPan.5376357b.7644a45c.f868%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to