I updated Kibana and Elasticsearch from version 7.5.2 to 7.6.2 and received an error - KIbana server not ready yet. I do not see anything suspicious in the logs except that the Kibana service is restarted every four minutes by unknown reason. I will very appreciate some help, thank you.
I don't see anything weird in any of the logs. If I understand the issue correctly - the Kibana server starts but it restarts itself every 4 minutes? Are you self-hosting Kibana server? Or somewhere in the cloud?
Yes, we're have self-hosted Kibana and Elastic. Yes, Kibana starts correctly, as far as i know, but web-interface doesn't load properly and show error.
Check that Elasticsearch instance is running correctly curl -X GET "localhost:9200/_cluster/health?pretty"
Check that you accidentally don't have a previous Kibana instance running
Verify that kibana is not trying to load some plugins which are not installed on the master node
Restart Kibana server
If none of that doesn't help, delete .kibana* indices from Elasticsearch. Note that this will delete your Kibana data (dashboards, visualizations etc).
In your kibana.yml file could you please update the following setting: logging.verbose: true (notice you'll need to uncomment it if commented out now), restart Kibana and paste the logs again?
Looks like it runs the optimizer, but that shouldn't fail. What happens if you remove the /optimize folder from the Kibana install dir? Maybe something got corrupted there and it messing with the optimizer service.
Hello, @Marius_Dragomir, thank you for the reply.
Now it failed with the next errors:
апр 16 12:20:20 kibana kibana[21025]: {"type":"log","@timestamp":"2020-04-16T12:20:20Z","tags":["fatal","root"],"pid":21025,"message":"{ [Error: ENOENT: no such file or directory, mkdir] errno: -2, code: 'ENOENT', syscall: 'mkdir' }"}
апр 16 12:20:20 kibana kibana[21025]: FATAL Error: ENOENT: no such file or directory, mkdir
апр 16 12:20:21 kibana systemd[1]: kibana.service: main process exited, code=exited, status=1/FAILURE
Then I made /optimize folder manually and set it owner to kibana. It returns to the beginning of all.
Hi again, @Marius_Dragomir, @majagrubic
I have found a solution. I increased NODE_OPTIONS="--max_old_space_size=2048" in /etc/default/kibana to 4096 and started the kibana in manual mode, not as a service. Optimization took place in 4 minutes and the service started up successfully.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.