Issues with Kibana installation

PLEASE CAN YOU ALL HELP I AM SEEINFG THIS ERROR IN THE KIBANA.LOG

   service":{"node":{"roles":["background_tasks","ui"]}},"ecs":{"version":"8.6.1"                                                                             },"@timestamp":"2024-02-29T16:25:33.899+01:00","message":"Failure during install                                                                             ation of common resources shared between all indices. Timeout: it took more than                                                                              1200000ms","error":{"message":"Failure during installation of common resources                                                                              shared between all indices. Timeout: it took more than 1200000ms","type":"Error"                                                                             ,"stack_trace":"Error: Failure during installation of common resources shared be                                                                             tween all indices. Timeout: it took more than 1200000ms\n    at installWithTimeo                                                                             ut (/usr/share/kibana/node_modules/@kbn/alerting-plugin/server/alerts_service/li                                                                             b/install_with_timeout.js:59:13)\n    at ResourceInstaller.installCommonResource                                                                             s (/usr/share/kibana/node_modules/@kbn/rule-registry-plugin/server/rule_data_plu                                                                             gin_service/resource_installer.js:42:5)"},"log":{"level":"ERROR","logger":"plugi                                                                             ns.ruleRegistry"},"process":{"pid":144914,"uptime":1223.070632747},"trace":{"id"                                                                             :"681a0fe3b7c071709139003b4e3174b6"},"transaction":{"id":"219200a5e6fb5950"}}

From what I understand from the log, I believe you took a long time to generate the elasticsearch token for Kibana to connect. After installing elasticsearch, access credentials are created and then you need to install Kibana and generate a connection token. I recommend taking a look at the installation documentation Installing the Elastic Stack | Elastic Installation and Upgrade Guide [8.12] | Elastic.

Another possibility is to upload the stack to a container GitHub - deviantony/docker-elk: The Elastic stack (ELK) powered by Docker and Compose..

Hello
Thanks for your reply
I am thinking of reinstalling the whole elasticsearch and kibanA AT THE SAME TIME

i do get a message when using the rpm -e

rpm --erase elasticsearch-8.12.2-x86_64.rpm

error: package elasticsearch-8.12.2-x86_64.rpm is not installed
and the same for kibana
But we know it is installed and when try to reinstall i am getting this message

rpm --reinstall elasticsearch-8.12.2-x86_64.rpm
Job for systemd-sysctl.service failed because the control process exited with error code.
See "systemctl status systemd-sysctl.service" and "journalctl -xe" for details.
Couldn't write '1' to 'kernel/nmi_watchdog': Unknown error 524
warning: %transfiletriggerin(systemd-239-45.el8_4.2.x86_64) scriptlet failed, exit status 1
[/usr/lib/tmpfiles.d/elasticsearch.conf:1] Line references path below legacy directory /var/run/, updating /var/run/elasticsearch → /run/elasticsearch; please update the tmpfiles.d/ drop-in file accordingly.
[root@xxxxxxxxxx tmp]# timed out waiting for input: auto-logout

I understand that you are using a Linux distro based on Red Hat. Is the selinux feature disabled? Try to remove the package via dnf or yum commands and then clear the cache of packages already installed on the system with the yum clean packages command.

I always prefer to install packages directly from the repository: Install Elasticsearch with RPM | Elasticsearch Guide [8.12] | Elastic

As I already suggested, another even faster alternative is to upload the elastic stack using a container.

I have deleted both packages and want to reinstall again
I am following both sites
Install Elasticsearch with RPM | Elasticsearch Guide [8.12] | Elastic
Install Kibana with RPM | Kibana Guide [8.12] | Elastic
and creating the token immediately

I have deleted all the kibana and elasticsearch on the same box but when i do a find
/]# find . -name elasticsearch -print
./usr/share/elasticsearch
./usr/share/kibana/node_modules/@elastic/elasticsearch
./usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/public/applications/elasticsearch
./usr/share/kibana/node_modules/@kbn/fleet-plugin/server/services/epm/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/common/http_api/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/application/pages/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/components/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/components/metricbeat_migration/instruction_steps/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/lib/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/lib/metrics/elasticsearch
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/routes/api/v1/elasticsearch
./usr/share/kibana/node_modules/@kbn/security-plugin/server/elasticsearch
./usr/share/kibana/node_modules/@kbn/synthetics-plugin/public/apps/synthetics/state/elasticsearch
./var/lib/elasticsearch
./etc/elasticsearch
and also with kibana

find . -name kibana -print
./usr/share/kibana
./usr/share/kibana/node_modules/@kbn/canvas-plugin/public/services/kibana
./usr/share/kibana/node_modules/@kbn/cases-plugin/public/common/lib/kibana
./usr/share/kibana/node_modules/@kbn/custom-integrations-plugin/public/services/kibana
./usr/share/kibana/node_modules/@kbn/enterprise-search-plugin/public/applications/shared/kibana
./usr/share/kibana/node_modules/@kbn/fleet-plugin/server/services/epm/kibana
./usr/share/kibana/node_modules/@kbn/health-gateway-server/src/kibana
./usr/share/kibana/node_modules/@kbn/ml-plugin/public/application/contexts/kibana
./usr/share/kibana/node_modules/@kbn/ml-plugin/server/models/data_recognizer/modules/apache_ecs/kibana
./usr/share/kibana/node_modules/@kbn/ml-plugin/server/models/data_recognizer/modules/auditbeat_process_docker_ecs/kibana
./usr/share/kibana/node_modules/@kbn/ml-plugin/server/models/data_recognizer/modules/nginx_ecs/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/common/http_api/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/application/pages/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/components/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/public/components/metricbeat_migration/instruction_steps/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/lib/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/lib/metrics/kibana
./usr/share/kibana/node_modules/@kbn/monitoring-plugin/server/routes/api/v1/kibana
./usr/share/kibana/node_modules/@kbn/osquery-plugin/public/common/lib/kibana
./usr/share/kibana/node_modules/@kbn/security-plugin/public/management/roles/edit_role/privileges/kibana
./usr/share/kibana/node_modules/@kbn/security-solution-plugin/public/common/lib/kibana
./usr/share/kibana/node_modules/@kbn/triggers-actions-ui-plugin/public/common/lib/kibana
./var/lib/kibana
./etc/kibana
Please advise

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