# Kibana service running but port 5601 not opened

**URL:** <https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415>\
**Category:** Kibana\
**Created:** [March 12, 2020, 8:45pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415 "2020-03-12T20:45:02Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 12, 2020, 8:45pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/1 "2020-03-12T20:45:03Z")

</div>

I'm new to kibana and I'm facing a problem I'm following [https://digitalave.github.io/spring/2020/01/15/Install-and-configre-wazuh-security-monitoring-and-detection-system.html](https://digitalave.github.io/spring/2020/01/15/Install-and-configre-wazuh-security-monitoring-and-detection-system.html) tutorial to setup everything my kibana.yml looks like  
server.port: 5601  
server.host: "ip of my server"  
elasticsearch.hosts: ["[http://127.0.0.1:9200](http://127.0.0.1:9200)"]

netstat -natp | grep 560 returns nothing and port number 5601 is not opened.

systemctl status -l kibana.service return  
● kibana.service - Kibana  
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: disabled)  
Active: active (running) since Thu 2020-03-12 16:44:41 EDT; 1s ago  
Main PID: 15579 (node)  
CGroup: /system.slice/kibana.service  
└─15579 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

Mar 12 16:44:41 Wazuh systemd[1]: kibana.service holdoff time over, scheduling restart.  
Mar 12 16:44:41 Wazuh systemd[1]: Stopped Kibana.  
Mar 12 16:44:41 Wazuh systemd[1]: Started Kibana.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:45am UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/2 "2020-03-13T00:45:49Z")

</div>

Hello,

Are there any other Kibana logs in the logging destination or in systemd?

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 6:46am UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/3 "2020-03-13T06:46:08Z")

</div>

last 10 lines of /var/log/kibana/kibana.log  
{"type":"log","@timestamp":"2020-03-13T06:45:33Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
{"type":"log","@timestamp":"2020-03-13T06:45:33Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}  
{"type":"log","@timestamp":"2020-03-13T06:45:36Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
{"type":"log","@timestamp":"2020-03-13T06:45:36Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}  
{"type":"log","@timestamp":"2020-03-13T06:45:38Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
{"type":"log","@timestamp":"2020-03-13T06:45:38Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}  
{"type":"log","@timestamp":"2020-03-13T06:45:41Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
{"type":"log","@timestamp":"2020-03-13T06:45:41Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}  
{"type":"log","@timestamp":"2020-03-13T06:45:43Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
{"type":"log","@timestamp":"2020-03-13T06:45:43Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}

and  
curl http://my\_server\_ip:9200 return  
{  
"name" : "node-1",  
"cluster\_name" : "elasticsearch",  
"cluster\_uuid" : "N2USPGkIRei-hDSF4bfDyA",  
"version" : {  
"number" : "7.6.1",  
"build\_flavor" : "default",  
"build\_type" : "rpm",  
"build\_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",  
"build\_date" : "2020-02-29T00:15:25.529771Z",  
"build\_snapshot" : false,  
"lucene\_version" : "8.4.0",  
"minimum\_wire\_compatibility\_version" : "6.8.0",  
"minimum\_index\_compatibility\_version" : "6.0.0-beta1"  
},  
"tagline" : "You Know, for Search"  
}

but curl [http://127.0.0.1:9200](http://127.0.0.1:9200) return  
curl: (7) Failed connect to 127.0.0.1:9200; Connection refused

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 11:02am UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/4 "2020-03-13T11:02:02Z")

</div>

I managed to start port but now it says Kibana server is not ready yet.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:27pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/5 "2020-03-13T12:27:05Z")

</div>

If the port is open now, you can try restarting the server and the "Kibana Server is not ready" message will disappear in at most 1 minute after starting the server.

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 12:35pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/6 "2020-03-13T12:35:05Z")

</div>

I had started it from last night but still gave same "Kibana server is not ready yet"

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:37pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/7 "2020-03-13T12:37:45Z")

</div>

Is the elasticsearch.host set to `my_server_ip:9200` or to `127.0.0.1:9200` in kibana.yml?

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 12:43pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/8 "2020-03-13T12:43:29Z")

</div>

yea I changed elasticsearch.hosts: ["[http://127.0.0.1:9200](http://127.0.0.1:9200)"] to elasticsearch.hosts: ["http://my\_server\_ip:9200"] and that's why kibana's port is open but now I'm facing the problem is "Kibana server is not ready yet" on kibana port 5601

my installed versions  
wazuh manager - 3.11.4-1  
filebeat - 7.6.1  
elasticsearch - 7.6.1  
kibana - 7.6.1  
wazuh app for kibana - 3.11.4\_7.6.1

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 12:51pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/9 "2020-03-13T12:51:37Z")

</div>

Are you getting the same errors in the Kibana log now?

> ["warning","elasticsearch","admin"],"pid":16454,"message":"Unable to revive connection: [http://127.0.0.1:9200/](http://127.0.0.1:9200/)"}  
> {"type":"log","@timestamp":"2020-03-13T06:45:43Z","tags":["warning","elasticsearch","admin"],"pid":16454,"message":"No living connections"}

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 1:00pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/10 "2020-03-13T13:00:34Z")

</div>

There is not any log file only two files in /var/log/kibana/ is kibana.stderr kibana.stdout

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [March 13, 2020, 1:06pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/11 "2020-03-13T13:06:18Z")

</div>

Anything in those files?

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 13, 2020, 3:31pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/12 "2020-03-13T15:31:34Z")

</div>

Nope both files are blank.  
here is log while running kibana manually  
[root@server bin]# ./kibana --allow-root  
log [16:05:52.073] [info][plugins-service] Plugin "case" is disabled.  
log [16:06:30.737] [info][plugins-system] Setting up [37] plugins: [taskMana ger,siem,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canv as,timelion,features,security,apm\_oss,translations,reporting,uiActions,data,navi gation,status\_page,share,newsfeed,kibana\_legacy,management,dev\_tools,inspector,e xpressions,visualizations,embeddable,advancedUiActions,dashboard\_embeddable\_cont ainer,home,spaces,cloud,apm,graph,eui\_utils,bfetch]  
log [16:06:30.738] [info][plugins][taskManager] Setting up plugin  
log [16:06:30.790] [info][plugins][siem] Setting up plugin  
log [16:06:30.791] [info][licensing][plugins] Setting up plugin  
log [16:06:30.794] [info][infra][plugins] Setting up plugin  
log [16:06:30.794] [info][encryptedSavedObjects][plugins] Setting up plugin  
log [16:06:30.795] [warning][config][encryptedSavedObjects][plugins] Generat ing a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to de crypt encrypted saved objects attributes after restart, please set xpack.encrypt edSavedObjects.encryptionKey in kibana.yml  
log [16:06:30.800] [info][code][plugins] Setting up plugin  
log [16:06:30.801] [info][plugins][usageCollection] Setting up plugin  
log [16:06:30.803] [info][metrics][plugins] Setting up plugin  
log [16:06:30.804] [info][canvas][plugins] Setting up plugin  
log [16:06:30.809] [info][plugins][timelion] Setting up plugin  
log [16:06:30.810] [info][features][plugins] Setting up plugin  
log [16:06:30.811] [info][plugins][security] Setting up plugin  
log [16:06:30.812] [warning][config][plugins][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml  
log [16:06:30.813] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.  
log [16:06:30.836] [info][apm\_oss][plugins] Setting up plugin  
log [16:06:30.837] [info][plugins][translations] Setting up plugin  
log [16:06:30.837] [info][data][plugins] Setting up plugin  
log [16:06:30.843] [info][plugins][share] Setting up plugin  
log [16:06:30.844] [info][home][plugins] Setting up plugin  
log [16:06:30.850] [info][plugins][spaces] Setting up plugin  
log [16:06:30.876] [info][cloud][plugins] Setting up plugin  
log [16:06:30.877] [info][apm][plugins] Setting up plugin  
log [16:06:30.883] [info][graph][plugins] Setting up plugin  
log [16:06:30.886] [info][bfetch][plugins] Setting up plugin  
log [16:06:30.893] [info][savedobjects-service] Waiting until all Elasticsea rch nodes are compatible with Kibana before starting saved objects migrations...  
log [16:06:30.929] [info][savedobjects-service] Starting saved objects migra tions  
log [16:06:31.100] [info][plugins-system] Starting [22] plugins: [taskManage r,siem,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canvas ,timelion,features,security,apm\_oss,translations,data,share,home,spaces,cloud,ap m,graph,bfetch]  
log [16:06:32.898] [info][optimize] Optimizing and caching bundles for core, graph, monitoring, space\_selector, login, overwritten\_session, logout, logged\_o ut, ml, dashboardViewer, apm, maps, canvas, infra, siem, uptime, lens, wazuh, ki bana, stateSessionStorageRedirect, status\_page and timelion. This may take a few minutes

---

<div class="post-metadata">

**Author:** ![mohmmadyahya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohmmadyahya/32/47012_2.png) [@mohmmadyahya](https://discuss.elastic.co/u/mohmmadyahya)\
**Post date:** [March 16, 2020, 2:54pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/13 "2020-03-16T14:54:48Z")

</div>

Hi, Thank you for helping.  
I managed to start everything perfectly.  
The problem was elasticsearch service was not started now everything works perfectly.

---

<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:** [April 13, 2020, 2:54pm UTC](https://discuss.elastic.co/t/kibana-service-running-but-port-5601-not-opened/223415/14 "2020-04-13T14:54:52Z")

</div>

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