Kibana Server is not ready yet 2020

Hello, I am having always the same issue with the kibana webpage.
I am trying to install kibana and elasticsearch in a Xubuntu (Ubuntu 20.04 LTS)VM on VirtualBox.
I have 2 CPUs and 5GB of RAM.

I have checked for all the questions about this topic but have never found any solution. I have installed kibana and ES following the steps set in the website
I am running both version 7.6.2

/usr/share/kibana/bin/kibana --version --allow-root
7.6.2
Babel could not write cache to file: /usr/share/kibana/optimize/.babel_register_cache.json
due to a permission issue. Cache is disabled.

Here are both config files:

KIBANA.yml
server.port: 5601
server.host: "192.168.1.76"
elasticsearch.hosts: ["http://192.168.1.76:9200"]

ELASTIC.yml
network.host: 192.168.1.76
http.port: 9200
discovery.seed_hosts: ["192.168.1.76"]

sudo systemctl status elasticsearch.service
? elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-05-10 00:45:51 CEST; 26min ago
Docs: [http://www.elastic.co](http://www.elastic.co/)
Main PID: 786 (java)
Tasks: 39 (limit: 5884)
Memory: 849.6M
CGroup: /system.slice/elasticsearch.service
?? 786 /usr/share/elasticsearch/jdk/bin/java -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xs>
??1046 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

may 10 00:44:35 s21sec-VirtualBox systemd[1]: Starting Elasticsearch...
may 10 00:44:39 s21sec-VirtualBox elasticsearch[786]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will lik>
may 10 00:45:51 s21sec-VirtualBox systemd[1]: Started Elasticsearch.

Elastic seems to be fine:
curl http://192.168.1.76:9200
{
"name" : "s21sec-VirtualBox",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "na",
"version" : {
"number" : "7.6.2",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "ef48eb35cf30adf4db14086e8aabd07ef6fb113f",
"build_date" : "2020-03-26T06:34:37.794943Z",
"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"
}

The problems are in kibana:

kibana.service - Kibana
Loaded: loaded (/etc/systemd/system/kibana.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-05-10 00:44:31 CEST; 28min ago
Main PID: 550 (node)
Tasks: 11 (limit: 5884)
Memory: 446.5M
CGroup: /system.slice/kibana.service
??550 /usr/share/kibana/bin/../node/bin/node /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml

may 10 00:45:42 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:42Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"No living connections"}
may 10 00:45:44 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:44Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"Unable to revive connection: http://192.168.1.76:9200/"}
may 10 00:45:44 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:44Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"No living connections"}
may 10 00:45:47 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:47Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"Unable to revive connection: http://192.168.1.76:9200/"}
may 10 00:45:47 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:47Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"No living connections"}
may 10 00:45:49 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:49Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"Unable to revive connection: http://192.168.1.76:9200/"}
may 10 00:45:49 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:49Z","tags":["warning","elasticsearch","admin"],"pid":550,"message":"No living connections"}
may 10 00:45:52 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:45:52Z","tags":["info","savedobjects-service"],"pid":550,"message":"Starting saved objects migrations"}
may 10 00:46:22 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:46:22Z","tags":["warning","savedobjects-service"],"pid":550,"message":"Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms"}
may 10 00:49:05 s21sec-VirtualBox kibana[550]: {"type":"log","@timestamp":"2020-05-09T22:49:05Z","tags":["warning","savedobjects-service"],"pid":550,"message":"Unable to connect to Elasticsearch. Error: [master_not_discovered_exception] null"}

curl [http://192.168.1.76:5601](http://192.168.1.76:5601/)
Kibana server is not ready yet

the logs when I restart kibana:

sudo journalctl --unit=kibana -f

may 10 02:08:57 s21sec-VirtualBox systemd[1]: kibana.service: Succeeded.
may 10 02:08:57 s21sec-VirtualBox systemd[1]: Stopped Kibana.
may 10 02:08:57 s21sec-VirtualBox systemd[1]: Started Kibana.
may 10 02:09:03 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:03Z","tags":["info","plugins-service"],"pid":5254,"message":"Plugin \"case\" is disabled."}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins-system"],"pid":5254,"message":"Setting up [37] plugins: [taskManager,siem,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canvas,timelion,features,security,apm_oss,translations,reporting,uiActions,data,navigation,status_page,share,newsfeed,kibana_legacy,management,dev_tools,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,home,spaces,cloud,apm,graph,eui_utils,bfetch]"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","taskManager"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","siem"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","licensing"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","infra"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","encryptedSavedObjects"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["warning","plugins","encryptedSavedObjects","config"],"pid":5254,"message":"Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","code"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","usageCollection"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","metrics"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","canvas"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","timelion"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","features"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","security"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["warning","plugins","security","config"],"pid":5254,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["warning","plugins","security","config"],"pid":5254,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","apm_oss"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","translations"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","data"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","share"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","home"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","spaces"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","cloud"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","apm"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","graph"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","plugins","bfetch"],"pid":5254,"message":"Setting up plugin"}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","savedobjects-service"],"pid":5254,"message":"Waiting until all Elasticsearch nodes are compatible with Kibana before starting saved objects migrations..."}
may 10 02:09:09 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:09Z","tags":["info","savedobjects-service"],"pid":5254,"message":"Starting saved objects migrations"}
may 10 02:09:39 s21sec-VirtualBox kibana[5254]: Could not create APM Agent configuration: Request Timeout after 30000ms
may 10 02:09:39 s21sec-VirtualBox kibana[5254]: {"type":"log","@timestamp":"2020-05-10T00:09:39Z","tags":["warning","savedobjects-service"],"pid":5254,"message":"Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms"}

I have seen that this information is also important for solving problems:

sudo lsof -i -nP | grep LISTEN
systemd-r 511 systemd-resolve 13u IPv4 16986 0t0 TCP 127.0.0.53:53 (LISTEN)
cupsd 536 root 6u IPv6 18658 0t0 TCP [::1]:631 (LISTEN)
cupsd 536 root 7u IPv4 18659 0t0 TCP 127.0.0.1:631 (LISTEN)
node 550 kibana 18u IPv4 28480 0t0 TCP 192.168.1.76:5601 (LISTEN)
sshd 664 root 3u IPv4 19254 0t0 TCP *:22 (LISTEN)
sshd 664 root 4u IPv6 19256 0t0 TCP *:22 (LISTEN)
apache2 691 root 4u IPv6 19294 0t0 TCP *:80 (LISTEN)
apache2 692 www-data 4u IPv6 19294 0t0 TCP *:80 (LISTEN)
apache2 693 www-data 4u IPv6 19294 0t0 TCP *:80 (LISTEN)
java 786 elasticsearch 211u IPv6 31661 0t0 TCP 192.168.1.76:9300 (LISTEN)
java 786 elasticsearch 225u IPv6 35500 0t0 TCP 192.168.1.76:9200 (LISTEN)

I will appreciate any help.
Thanks!!

That really should work, I don't see any issues in your config, just a problem communication between Kibana and ES.
Can you try using 0.0.0.0 as the host both ES and Kibana? (just replace 192.168.1.76 with 0.0.0.0 in all places in kibana.yml and elasticsearch.yml) and then restart both. It's the first step in troubleshooting for now.

Thanks for the replay. I still have the same output for the kibana status: Unable to connect to Elasticsearch. Error: Request Timeout after 30000ms.

Maybe Xubuntu does not work well with ELK...??

I am going to move to docker, so this issue can be closed.
Thanks again

Hmm, i'll try as well locally on a xubuntu VM and if anything is wrong with it I'll open an issue in the repo.

Ok thanks.

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