Internal Server Error

Hello dear friends :slight_smile: 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 :hugs:

Did you get this fixed?
I am guessing you did based on your other topic - Error: Invalid snapshot name snapshot with the same name already in-progress

Yes yes the problem is not caused by my incorrect use of / or . I made a mistake while editing the environment variables.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.