# I cant start up Elastic search

**URL:** <https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348>\
**Category:** Elasticsearch\
**Created:** [October 26, 2020, 4:38pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348 "2020-10-26T16:38:09Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fisnik\_Myrtezaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fisnik_myrtezaj/32/77781_2.png) [@Fisnik\_Myrtezaj](https://discuss.elastic.co/u/Fisnik_Myrtezaj)\
**Post date:** [October 26, 2020, 4:38pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/1 "2020-10-26T16:38:09Z")

</div>

When i try startup the elasticsearch i get this error :

> ./bin/elasticsearch-env: line 77: /volume1/web/elasticsearch/jdk/bin/java: cannot execute binary file: Exec format error

im using Linux nas synology

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [October 27, 2020, 12:17am UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/2 "2020-10-27T00:17:10Z")

</div>

It seems the Java bundled with Elasticsearch can't be executed. Can you try installing the [Synology Java8 package](https://www.synology.com/en-uk/dsm/packages/Java8) and setting the `JAVA_HOME` environment variable to point to wherever Synology installs Java, and then try to run Elasticsearch again?

---

<div class="post-metadata">

**Author:** ![Fisnik\_Myrtezaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fisnik_myrtezaj/32/77781_2.png) [@Fisnik\_Myrtezaj](https://discuss.elastic.co/u/Fisnik_Myrtezaj)\
**Post date:** [October 27, 2020, 4:31pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/3 "2020-10-27T16:31:11Z")

</div>

ok Thank you i start it by localhost but if i want to connect by ip i get connect closed !

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [October 27, 2020, 9:40pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/4 "2020-10-27T21:40:50Z")

</div>

Can you paste the full Elasticsearch startup log?

Can you connect locally from the Synology command line, e.g. with `curl localhost:9200`? _Not_ from your computer with `http://IP address:9200`.

There may also be something networking or firewall related which you're better off asking the Synology NAS community about.

---

<div class="post-metadata">

**Author:** ![Fisnik\_Myrtezaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fisnik_myrtezaj/32/77781_2.png) [@Fisnik\_Myrtezaj](https://discuss.elastic.co/u/Fisnik_Myrtezaj)\
**Post date:** [October 28, 2020, 2:25pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/5 "2020-10-28T14:25:08Z")

</div>

i found this

network.host: 127.0.0.1  
http.host: 0.0.0.0

Thank you

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [October 28, 2020, 2:45pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/6 "2020-10-28T14:45:47Z")

</div>

Right, okay, but what happens when you run `curl localhost:9200` from the Synology NAS? I'm trying to check if you can even access Elasticsearch locally on the machine it's running on.

---

<div class="post-metadata">

**Author:** ![Fisnik\_Myrtezaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fisnik_myrtezaj/32/77781_2.png) [@Fisnik\_Myrtezaj](https://discuss.elastic.co/u/Fisnik_Myrtezaj)\
**Post date:** [October 28, 2020, 2:50pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/7 "2020-10-28T14:50:27Z")

</div>

I cant install on synology nas coz i have DS411j and that does not support java 8... i get an root from other server and i have resolved my problems...

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [October 29, 2020, 6:00pm UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/8 "2020-10-29T18:00:28Z")

</div>

Ah ok. I'm glad to hear the problem is fixed at least. Can you post how you resolved your problem? It might help someone else :).

---

<div class="post-metadata">

**Author:** ![Fisnik\_Myrtezaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fisnik_myrtezaj/32/77781_2.png) [@Fisnik\_Myrtezaj](https://discuss.elastic.co/u/Fisnik_Myrtezaj)\
**Post date:** [October 30, 2020, 8:07am UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/9 "2020-10-30T08:07:44Z")

</div>

Yes sure i forgot...

After i have install java script 11 i have install too elasticsearch in the elasticsearch su network i have put this settings...

> ```
> # ---------------------------------- Network -----------------------------------
> 
> ```
> 
> # 
> 
> # Set the bind address to a specific IP (IPv4 or IPv6):
> 
> # 
> 
> network.host: 127.0.0.1  
> http.host: 0.0.0.0
> 
> # 
> 
> # Set a custom port for HTTP:
> 
> # 
> 
> http.port: 9200
> 
> # 
> 
> # For more information, consult the network module documentation.

---

<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:** [November 27, 2020, 8:07am UTC](https://discuss.elastic.co/t/i-cant-start-up-elastic-search/253348/10 "2020-11-27T08:07:47Z")

</div>

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