Hello dear friends I have a problem. First thing I want to do is: I want to backup the indexes I created before, so I created some folders in "C:\ "and added them to my elasticsearch.yml file.Then I restarted elasticsearch from task manager. Then I ran the kibana.bat file. When I make a query in Kibana, I get an error like "doesn't match any of the locations specified by path.repo because this setting is empty".If I want to create a new repository by following the path below on the kibana side, an error appears in the kiabana.bat file.
my elasticsearch.yml file:
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#s
path.data: C:/data
#
# Path to log files:
#
path.logs: C:/logs
path.repo: C:/esbackup
#
The query and error message I'm trying to run on the kibana dev tools side:
PUT /_snapshot/esbackup
{
"type": "fs",
"settings": {
"location": "C:/esbackup",
"compress": true
}
}
Error message:
"error" : {
"root_cause" : [
{
"type" : "repository_exception",
"reason" : "[esbackup] location [C:/esbackup] doesn't match any of the locations specified by path.repo because this setting is empty"
}
],
"type" : "repository_exception",
"reason" : "[esbackup] failed to create repository",
"caused_by" : {
"type" : "repository_exception",
"reason" : "[esbackup] location [C:/esbackup] doesn't match any of the locations specified by path.repo because this setting is empty"
}
},
"status" : 500
}
When I want to create a new repository by following this path on the kibana side (Dashboard>Snapshot and Restore>Repositories>Register a repository), the error message I get from the kibana.bat file is:
Error: Internal Server Error
at HapiResponseAdapter.toError (C:\elastic_stack\kibana-7.13.2-windows-x86_64\src\core\server\http\router\response_adapter.js:124:19)
at HapiResponseAdapter.toHapiResponse (C:\elastic_stack\kibana-7.13.2-windows-x86_64\src\core\server\http\router\response_adapter.js:78:19)
at HapiResponseAdapter.handle (C:\elastic_stack\kibana-7.13.2-windows-x86_64\src\core\server\http\router\response_adapter.js:73:17)
at Router.handle (C:\elastic_stack\kibana-7.13.2-windows-x86_64\src\core\server\http\router\router.js:164:34)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at handler (C:\elastic_stack\kibana-7.13.2-windows-x86_64\src\core\server\http\router\router.js:124:50)
at exports.Manager.execute (C:\elastic_stack\kibana-7.13.2-windows-x86_64\node_modules\@hapi\hapi\lib\toolkit.js:60:28)
at Object.internals.handler (C:\elastic_stack\kibana-7.13.2-windows-x86_64\node_modules\@hapi\hapi\lib\handler.js:46:20)
at exports.execute (C:\elastic_stack\kibana-7.13.2-windows-x86_64\node_modules\@hapi\hapi\lib\handler.js:31:20)
at Request._lifecycle (C:\elastic_stack\kibana-7.13.2-windows-x86_64\node_modules\@hapi\hapi\lib\request.js:370:32)
at Request._execute (C:\elastic_stack\kibana-7.13.2-windows-x86_64\node_modules\@hapi\hapi\lib\request.js:279:9)
I would be very happy if you help me