# Elastic start but not open port

**URL:** <https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084>\
**Category:** Elasticsearch\
**Created:** [April 15, 2018, 4:01pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084 "2018-04-15T16:01:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NickOver](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@NickOver](https://discuss.elastic.co/u/NickOver)\
**Post date:** [April 15, 2018, 4:01pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/1 "2018-04-15T16:01:14Z")

</div>

Hi!  
I instal elastic on raspbian.  
After instalation i run it by type:  
`serivce elasticsearch start`

Output from  
`service elasticsearch status`

> ● elasticsearch.service - LSB: Starts elasticsearch  
> Loaded: loaded (/etc/init.d/elasticsearch; generated; vendor preset: enabled)  
> Active: active (exited) since Sun 2018-04-15 13:52:19 UTC; 2h 3min ago  
> Docs: man:systemd-sysv-generator(8)  
> Process: 1446 ExecStop=/etc/init.d/elasticsearch stop (code=exited, status=0/SUCCESS)  
> Process: 1480 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0/SUCCESS)  
> CGroup: /system.slice/elasticsearch.service

journalctl dont show any errors, i dont have blocked ports.

Also I try set ip address manualy by uncoment and change:  
`network.host: 127.0.0.1`  
But after restart anything was change.  
I try connect localy, by curl  
`curl -XGET 127.0.0.1:9200`  
`curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused`

Did u have any idea whats is wrong?

---

<div class="post-metadata">

**Author:** ![tomriley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomriley/32/29652_2.png) [@tomriley](https://discuss.elastic.co/u/tomriley)\
**Post date:** [April 15, 2018, 5:47pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/2 "2018-04-15T17:47:01Z")

</div>

Hey,

What do the Elasticsearch logs reveal? Typically the best best place to start when Elasticsearch won't start up.

You can typically find these in '/var/log/elasticsearch/\*' depending on your platform.

Cheers,  
Tom

---

<div class="post-metadata">

**Author:** ![NickOver](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@NickOver](https://discuss.elastic.co/u/NickOver)\
**Post date:** [April 15, 2018, 5:49pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/3 "2018-04-15T17:49:56Z")

</div>

The problem is i dont have any logs there. As i said elasticsearch start.

---

<div class="post-metadata">

**Author:** ![tomriley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomriley/32/29652_2.png) [@tomriley](https://discuss.elastic.co/u/tomriley)\
**Post date:** [April 15, 2018, 5:52pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/4 "2018-04-15T17:52:05Z")

</div>

What does a 'systemctl -l status elasticsearch' return beyond just the process info listed above?

---

<div class="post-metadata">

**Author:** ![NickOver](https://avatars.discourse-cdn.com/v4/letter/n/74df32/32.png) [@NickOver](https://discuss.elastic.co/u/NickOver)\
**Post date:** [April 15, 2018, 6:17pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/5 "2018-04-15T18:17:42Z")

</div>

```
● elasticsearch.service - LSB: Starts elasticsearch
   Loaded: loaded (/etc/init.d/elasticsearch; generated; vendor preset: enabled)
   Active: active (exited) since Sun 2018-04-15 16:09:09 UTC; 2h 6min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3304 ExecStop=/etc/init.d/elasticsearch stop (code=exited, status=0/S
  Process: 3337 ExecStart=/etc/init.d/elasticsearch start (code=exited, status=0

Apr 15 16:09:08 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...
Apr 15 16:09:09 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.

```

/var/log/elasticsearch:

> root@raspberrypi:/var/log/elasticsearch# ls -al  
> total 8  
> drwxr-xr-x 2 elasticsearch elasticsearch 4096 May 20 2016 .  
> drwxr-xr-x 7 root root 4096 Apr 15 13:39 ..  
> root@raspberrypi:/var/log/elasticsearch#

---

<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:** [May 13, 2018, 6:17pm UTC](https://discuss.elastic.co/t/elastic-start-but-not-open-port/128084/6 "2018-05-13T18:17:58Z")

</div>

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