Hi Anurudra,
I can't say too much just looking at the errors you have sent, it will be nice if you can click in "See the full error" and take another screenshot, mostly for the first and second errors.
I am thinking why sometimes you can log normally and other times you got this error, if you try log in again or just trying a few minutes after, does it work?
I believe you could have an issue related to Wazuh API authentication, basically every time you access the dashboard, there are some background requests to Wazuh API to pull new info from the Wazuh Manager databases. According to the last error you have, the authorization token is not working properly.
Maybe you can check your API credentials and give them a try in a terminal to make sure they are working good, please find your API credentials here:
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.ymlThey will look like this:
hosts:
- default:
url: https://<WAZUH_SERVER_IP_ADDRESS>
port: 55000
username: wazuh-wui
password: wazuh-wui
run_as: falseYou can use curl to test your credentials, open a terminal, and run the following command (replace the values with the values in your
wazuh.yml config file)
TOKEN=$(curl -u <username>:<password> -k -X POST "https://<url>:55000/security/user/authenticate?raw=true")Verify that the token has been generated, run the following command:
echo $TOKENNow you can run the curl and check if you have a working pair of credentials:
curl -k -X GET "https://localhost:55000/?pretty=true" -H "Authorization: Bearer $TOKEN"Example output:
{
"data": {
"title": "Wazuh API REST",
"api_version": "4.12.0",
"revision": "rc1",
"license_name": "GPL 2.0",
"license_url": "https://github.com/wazuh/wazuh/blob/v4.12.0/LICENSE",
"hostname": "centos8a",
"timestamp": "2025-08-18T19:05:19Z"
},
"error": 0
}Please let me know how it went. Depending on the output you got, I can continue troubleshooting API related errors, or maybe we can focus on a different component. Thanks!
Regards,
Pedro.