Hi Mushahid,
When you get "Wazuh dashboard server is not ready yet" error it normally indicates that the Wazuh dashboard cannot communicate with the indexer.
Let's instigate the issue about the Wazuh Dashboard:
Make sure that your Wazuh-indexer services are up and running.
systemctl status wazuh-indexer
Check if you have right indexer IP/address and Dashboard certs in the Dashboard configuration file.
/etc/wazuh-dashboard/opensearch_dashboards.yml
Check that wazuh Indexer IP is updated in Wazuh dashboard configuration file opensearch_dashboards.yml
opensearch.hosts: https://<Wazuh-IndexerIP>:9200
Run this command to find the indexer IP
head /etc/wazuh-indexer/opensearch.yml
Run this command to check certificate names. Ensure the paths and filenames match in the configuration
ls -lrt /etc/wazuh-dashboard/certs/
And then restart the Wazuh dashboard service.
systemctl status wazuh-dashboard
Run this command to verify that your Dashboard service can communicate with the indexer service with kibanaserver user
Need to run this command from Dashboard server |
curl -XGET -k -u kibanaserver:pass "https://<Indexer_IP>:9200/_cluster/health"
If the curl request fails this output
curl: (7) Failed to connect to <ip> port 9200 after 0 ms: Connection refused
Check if there is any network connectivity blockage due to the firewall.
If you see no output or authentication error try changing the kibanaserver password.
To update the password for the kibanaserver user, simply changing the <KIBANASERVER_PASSWORD> in the Wazuh Dashboard keystore with the old password might not work. Here's what to do:
Run this command to change the password:
/usr/share/wazuh-indexer/plugins/opensearch-security/tools/wazuh-passwords-tool.sh -u kibanaserver -p '<new_password>'
Make sure the password is between 8 and 64 characters, and includes upper/lowercase letters, numbers, and a symbol (.*+?-).
If you using single node setup, it automatically updates the passwords in the Wazuh dashboard node.
In Wazuh dashboard node, run the following command to update the kibanaserver password in the Wazuh dashboard keystore. Replace <KIBANASERVER_PASSWORD> with the random password generated in the first step.
echo <KIBANASERVER_PASSWORD> | /usr/share/wazuh-dashboard/bin/opensearch-dashboards-keystore --allow-root add -f --stdin opensearch.password
Ref: https://documentation.wazuh.com/current/user-manual/user-administration/password-management.html
Issue still persists, please provide the output of below below-mentioned commands and the above findings to investigate the issue further.
journalctl -u wazuh-dashboard
cat /usr/share/wazuh-dashboard/data/wazuh/logs/wazuhapp.log | grep -i -E "error|warn"
cat /var/log/wazuh-indexer/wazuh-cluster.log | grep -i -E "error|warn"
Let me know the update for further assistance.
Regards,Make sure that your Wazuh-indexer services are up and running.
systemctl status wazuh-indexer
Check if you have right indexer IP/address and Dashboard certs in the Dashboard configuration file.
/etc/wazuh-dashboard/opensearch_dashboards.yml
Check that wazuh Indexer IP is updated in Wazuh dashboard configuration file opensearch_dashboards.yml opensearch.hosts: https://<Wazuh-IndexerIP>:9200
Run this command to find the indexer IP
head /etc/wazuh-indexer/opensearch.yml
Run this command to check certificate names. Ensure the paths and filenames match in the configuration
ls -lrt /etc/wazuh-dashboard/certs/
And then restart the Wazuh dashboard service.
systemctl status wazuh-dashboard
curl -XGET -k -u kibanaserver:***** "https://******9200/_cluster/health"
{"cluster_name":"wazuh-cluster","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"discovered_master":true,"discovered_cluster_manager":true,"active_primary_shards":827,"active_shards":827,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":100.0}
What to do next as I am getting same error dashboard not ready