# Failed to start Elasticsearch

**URL:** <https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304>\
**Category:** Elasticsearch\
**Created:** [October 24, 2022, 9:23am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304 "2022-10-24T09:23:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 9:23am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/1 "2022-10-24T09:23:15Z")

</div>

Hello.

I'm having a problem with Elasticsearch, and I don't know much about Linux. It doesn't help!  
To run a mapping application (GeoNetwork), I need an instance of Elasticsearch. So I downloaded version 8.4.3 in tar.gz format, which I unpacked in /var/lib/.  
When I try to start the instance (sudo ./bin/elasticsearch), I get the message "ERROR: Elasticsearch exited unexpectedly".  
I don't see anything in the logs that would give me a lead.

For info, in parallel there are 2 instances of tomcat running on 8180 and 8280, with 2 mapping applications.

The problem may come from there? Do you have any idea?  
Thank you in advance for your help.

Log 1 (gc.log) :

```auto
[2022-10-24T10:01:53.300+0000][25045][gc,init] CardTable entry size: 512
[2022-10-24T10:01:53.300+0000][25045][gc] Using G1

```

Log 2 (gc.log.00) :

```auto
[2022-10-24T10:01:53.209+0000][25008][gc,init] CardTable entry size: 512
[2022-10-24T10:01:53.210+0000][25008][gc] Using G1
[2022-10-24T10:01:53.211+0000][25008][gc,init] Version: 18.0.2.1+1-1 (release)
[2022-10-24T10:01:53.211+0000][25008][gc,init] CPUs: 4 total, 4 available
[2022-10-24T10:01:53.211+0000][25008][gc,init] Memory: 5945M
[2022-10-24T10:01:53.211+0000][25008][gc,init] Large Page Support: Disabled
[2022-10-24T10:01:53.211+0000][25008][gc,init] NUMA Support: Disabled
[2022-10-24T10:01:53.211+0000][25008][gc,init] Compressed Oops: Enabled (32-bit)
[2022-10-24T10:01:53.211+0000][25008][gc,init] Heap Region Size: 1M
[2022-10-24T10:01:53.211+0000][25008][gc,init] Heap Min Capacity: 8M
[2022-10-24T10:01:53.211+0000][25008][gc,init] Heap Initial Capacity: 94M
[2022-10-24T10:01:53.211+0000][25008][gc,init] Heap Max Capacity: 1488M
[2022-10-24T10:01:53.211+0000][25008][gc,init] Pre-touch: Disabled
[2022-10-24T10:01:53.211+0000][25008][gc,init] Parallel Workers: 4
[2022-10-24T10:01:53.211+0000][25008][gc,init] Concurrent Workers: 1
[2022-10-24T10:01:53.211+0000][25008][gc,init] Concurrent Refinement Workers: 4
[2022-10-24T10:01:53.211+0000][25008][gc,init] Periodic GC: Disabled
[2022-10-24T10:01:53.211+0000][25008][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800bae000-0x0000000800bae000), size 12247040, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
[2022-10-24T10:01:53.211+0000][25008][gc,metaspace] Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824
[2022-10-24T10:01:53.211+0000][25008][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
[2022-10-24T10:01:53.236+0000][25008][gc,heap,exit] Heap
[2022-10-24T10:01:53.236+0000][25008][gc,heap,exit] garbage-first heap total 98304K, used 1472K [0x00000000a3000000, 0x0000000100000000)
[2022-10-24T10:01:53.236+0000][25008][gc,heap,exit] region size 1024K, 1 young (1024K), 0 survivors (0K)
[2022-10-24T10:01:53.236+0000][25008][gc,heap,exit] Metaspace used 53K, committed 128K, reserved 1114112K
[2022-10-24T10:01:53.236+0000][25008][gc,heap,exit] class space used 1K, committed 64K, reserved 1048576K

```

Log 3 (gc.log.01) :

```auto
[2022-10-24T10:01:53.254+0000][25027][gc,init] CardTable entry size: 512
[2022-10-24T10:01:53.254+0000][25027][gc] Using G1
[2022-10-24T10:01:53.259+0000][25027][gc,init] Version: 18.0.2.1+1-1 (release)
[2022-10-24T10:01:53.259+0000][25027][gc,init] CPUs: 4 total, 4 available
[2022-10-24T10:01:53.259+0000][25027][gc,init] Memory: 5945M
[2022-10-24T10:01:53.259+0000][25027][gc,init] Large Page Support: Disabled
[2022-10-24T10:01:53.259+0000][25027][gc,init] NUMA Support: Disabled
[2022-10-24T10:01:53.259+0000][25027][gc,init] Compressed Oops: Enabled (Zero based)
[2022-10-24T10:01:53.259+0000][25027][gc,init] Heap Region Size: 2M
[2022-10-24T10:01:53.259+0000][25027][gc,init] Heap Min Capacity: 2972M
[2022-10-24T10:01:53.259+0000][25027][gc,init] Heap Initial Capacity: 2972M
[2022-10-24T10:01:53.259+0000][25027][gc,init] Heap Max Capacity: 2972M
[2022-10-24T10:01:53.259+0000][25027][gc,init] Pre-touch: Disabled
[2022-10-24T10:01:53.259+0000][25027][gc,init] Parallel Workers: 4
[2022-10-24T10:01:53.259+0000][25027][gc,init] Concurrent Workers: 1
[2022-10-24T10:01:53.259+0000][25027][gc,init] Concurrent Refinement Workers: 4
[2022-10-24T10:01:53.259+0000][25027][gc,init] Periodic GC: Disabled
[2022-10-24T10:01:53.259+0000][25027][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800bae000-0x0000000800bae000), size 12247040, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
[2022-10-24T10:01:53.259+0000][25027][gc,metaspace] Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824
[2022-10-24T10:01:53.259+0000][25027][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
[2022-10-24T10:01:53.283+0000][25027][gc,heap,exit] Heap
[2022-10-24T10:01:53.283+0000][25027][gc,heap,exit] garbage-first heap total 3043328K, used 4014K [0x0000000746400000, 0x0000000800000000)
[2022-10-24T10:01:53.283+0000][25027][gc,heap,exit] region size 2048K, 2 young (4096K), 0 survivors (0K)
[2022-10-24T10:01:53.283+0000][25027][gc,heap,exit] Metaspace used 53K, committed 128K, reserved 1114112K
[2022-10-24T10:01:53.283+0000][25027][gc,heap,exit] class space used 1K, committed 64K, reserved 1048576K

```

---

<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:** [October 24, 2022, 11:04am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/2 "2022-10-24T11:04:34Z")

</div>

Welcome!

What is your Linux OS?

Did you check the installation documentation? The recommended way for Linux is [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html) or [Install Elasticsearch with Debian Package | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html) or [Install Elasticsearch with RPM | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html).

---

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 11:20am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/3 "2022-10-24T11:20:53Z")

</div>

Thanks you !

I use the Windowsfx 10 Free Edition Cinnamon.  
And yes, I followed the steps on this page : [Install Elasticsearch from archive on Linux or MacOS | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html).

if I need to, I can install another linux if you advise me to.

---

<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:** [October 24, 2022, 11:52am UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/4 "2022-10-24T11:52:17Z")

</div>

> [@nicolas2603](#):
>
> I use the Windowsfx 10 Free Edition Cinnamon.

Never heard about that.

Anyway. If it's unix compatible, you should read [the first link](https://www.elastic.co/guide/en/elasticsearch/reference/current/targz.html).

The commands in the documentation are:

```auto
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.3-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.3-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-8.4.3-linux-x86_64.tar.gz.sha512 
tar -xzf elasticsearch-8.4.3-linux-x86_64.tar.gz
cd elasticsearch-8.4.3/
./bin/elasticsearch

```

If this dos not work, please share the output.

---

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 1:15pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/5 "2022-10-24T13:15:12Z")

</div>

David,

I have just installed an Ubuntu VM to make sure it is compatible.  
I installed Java 8 (openjdk 8), Apache Tomcat 9, Geoserver, GeoNetwork, everything is OK.

I try to install Elasticsearch, I follow the procedure (wget, wget, shasum, tar, cd), no problem, but when I run the "./bin/elasticsearch" command, I get the same message as before:  
`ERROR: Elasticsearch exited unexpectedly`

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4dcd24814bec8a5a9865a6ee05dde1e46511275.png)

Could it be a rights issue? I run the command as a normal user

---

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 2:44pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/6 "2022-10-24T14:44:50Z")

</div>

Good. I've made some progress: after moving the Elasticsearch folder from my home folder to /var/lib/elasticsearch, and playing with permissions a bit, it looks like something is happening.

After loading a whole bunch of modules, I now see this kind of message scrolling all the time, and [http://localhost:9200](http://localhost:9200) returns an error.

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/6/b/6b19df7634c5b1a3b483e084219a5bb3352702f1.png)

Is this normal?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 24, 2022, 2:48pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/7 "2022-10-24T14:48:00Z")

</div>

Please avoid sharing screenshots of log errors, share the plaintext using the preformatted button, the `</>` in the text editor.

Screenshots are hard to read sometimes and some people may not even be able to see them.

In your case your log tells that you are sending plaintext request to an endpoint that is using TLS, it will not work, you need to send requests using `https` not `http`.

---

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 2:55pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/8 "2022-10-24T14:55:41Z")

</div>

Hello Leandro.

Ok, I understand about the captures, sorry.

As for sending the request, I didn't do anything but run Elasticsearch from the command line with :

`./bin/elasticsearch`

Is it a question of settings that I missed? A problem with the VM?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 24, 2022, 3:03pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/9 "2022-10-24T15:03:32Z")

</div>

> [@nicolas2603](#):
>
> Is it a question of settings that I missed? A problem with the VM?

No, something is sending logs to your Elasticsearch using `http`, it needs to use `https`.

---

<div class="post-metadata">

**Author:** ![nicolas2603](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas2603](https://discuss.elastic.co/u/nicolas2603)\
**Post date:** [October 24, 2022, 3:12pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/10 "2022-10-24T15:12:52Z")

</div>

Something.... OK !  
I have only installed GeoServer and GeoNetwork, and both services are stopped. So I have no idea where this is coming from.  
Pfff that's a complicated thing

EDIT : hum ok, it's when I go on [http://localhost:9200](http://localhost:9200) to see if Elasticsearch is running.

---

<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 21, 2022, 3:12pm UTC](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304/11 "2022-11-21T15:12:59Z")

</div>

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