# Elasticsearch service not starting

**URL:** <https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954>\
**Category:** Elasticsearch\
**Created:** [July 9, 2023, 8:35am UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954 "2023-07-09T08:35:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jefferson\_Lourthusam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jefferson_lourthusam/32/123228_2.png) [@Jefferson\_Lourthusam](https://discuss.elastic.co/u/Jefferson_Lourthusam)\
**Post date:** [July 9, 2023, 8:35am UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/1 "2023-07-09T08:35:42Z")

</div>

Elasticsearch service not starting , we can see below in Elasticsearch-STG logs

low disk watermark [85%] exceeded on free: 37.4gb[14.9%], replicas will not be assigned to this node

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2023, 8:39am UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/2 "2023-07-09T08:39:22Z")

</div>

That would not prevent the node from starting. Please share the full logs from startup.

---

<div class="post-metadata">

**Author:** ![Jefferson\_Lourthusam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jefferson_lourthusam/32/123228_2.png) [@Jefferson\_Lourthusam](https://discuss.elastic.co/u/Jefferson_Lourthusam)\
**Post date:** [July 9, 2023, 9:41am UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/3 "2023-07-09T09:41:21Z")

</div>

let me explain our scenario. we are trying to take snapshot of elasticsearch using below

PUT \_snapshot/my\_backup  
{  
"type": "fs",  
"settings": {  
"location": "\server\Backups"  
}  
}

we are getting this error message

"type" : "repository\_exception",  
"reason" : "[my\_backup] location [//server/Backups] doesn't match any of the locations specified by path.repo because this setting is empty"

so we add the path.repo in the elasticsearch.yml

after adding path.repo, the service does not start.

however, after undo the changes in the elasticsearch.yml, the service is starting.

please let us know why

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2023, 9:50am UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/4 "2023-07-09T09:50:08Z")

</div>

I assume you have not added `path.repo` correctly. Please show the config as well as the logs resulting from starting with this config.

---

<div class="post-metadata">

**Author:** ![Jefferson\_Lourthusam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jefferson_lourthusam/32/123228_2.png) [@Jefferson\_Lourthusam](https://discuss.elastic.co/u/Jefferson_Lourthusam)\
**Post date:** [July 9, 2023, 1:16pm UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/5 "2023-07-09T13:16:23Z")

</div>

bootstrap.memory\_lock: false  
cluster.initial\_master\_nodes:

- XYZABCVMYCLG201  
cluster.name: Elasticsearch-STG  
http.port: 9200  
network.host: 0.0.0.0  
node.data: true  
node.ingest: true  
node.master: true  
node.max\_local\_storage\_nodes: 1  
node.name: XYZABCVMYCLG201  
path.data: D:\elasticsearch\_data\data  
path.logs: D:\elasticsearch\_data\logs  
transport.tcp.port: 9300  
xpack.license.self\_generated.type: basic  
xpack.security.enabled: false  
path.repo : ["\XYZABCVMYCLG201\Backups"]

Please find below the logs:

[2023-07-09T12:52:59,586][WARN][o.e.r.f.FsRepository] [XYZABCVMYCLG201] The specified location [//XYZABCVMYCLG201/Backups] should start with a repository path specified by the path.repo setting, but the path.repo setting was not set on this node  
[2023-07-09T12:52:59,586][WARN][o.e.r.RepositoriesService] [XYZABCVMYCLG201] failed to create repository [fs][my\_backup]  
org.elasticsearch.repositories.RepositoryException: [my\_backup] location [//XYZABCVMYCLG201/Backups] doesn't match any of the locations specified by path.repo because this setting is empty

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 9, 2023, 3:17pm UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/6 "2023-07-09T15:17:49Z")

</div>

There seem to be a discrepancy between use of forward slashes and backslashes. Make sure it is consistent and that the directory is mounted. I am not a Windows user so am not sure what does and does not work on Windows.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 6, 2023, 3:18pm UTC](https://discuss.elastic.co/t/elasticsearch-service-not-starting/337954/7 "2023-08-06T15:18:15Z")

</div>

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