Error: path.repo is empty .. status 500

Hi,
I am using Elasticsearch 2.3.0 and Kibana 4.5.0 with sense 2.0.0 plugin on CENTOS 7(KDE). I did not do snapshot and restore.

Firstly,I created my_backup file in /backup directory and I define full permission for my_backup file.
After, I created path.repo in etc/elasticseach.yml:

.........
marvel.agent.exporters:

  id1:
    type: http
    host: ["http://es-mon-1:9200", "http://es-mon2:9200"]
    path.repo: ["/backup/my_backup"]

My codes snapshot code on sense editor:

PUT /_snapshot/my_backup1
{
  "type": "fs",
  "settings": {
    "location":"/backup/my_backup",
    "compress":true,
    "chunk_size": "10m"
  }
}

However it is not working. Error:

{
   "error": {
      "root_cause": [
         {
            "type": "repository_exception",
            "reason": "[my_backup1] failed to create repository"
         }
      ],
      "type": "repository_exception",
      "reason": "[my_backup1] failed to create repository",
      "caused_by": {
         "type": "creation_exception",
         "reason": "Guice creation errors:\n\n1) Error injecting constructor, RepositoryException[[my_backup1] location [/backup/my_backup] doesn't match any of the locations specified by path.repo because this setting is empty]\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",
         "caused_by": {
            "type": "repository_exception",
            "reason": "[my_backup1] location [/backup/my_backup] doesn't match any of the locations specified by path.repo because this setting is empty"
         }
      }
   },
   "status": 500
}

Please help me. Thank you

If that first set of quotes is how you did it, that'd be why.
Yaml is white space sensitive so you will need to remove the ones before path.repo and then restart ES.

Yes I did.
It works fine.
Thank you :slight_smile: