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

Hello Team

I installed Kibana in docker, while the first set up it showed

[2022-11-07T09:58:18.929+00:00][INFO ][node] Kibana process configured with roles: [background_tasks, ui]
[2022-11-07T09:58:40.484+00:00][INFO ][plugins-service] Plugin "cloudExperiments" is disabled.
[2022-11-07T09:58:40.495+00:00][INFO ][plugins-service] Plugin "profiling" is disabled.
[2022-11-07T09:58:40.580+00:00][FATAL][root] Error: Port 5601 is already in use. Another instance of Kibana may be running!
    at Root.shutdown (/usr/share/kibana/src/core/server/root/index.js:81:18)
    at Root.preboot (/usr/share/kibana/src/core/server/root/index.js:50:18)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at bootstrap (/usr/share/kibana/src/core/server/bootstrap.js:99:9)
    at Command.<anonymous> (/usr/share/kibana/src/cli/serve/serve.js:216:5)

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

And I tried ps aux | grep kibana, lsof -i:5601, ss -lntup | grep 5601 I can only know 5601 is listening but dont know the PID.

The content of my kibana.yml is:

# ** THIS IS AN AUTO-GENERATED FILE **
#

# Default Kibana configuration for docker target
server.host: "0.0.0.0"
server.shutdownTimeout: "5s"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
monitoring.ui.container.elasticsearch.enabled: true

Any help please.

Are you sure there are no other docker containers using the host port? Does docker ps show any other running containers?

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