Hello,
The error "The API connections could be down or inaccessible" in Wazuh typically indicates a problem with the connection between the Wazuh dashboard and the Wazuh server API. This can be due to various reasons, including network issues, incorrect configuration, or the API server being down.
But your case, I see the error invalid credentials and also the wazuh-wui being down, this only means that there is a credential issue somewhere in the system, although you also mentioned you have not made any changes since you deployed.
The 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:
hosts:
- default:
url: https://localhost
port: 55000
username: wazuh-wui
password: wazuh-wui
run_as: false
You can review the configuration in the file. OR better still,
We can trigger a reset on the wazuh-wui user account, please follow the process below:
Login to the wazuh instance via ssh, and run the commands below:
Download the password tool:
Then reset the wazuh-wui account:
sudo bash wazuh-passwords-tool.sh -A -au wazuh-wui -ap new password-here
Please note: The password must have a length between 8 and 64 characters and contain at least one upper case letter, one lower case letter, a number and one of the following symbols: .*+?-. If no password is specified, the script will generate a random one.