Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to load Kibana on port 5601

I have installed Elasticsearch, Logstash, Kibana and Nginx following this guide,

https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-ubuntu-14-04

Elasticsearch is running on 9200

But running

curl http://localhost:5601

returns this:

curl: (7) Failed to connect to localhost port 5601: Connection refused

In kibana.yml file I configured

server.port: 5601

server.host: "127.0.0.1"

Here I also checked with localhost and aws private ip address.

And while checking the port running this:

netstat -anp | grep 5601

I am getting:

(No info could be read for "-p": geteuid()=1000 but you should be root.)

I can start kibana running:

sudo service kibana start

But while checking status using:

sudo service kibana status

I get:

kibana is not running

I haven't setup firewall and running

sudo ufw status

Returns:

Status : Inactive

I am confused, why is the kibana port not listening?

like image 783
Babeesh Avatar asked Feb 17 '16 11:02

Babeesh


2 Answers

You can check Kibana logs for why it is not starting at all. You may find things like kibana unable to connect elasticsearch at given url.

like image 147
avr Avatar answered Sep 27 '22 20:09

avr


Its running now. When I checked kibana log (vi /var/log/kibana/kibana.stderr)

Error: EACCES, permission denied '/opt/kibana/optimize/.babelcache.json'

So I changed permission for the file .babelcache.json

sudo chown -R kibana:root /opt/kibana/optimize/.babelcache.json

Then restarted kibana , and this solved the issue.

like image 42
Babeesh Avatar answered Sep 27 '22 20:09

Babeesh