Hi
Aiman
This error is mainly due to an invalid credential in the Wazuh dashboard wazuh.yml configuration, where the wazuh-wui user configuration is set.
You can find this configuration at the end of the file in: /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
On a basic installation, without changing passwords, you should see something like:
This configuration has been obtained from the Wazuh OVA 4.7.4, it is possible that depending on your type of deployment, the password is different, for example, in a deployment through the installation assistant, the passwords are randomized for each user, you can find those passwords in a tar.gz file generated in the same directory where the wazuh-install.sh script has been executed.
Please make sure that the password used is correct, I will be able to give you more concrete steps if you provide more information about your environment and type of deployment.
Hope this helps