# Elasticsearch does not start

**URL:** <https://discuss.elastic.co/t/elasticsearch-does-not-start/336261>\
**Category:** Elasticsearch\
**Tags:** runtime-fields\
**Created:** [June 16, 2023, 8:33pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261 "2023-06-16T20:33:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pan\_sjan](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pan\_sjan](https://discuss.elastic.co/u/pan_sjan)\
**Post date:** [June 16, 2023, 8:33pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/1 "2023-06-16T20:33:50Z")

</div>

I am using the es 7.17.10 tarball from  
[https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.10-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.10-linux-x86_64.tar.gz)

The Java version I have is JDK 18

```auto
# /usr/java/latest/bin/java -version
openjdk version "18.0.2" 2022-07-19
OpenJDK Runtime Environment (build 18.0.2+9-61)
OpenJDK 64-Bit Server VM (build 18.0.2+9-61, mixed mode, sharing)

```

When I launch ES, I get:

```auto
# /usr/java/latest/bin/java -cp /usr/share/elasticsearch/lib/\*: org.elasticsearch.bootstrap.Elasticsearch
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:416)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:83)

```

The same is true when I use the bundled JDK

```auto
# ./bin/elasticsearch
Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release
        at java.base/java.lang.System.setSecurityManager(System.java:416)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:83)

```

This is a clean setup with no existing data.  
I need 7.x to help migrate data from 6.x. If I am able to get this node up, then I can migrate my data.

Any help or pointers would help.  
Thanks

---

<div class="post-metadata">

**Author:** ![Priscilla\_Parodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/priscilla_parodi/32/43047_2.png) [@Priscilla\_Parodi](https://discuss.elastic.co/u/Priscilla_Parodi)\
**Post date:** [June 16, 2023, 10:11pm UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/2 "2023-06-16T22:11:16Z")

</div>

Hello @pan_sjan,

Welcome to the community!

It seems like this is an active [bug](https://github.com/elastic/elasticsearch/issues/85665), but there is a suggested solution there.

Perhaps this step-by-step will be helpful:

Downgrade from `openjdk@18` to `openjdk@17`  
`brew uninstall --ignore-dependencies openjdk@18`  
`brew install openjdk@17`

Installing `elasticsearch@6` upgrades `openjdk` to `openjdk@18` to avoid that ignore dependencies while installing

`brew install --ignore-dependencies elasticsearch@6`

Make sure you don't have multiple versions of openjdk using `brew list`

Make sure you remove openjdk@18 otherwise ES will use 18.

Hope it helps!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 17, 2023, 3:45am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/3 "2023-06-17T03:45:32Z")

</div>

Hi @pan_sjan Welcome to the community.

Exactly what OS are you on?

---

<div class="post-metadata">

**Author:** ![pan\_sjan](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pan\_sjan](https://discuss.elastic.co/u/pan_sjan)\
**Post date:** [June 17, 2023, 6:09am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/4 "2023-06-17T06:09:20Z")

</div>

Thank you. JDK 17 works.

---

<div class="post-metadata">

**Author:** ![pan\_sjan](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@pan\_sjan](https://discuss.elastic.co/u/pan_sjan)\
**Post date:** [June 17, 2023, 6:09am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/5 "2023-06-17T06:09:55Z")

</div>

CentOS 7.

---

<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:** [July 15, 2023, 6:09am UTC](https://discuss.elastic.co/t/elasticsearch-does-not-start/336261/6 "2023-07-15T06:09:59Z")

</div>

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