# Elasticsearch not starting on boot

**URL:** <https://discuss.elastic.co/t/elasticsearch-not-starting-on-boot/211779>\
**Category:** Elasticsearch\
**Created:** [December 13, 2019, 11:09am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-on-boot/211779 "2019-12-13T11:09:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NogNeetMachinaal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nogneetmachinaal/32/58893_2.png) [@NogNeetMachinaal](https://discuss.elastic.co/u/NogNeetMachinaal)\
**Post date:** [December 13, 2019, 11:09am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-on-boot/211779/1 "2019-12-13T11:09:28Z")

</div>

Team,

More often then not, ElasticSearch is not starting after reboot.  
It is added to systemd =\> at least an attempt is made.  
But I need to do a manual service eleasticsearch restart to get it up.

When researching the logs for errors, there is only one error in the GC log:  
GC(0) Pause Young (Allocation Failure)  
However, there are no JVM-logs and/or stack traces.  
In addition, the ElasticSearch log of the cluster is empty.

For those who are interested and want to give this a closer look:  
I have created a [ZIP-file](https://nc.it-visibility.net/index.php/s/XrQDaLbHEw9YDJg) with the logs and config files after boot. This file can be downloaded [here](https://nc.it-visibility.net/index.php/s/XrQDaLbHEw9YDJg).

I'm running version 7.5 on Ubuntu 18.04.3-LTS.

Thank you for any help/feedback/suggestions,

- Will

---

<div class="post-metadata">

**Author:** ![NogNeetMachinaal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nogneetmachinaal/32/58893_2.png) [@NogNeetMachinaal](https://discuss.elastic.co/u/NogNeetMachinaal)\
**Post date:** [December 14, 2019, 10:32am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-on-boot/211779/2 "2019-12-14T10:32:55Z")

</div>

It looks like I was able to fix it by the pointers in this post:

> [@Elastisearch timeout on service start after yum update from 7.3 to 7.4](https://discuss.elastic.co/t/elastisearch-timeout-on-service-start-after-yum-update-from-7-3-to-7-4/201863/3):
>
> I guess its memory related, stopped kibana & logstash, and then started elasticsearch, and it did start without any issues

For Ubuntu 18.04 this is done via '/etc/systemd/system.conf'.  
I have modified the following parameters:  
DefaultTimeoutStartSec=900s  
DefaultTimeoutStopSec=900s

The original value was 90s.

Kind regards - Will

---

<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:** [January 11, 2020, 10:32am UTC](https://discuss.elastic.co/t/elasticsearch-not-starting-on-boot/211779/3 "2020-01-11T10:32:57Z")

</div>

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