# Elasticsearch won't start after 7.9.1 to 7.9.2 upgrade

**URL:** <https://discuss.elastic.co/t/elasticsearch-wont-start-after-7-9-1-to-7-9-2-upgrade/249878>\
**Category:** Elasticsearch\
**Created:** [September 24, 2020, 9:36pm UTC](https://discuss.elastic.co/t/elasticsearch-wont-start-after-7-9-1-to-7-9-2-upgrade/249878 "2020-09-24T21:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![niklaskurvinen](https://avatars.discourse-cdn.com/v4/letter/n/cdc98d/32.png) [@niklaskurvinen](https://discuss.elastic.co/u/niklaskurvinen)\
**Post date:** [September 25, 2020, 9:16am UTC](https://discuss.elastic.co/t/elasticsearch-wont-start-after-7-9-1-to-7-9-2-upgrade/249878/2 "2020-09-25T09:16:30Z")

</div>

I'm seeing the same thing on Ubuntu 18.04.

A quick google of the error tells me it's related to this:

> ### Upgrades
> 
> Infra/Packaging
> 
> - Upgrade the bundled JDK to JDK 15 [#62580](https://github.com/elastic/elasticsearch/pull/62580)

**UPDATE:**  
So my automated approach of updating elasticsearch ignores any new versions of configuration files. Forcing reinstall using `sudo apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss" elasticsearch` gave me an updated jvm.options that solves the issue. Here's the diff:

```auto
# diff jvm.options jvm.options.dpkg-old
36,38c36,38
< 8-13:-XX:+UseConcMarkSweepGC
< 8-13:-XX:CMSInitiatingOccupancyFraction=75
< 8-13:-XX:+UseCMSInitiatingOccupancyOnly
---
> -XX:+UseConcMarkSweepGC
> -XX:CMSInitiatingOccupancyFraction=75
> -XX:+UseCMSInitiatingOccupancyOnly
41,48c41,47
< # NOTE: G1 GC is only supported on JDK version 10 or later
< # to use G1GC, uncomment the next two lines and update the version on the
< # following three lines to your version of the JDK
< # 10-13:-XX:-UseConcMarkSweepGC
< # 10-13:-XX:-UseCMSInitiatingOccupancyOnly
< 14-:-XX:+UseG1GC
< 14-:-XX:G1ReservePercent=25
< 14-:-XX:InitiatingHeapOccupancyPercent=30
---
> # NOTE: G1GC is only supported on JDK version 10 or later.
> # To use G1GC uncomment the lines below.
> # 10-:-XX:-UseConcMarkSweepGC
> # 10-:-XX:-UseCMSInitiatingOccupancyOnly
> # 10-:-XX:+UseG1GC
> # 10-:-XX:G1ReservePercent=25
> # 10-:-XX:InitiatingHeapOccupancyPercent=30

```

I'm no Java expert, so to summarize: Make sure you use the latest jvm.options (don't forget to save a backup of your old one in case of custom modifications) and hopefully elasticsearch starts just fine.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-wont-start-after-7-9-1-to-7-9-2-upgrade/249878)._
