Cannot register snapshot repository in Elasticsearch

2014-05-16 Thread Fred Ducrot
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 luckAm 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 elasticsearch+unsubscr...@googlegroups.com.
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.


Re: Cannot register snapshot repository in Elasticsearch

2014-05-16 Thread Fred Ducrot
Hi David,

Thanks for your prompt reply. It was a rights issue as you suspected. So it 
was VERY obvious!

Mental note: Don't try to do things on a Friday afternoon after an awfully 
tiring week! ;-)

Thanks again for your help.

Fred 

On Friday, 16 May 2014 17:57:46 UTC+2, David Pilato wrote:

 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 https://twitter.com/dadoonet | 
 @elasticsearchfrhttps://twitter.com/elasticsearchfr


 Le 16 mai 2014 à 17:55:28, Fred Ducrot (ducrot@gmail.com javascript:) 
 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 luckAm 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 elasticsearc...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/elasticsearch/25e30d61-6148-452a-975c-0a04d992ebb4%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/25e30d61-6148-452a-975c-0a04d992ebb4%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d4a73011-fd6e-437d-84e0-387cd771bc43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.