# Elasticsearch 7.10 does not start on MacOS

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740>\
**Category:** Elasticsearch\
**Created:** [November 26, 2020, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740 "2020-11-26T08:49:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [November 26, 2020, 8:49am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/1 "2020-11-26T08:49:19Z")

</div>

I am very confused. I've downloaded the latest ELK stack to make a test on my machine. I am on MacOS 10.15.7 and Java 11

Here's what I did:

1. Unzip the tar somewhere in my home directory
2. cd to the elasticsearch
3. invoke bin/elasticsearch

I get a blank screen, no logs, nothing. Something seems to be running but the port does not answer to request. I have no logs either.

---

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [November 26, 2020, 8:52am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/2 "2020-11-26T08:52:03Z")

</div>

As always, you need to report the issue to get more feedback. So it took several minutes before I got any log at all. Is that normal? Is it normal that an out-of-the-box run on MacOs fails with

> ElasticsearchException[Failure running machine learning native code. This could be due to running on an unsupported OS or distribution, missing OS libraries, or a problem with the temp directory. To bypass this problem by running Elasticsearch without machine learning functionality set [xpack.ml.enabled: false].]

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 26, 2020, 10:02am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/3 "2020-11-26T10:02:28Z")

</div>

Hey Stéphane

Long time no see on the road ☹

I just tried it locally. Same MacOS version.

```auto
wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-darwin-x86_64.tar.gz
tar xzf elasticsearch-7.10.0-darwin-x86_64.tar.gz
cd elasticsearch-7.10.0
bin/elasticsearch

```

And everything went well on my side.

Note that Elasticsearch is providing a default JVM for the machine so normally everything should be ok.

I'm wondering if there are any global java options, or settings that would overload the default behavior...

Could you check your jvm settings if any? Like do you have a `$JAVA_HOME` set? In which case `bin/elasticsearch-env` uses it.

This is the bundled JVM BTW:

```auto
$ elasticsearch-7.10.0/jdk.app/Contents/Home/bin/java --version
openjdk 15.0.1 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)

```

---

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [November 26, 2020, 12:32pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/4 "2020-11-26T12:32:18Z")

</div>

> [@dadoonet](#):
>
> ```auto
> wget --no-check-certificate https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0-darwin-x86_64.tar.gz
> tar xzf elasticsearch-7.10.0-darwin-x86_64.tar.gz
> cd elasticsearch-7.10.0
> bin/elasticsearch
> 
> ```

I had indeed a `JAVA_HOME` set (or `java` on my path in general). I unset the former and that didn't change anything. I copy/pasted the 4 instructions above and I had to wait 4+ minutes to get anything showing up (once it had downloaded and extracted the bits).

I can see a number of process running. `JavaVersionChecker`. Then nothing for a long period of time, `jps` not showing any extra process.

A colleague with similar setup as mine does not have the problem and I have no idea where that could come from.

---

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [November 26, 2020, 12:39pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/5 "2020-11-26T12:39:52Z")

</div>

More data point, running `bin/elasticsearch-env` manually takes a lot of time to complete: around 90 seconds!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 26, 2020, 12:44pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/6 "2020-11-26T12:44:21Z")

</div>

Weird. @DavidTurner could you help?

---

<div class="post-metadata">

**Author:** ![snicoll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snicoll/32/20285_2.png) [@snicoll](https://discuss.elastic.co/u/snicoll)\
**Post date:** [November 26, 2020, 12:56pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/7 "2020-11-26T12:56:01Z")

</div>

So a reboot fixed it. That's frustrating, I have no idea what the problem was. Thanks for following-up David!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 26, 2020, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/8 "2020-11-26T13:17:49Z")

</div>

> [@snicoll](#):
>
> So a reboot fixed it.

🥳

> [@snicoll](#):
>
> That's frustrating, I have no idea what the problem was.

😱

---

<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:** [December 24, 2020, 1:17pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-does-not-start-on-macos/256740/9 "2020-12-24T13:17:50Z")

</div>

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