{
"error": "RepositoryException[[es_backup_basic] failed to create repository]; nested: CreationException[Guice creation errors:\n\n1) Error injecting constructor, org.elasticsearch.repositories.RepositoryException: [es_backup_basic] location [/backup/es_backup_basic] doesn't match any of the locations specified by path.repo because this setting is empty\n at org.elasticsearch.repositories.fs.FsRepository.(Unknown Source)\n while locating org.elasticsearch.repositories.fs.FsRepository\n while locating org.elasticsearch.repositories.Repository\n\n1 error]; nested: RepositoryException[[es_backup_basic] location [/backup/es_backup_basic] doesn't match any of the locations specified by path.repo because this setting is empty]; ",
"status": 500
}
So it seems that repo.path is not defined...
But the problem is that I have this option in my elasticsearch.yml :
@paulz sorry, I think I mis understood the comment from @tarunsapra. I read it as an ask for the path.repo variable to be documented which has already been done. I didn't realise that there was extra information that might need to be added to this. Feel free to submit a PR for the documentation if you think it could benefit form extra information
@colings86 I'm sorry too.
In fact I was a little bit sarcastic in my reply. It's because I have found the solution myself, but nobody explain me why it did not work in a standard way...
I think that there is some problem with my install, but I could not find what is wrong and why path.repo: ["/backup/es_backup_basic"] setting does not work.
The setting about path.repo is already in documentation, I confirm
My hint to set it in options for DAEMON... I do not think it deserves to be in the official doc. It probably just a little hint.
I have same problem:
RepositoryException[[es_backup_basic] location [/backup/es_backup_basic]
doesn't match any of the locations specified by path.repo because this
setting is empty]; ",
"status": 500
But ı am using centos . My /etc/init.d codes:
REPO_DIR="/backup/my_backup"
and
daemon --user $ES_USER --pidfile $pidfile $exec -p $pidfile -d -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.conf=$CONF_DIR-Des.default.path.repo=$REPO_DIR "
It is true?
Can you help me please?
Here's how I did it. My situation is a bit different, each node is a KVM machine so at the end the NFS was written by kvm user and I gave it chmod 777 to make this happen.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.