# Elasticsearch fails very shortly after launch

**URL:** <https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460>\
**Category:** Elasticsearch\
**Created:** [July 19, 2019, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460 "2019-07-19T23:31:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![james-r](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@james-r](https://discuss.elastic.co/u/james-r)\
**Post date:** [July 19, 2019, 11:31pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/1 "2019-07-19T23:31:15Z")

</div>

Running Ubuntu 18.04.2 LTS, fresh install.  
Some output from terminal:

```
user@guest:~$ java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)

user@guest:~$ ls /usr/lib/jvm
default-java java-1.11.0-openjdk-amd64 java-11-openjdk-amd64

user@guest:~$ echo $JAVA_HOME
usr/lib/jvm/java-1.11.0-openjdk-amd64

user@guest:~$ service elasticsearch status
● elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-07-20 01:09:57 CEST; 6s ago
     Docs: http://www.elastic.co
  Process: 5407 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=
 Main PID: 5407 (code=exited, status=1/FAILURE)

lug 20 01:09:36 guest systemd[1]: Started Elasticsearch.
lug 20 01:09:37 guest elasticsearch[5407]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecat
lug 20 01:09:57 guest systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
lug 20 01:09:57 guest systemd[1]: elasticsearch.service: Failed with result 'exit-code'.

```

Installation process: Step 2 described here [https://tecadmin.net/setup-elasticsearch-on-ubuntu/](https://tecadmin.net/setup-elasticsearch-on-ubuntu/).  
I haven't edited any configuration file.  
Content of var/log/elasticsearch: [https://pastebin.com/raw/JnqNhJPK](https://pastebin.com/raw/JnqNhJPK).

---

<div class="post-metadata">

**Author:** ![james-r](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@james-r](https://discuss.elastic.co/u/james-r)\
**Post date:** [July 20, 2019, 6:59am UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/2 "2019-07-20T06:59:20Z")

</div>

I followed this guide ([https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html)) on a new Ubuntu 18.04.2 LTS install on VirtualBox. I did not install anything else other than what showed in that link. Still after running  
`./elasticsearch`  
this is what I get on terminal: [https://pastebin.com/raw/K4LAwv1n](https://pastebin.com/raw/K4LAwv1n).  
How do I get Elasticsearch to work?

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [July 20, 2019, 12:03pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/3 "2019-07-20T12:03:16Z")

</div>

SO you followed 2 different install guides? I've seen lots of problems when people use install guides other than the vendors guide for the version they are installing.

But, from the error, does the /tmp/elasticsearch-xxx.xxx/ directory exist?

---

<div class="post-metadata">

**Author:** ![james-r](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@james-r](https://discuss.elastic.co/u/james-r)\
**Post date:** [July 20, 2019, 12:14pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/4 "2019-07-20T12:14:53Z")

</div>

No, the folder does not exist.  
The first attempt follows the guide linked in the OP while the second follows the official guide from the website ([https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started-install.html)).  
Both using a clean install of 18.04.2 LTS, and the second attempt on VirtualBox.  
First log on the first post and second log on the second post.

I tried to install it on an old laptop and it worked at my first attempt, using the guide from the ES website.  
I think that my desktop CPU is even older:

```
Memory: 9,3 GiB
Processor: AMD® Phenom(tm) ii x4 955 (2009)
OS type: 64-bit
Disk: 116,6 GB

```

It does not support SSE4.2 which I've seen mentioned here: [Failed to start Machine Learning on Elasticsearch 7.0.0](https://discuss.elastic.co/t/failed-to-start-machine-learning-on-elasticsearch-7-0-0/178216/4).  
But I can't get to work older version of ES either.  
See the log of version **5.2.0** : [https://pastebin.com/raw/8kfj4KVM](https://pastebin.com/raw/8kfj4KVM).  
Attempt with **6.8.1** :

```
user@guest:~/elasticsearch-6.8.1$ cd distribution/src/bin
user@guest:~/elasticsearch-6.8.1/distribution/src/bin$ ./elasticsearch
Error: Could not find or load main class org.elasticsearch.tools.java_version_checker.JavaVersionChecker
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.tools.java_version_checker.JavaVersionChecker
```

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [July 20, 2019, 8:56pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/5 "2019-07-20T20:56:15Z")

</div>

Maybe try a downloaded appliance to get around the install problems.. [https://bitnami.com/stack/elasticsearch/virtual-machine](https://bitnami.com/stack/elasticsearch/virtual-machine)

---

<div class="post-metadata">

**Author:** ![james-r](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@james-r](https://discuss.elastic.co/u/james-r)\
**Post date:** [July 21, 2019, 2:05pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/6 "2019-07-21T14:05:05Z")

</div>

I can install it but not run it.  
I give up and maybe check it out later on when I have a new computer.  
Sucks because Ubuntu/Mint is quite snappy on this machine.

---

<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:** [August 18, 2019, 2:05pm UTC](https://discuss.elastic.co/t/elasticsearch-fails-very-shortly-after-launch/191460/7 "2019-08-18T14:05:07Z")

</div>

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