Kibana - Port 5601 is already in use. Another instance of Kibana may be running!

Im trying to setup ELK stack version 7.5.1 in my 64 bit windows machine. But, im always keep on getting the following error whenever i tried to start Kibana. Also, I checked using netstat -ano | findstr 5601. It returned no results. I just followed the steps given in the official website. Also, i have configured the elastic search hosts in the kibana yml config file.

C:\Softwares\ELK\kibana-7.5.1-windows-x86_64\bin>netstat -ano | findstr :5601

C:\Softwares\ELK\kibana-7.5.1-windows-x86_64\bin>netstat -ano | findstr 5601

Error Log :-
log [13:46:29.336] [info][status][plugin:reporting@7.5.1] Status changed from uninitialized to green - Ready
log [13:46:29.378] [info][listening] Server running at http://localhost:5601
log [13:46:29.436] [fatal][root] Error: Port 5601 is already in use. Another instance of Kibana may be running!
at Root.shutdown (C:\Softwares\ELK\kibana-7.5.1-windows-x86_64\src\core\serv
er\root\index.js:67:18)
at Root.start (C:\Softwares\ELK\kibana-7.5.1-windows-x86_64\src\core\server
root\index.js:57:18)
at process._tickCallback (internal/process/next_tick.js:68:7)
log [13:46:29.458] [info][plugins-system] Stopping all plugins.
log [13:46:29.459] [info][data][plugins] Stopping plugin
log [13:46:29.460] [info][plugins][translations] Stopping plugin
log [13:46:29.461] [info][plugins][spaces] Stopping plugin
log [13:46:29.462] [info][features][plugins] Stopping plugin
log [13:46:29.463] [info][plugins][timelion] Stopping plugin
log [13:46:29.464] [info][code][plugins] Stopping plugin
log [13:46:29.465] [info][licensing][plugins] Stopping plugin
log [13:46:29.467] [info][plugins][security] Stopping plugin

FATAL Error: Port 5601 is already in use. Another instance of Kibana may be running!

Its throwing the same error though no other process is using this 5601. Same happens when i give different port number.

Please help me to resolve this. Any help is much appreciated!! Thanks in advance.

Something seems wrong, because if the server couldn't start, I don't think you would see

log [13:46:29.378] [info][listening] Server running at http://localhost:5601

What command are you using to start Kibana, or is this installed as a service?

Based on some tests I did, it looks like your log file is a merge of multiple instances of Kibana.

Can you share more information about what setup steps you followed?

Thanks for your response. I downloaded the kibana set up for Windows and unzipped it. Then, I modified the kibana.yml for elastic Search host. Finally, initiated the kibana.bat from the command prompt.

One more thing I noted is that, same steps working fine in Windows 10 and I can launch the Kibana successfully. But, it's not working in Windows 8.1. not sure that could be a reason but just want to highlight that.

That is strange. It sounds like it could be a bug with the launching script.

Would you mind filing an issue on this behavior at https://github.com/elastic/kibana/issues/new?template=Bug_report.md?

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