# ElasticSearch doesn't initialize

**URL:** <https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123>\
**Category:** Elasticsearch\
**Created:** [January 25, 2018, 9:25pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123 "2018-01-25T21:25:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 25, 2018, 9:25pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/1 "2018-01-25T21:25:00Z")

</div>

I use ElasticSearch with a Rails application and the ES stopped. I have tried several tips from other users with similar problem and nothing happens.

What I do:

start the service with "sudo service elasticsearch start" and nothing appears  
check the status with "service elasticsearch status" and the console show inactive service.

The error raised by the Rails server is: Faraday::ConnectionFailed: Couldn't connect to server.

I was using the ES without problems until now and I dont know what caused this.

P.S. I installed the ES using repository

Thanks for the help

---

<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:** [January 25, 2018, 9:47pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/2 "2018-01-25T21:47:40Z")

</div>

Are you running on Linux?  
Did you upgrade the Kernel?

---

<div class="post-metadata">

**Author:** ![Gambit](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gambit/32/26982_2.png) [@Gambit](https://discuss.elastic.co/u/Gambit)\
**Post date:** [January 25, 2018, 10:37pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/3 "2018-01-25T22:37:19Z")

</div>

The log of elasticsearch has some info?  
It might help pinpoint the problem.  
Rails is probably giving the "Faraday::ConnectionFailed: Couldn't connect to server" because the elastic isnt up.

---

<div class="post-metadata">

**Author:** ![tomcgn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomcgn/32/26983_2.png) [@tomcgn](https://discuss.elastic.co/u/tomcgn)\
**Post date:** [January 25, 2018, 10:41pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/4 "2018-01-25T22:41:28Z")

</div>

Possibly a duplicate of [Elasticsearch dead recently without modify anything](https://discuss.elastic.co/t/elasticsearch-dead-recently-without-modify-anything/116839)?

---

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 26, 2018, 2:42pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/5 "2018-01-26T14:42:29Z")

</div>

Yes. Ubuntu 16.04 LTS. It wasn't upgraded.

---

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 26, 2018, 2:44pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/6 "2018-01-26T14:44:36Z")

</div>

The logs are empty.

---

<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:** [January 26, 2018, 9:04pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/7 "2018-01-26T21:04:13Z")

</div>

As @tomcgn wrote in the other thread, could you check `sudo journalctl -xe`?

---

<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:** [January 27, 2018, 7:03am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/9 "2018-01-27T07:03:15Z")

</div>

Check the kernel and system logs. May be it has been updated?

What is your OS?

---

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 27, 2018, 11:36pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/11 "2018-01-27T23:36:01Z")

</div>

Thanks for all, but the service is running now.

What I did:

- Removed the ES (version 2.4.6) with apt remove
- Installed ES (version 6.1.2) with sudo dpkg -i  
(this version showed a error with java: minimum version required is 8)
- Update java to version 8  
(in this moment the ES was working, but I noticed that the version was wrong)
- Remove ES with sudo dpkg -r
- Installed ES (2.4.6) with apt-get

Just the version 6 showed a log for the error.

That's all, guys. I don't know if update java is the solution and this is the reason I described all the steps.

To everbody asking what was the logs: There wasn't logs (Yeah, I dont know why)

---

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 27, 2018, 11:36pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/12 "2018-01-27T23:36:28Z")

</div>

Ubuntu 16.04 LTS

---

<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:** [January 28, 2018, 3:26am UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/13 "2018-01-28T03:26:07Z")

</div>

That's clearly sounds like a buggy Kernel. You should really check it.  
I'm afraid you are just hiding a more important problem here.

---

<div class="post-metadata">

**Author:** ![cfls](https://avatars.discourse-cdn.com/v4/letter/c/f17d59/32.png) [@cfls](https://discuss.elastic.co/u/cfls)\
**Post date:** [January 28, 2018, 4:54pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/14 "2018-01-28T16:54:32Z")

</div>

Thanks for this advice. I'll check this and even post the logs here as soon as possible (There was a system crash recently).

---

<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:** [February 25, 2018, 4:54pm UTC](https://discuss.elastic.co/t/elasticsearch-doesnt-initialize/117123/15 "2018-02-25T16:54:39Z")

</div>

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