Cannot connect API from Dashboard after installation

198 views
Skip to first unread message

Juan Ignacio Contino

unread,
May 8, 2025, 9:55:34 AMMay 8
to Wazuh | Mailing List
Hi!

I've just followed the "assisted installation" for the 4.12 release on Debian 12 for all the components starting on:
(I haven't changed anything about the procedure or the configuration of the components)

config.yml:

screenshot_2025-05-08_10-22-42_393820005.png

After that I went to the dashboard interface and got the following:

screenshot_2025-05-08_10-25-01_916142924.png
screenshot_2025-05-08_10-28-04_106666531.png
screenshot_2025-05-08_10-28-09_282731744.png

More clues:
  • manager statusscreenshot_2025-05-08_10-30-27_250225539.png
  • storage in manager
    screenshot_2025-05-08_10-41-00_369678292.png
  • the indexer cluster status
    screenshot_2025-05-08_10-51-13_531585671.png
  • I got the same problem for the same procedure on wazuh 4.11 components
  • The Debian version I'm using for all the components:
    screenshot_2025-05-08_10-32-32_833384539.png
  • The all-in-one installation was completed successfully for 4.11 and 4.12 wazuh releases on the Debian version I am using and everything is working fine
Please, can someone help me solve this problem? Thanks in advance.

Olamilekan Abdullateef Ajani

unread,
May 8, 2025, 10:19:16 AMMay 8
to Wazuh | Mailing List
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.

Juan Ignacio Contino

unread,
May 8, 2025, 11:14:28 AMMay 8
to Wazuh | Mailing List
Thank you very much for the answer!

As it can be seen the credentials in the file are configured correctly after installation
screenshot_2025-05-08_11-40-09_811185608.png
That was before I performed the procedure you suggested to reset the credentials, while I was having the reported issue.

After the procedure:
screenshot_2025-05-08_12-14-50_511615837.png
It returns the help message, as if the command was incorrect... The variable "?" confirms it
I'm probably doing something wrong, but after reading the documentation, your answer, and trying a few times, I can't figure out what it is.

Olamilekan Abdullateef Ajani

unread,
May 8, 2025, 11:26:21 AMMay 8
to Wazuh | Mailing List
Hello,

I apologize for the mixup, I gave you the procedure to change an admin user. To change the wazuh-wui password, please use the command below instead.

Download the password tool:

Then reset the wazuh-wui account:

bash wazuh-passwords-tool.sh --api -u wazuh-wui -p new-wazuh-wui-password --admin-user wazuh --admin-password current-wazuh-password

new-wazuh-wui-password: you supply the new wazuh-wui password
current-wazuh-password: the wazuh user password.

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.

You can find the current password from the install-files.tar from the setup using the command: sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt



Reply all
Reply to author
Forward
0 new messages