wazuh gives multiple error when i logged in.

15 views
Skip to first unread message

Chandra pal singh Chauhan

unread,
5:21 AM (6 hours ago) 5:21 AM
to Wazuh | Mailing List
Dear team,

I have faced issue when i logged in my wazuh some time its normally open and sometime its give me error which i attached kindly review and guide me how i can fix tis issue.

If you need anything from my side please feel free to ask.

regards,
Chandra
Screenshot 2025-10-10 140000.png 

Pedro De Castro

unread,
5:55 AM (6 hours ago) 5:55 AM
to Wazuh | Mailing List
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.yml

They will look like this:

hosts:
   - default:
      url: https://<WAZUH_SERVER_IP_ADDRESS>
      port: 55000
      username: wazuh-wui
      password: wazuh-wui
      run_as: false



You 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 $TOKEN

Now 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.
Reply all
Reply to author
Forward
0 new messages