Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid API credentials in Wazuh dashboard after installation #2115

Closed
DFolchA opened this issue Mar 7, 2023 · 3 comments
Closed

Invalid API credentials in Wazuh dashboard after installation #2115

DFolchA opened this issue Mar 7, 2023 · 3 comments
Assignees

Comments

@DFolchA
Copy link
Contributor

DFolchA commented Mar 7, 2023

Wazuh version Install type Action performed Platform
4.3.10 wazuh-install.sh Install RHEL9

We were notified that in some cases after installing in RHEL 9 based systems the Wazuh dashboard shows the following error:
image

This error appears when the API password is not correctly set in the /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml file.

This suggests that there may be an error either when changing the password of the wazuh-wui API user or when editing the wazuh.yml.

@DFolchA DFolchA self-assigned this Mar 7, 2023
@DFolchA
Copy link
Contributor Author

DFolchA commented Mar 7, 2023

Update

Tested CentOS 9 Stream VM

[root@centos9s vagrant]# curl -sO https://packages.wazuh.com/4.3/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
07/03/2023 10:38:55 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.10
07/03/2023 10:38:55 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/03/2023 10:38:57 ERROR: Your system does not meet the recommended minimum hardware requirements of 4Gb of RAM and 2 CPU cores. If you want to proceed with the installation use the -i option to ignore these requirements.
[root@centos9s vagrant]# curl -sO https://packages.wazuh.com/4.3/wazuh-install.sh && sudo bash ./wazuh-install.sh -a -i
07/03/2023 10:39:04 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.10
07/03/2023 10:39:04 INFO: Verbose logging redirected to /var/log/wazuh-install.log
07/03/2023 10:39:06 WARNING: Hardware and system checks ignored.
07/03/2023 10:39:10 INFO: Wazuh repository added.
07/03/2023 10:39:10 INFO: --- Configuration files ---
07/03/2023 10:39:10 INFO: Generating configuration files.
07/03/2023 10:39:12 INFO: Created wazuh-install-files.tar. It contains the Wazuh cluster key, certificates, and passwords necessary for installation.
07/03/2023 10:39:12 INFO: --- Wazuh indexer ---
07/03/2023 10:39:12 INFO: Starting Wazuh indexer installation.
07/03/2023 10:41:13 INFO: Wazuh indexer installation finished.
07/03/2023 10:41:13 INFO: Wazuh indexer post-install configuration finished.
07/03/2023 10:41:13 INFO: Starting service wazuh-indexer.
07/03/2023 10:42:03 INFO: wazuh-indexer service started.
07/03/2023 10:42:03 INFO: Initializing Wazuh indexer cluster security settings.
07/03/2023 10:42:24 INFO: Wazuh indexer cluster initialized.
07/03/2023 10:42:24 INFO: --- Wazuh server ---
07/03/2023 10:42:24 INFO: Starting the Wazuh manager installation.
07/03/2023 10:43:31 INFO: Wazuh manager installation finished.
07/03/2023 10:43:31 INFO: Starting service wazuh-manager.
07/03/2023 10:43:46 INFO: wazuh-manager service started.
07/03/2023 10:43:46 INFO: Starting Filebeat installation.
07/03/2023 10:43:55 INFO: Filebeat installation finished.
07/03/2023 10:43:56 INFO: Filebeat post-install configuration finished.
07/03/2023 10:43:56 INFO: Starting service filebeat.
07/03/2023 10:43:56 INFO: filebeat service started.
07/03/2023 10:43:56 INFO: --- Wazuh dashboard ---
07/03/2023 10:43:56 INFO: Starting Wazuh dashboard installation.
07/03/2023 10:45:53 INFO: Wazuh dashboard installation finished.
07/03/2023 10:45:53 INFO: Wazuh dashboard post-install configuration finished.
07/03/2023 10:45:53 INFO: Starting service wazuh-dashboard.
07/03/2023 10:45:54 INFO: wazuh-dashboard service started.
07/03/2023 10:46:52 INFO: Initializing Wazuh dashboard web application.
07/03/2023 10:46:52 INFO: Wazuh dashboard web application initialized.
07/03/2023 10:46:52 INFO: --- Summary ---
07/03/2023 10:46:52 INFO: You can access the web interface https://<wazuh-dashboard-ip>
    User: admin
    Password: zJzev6Zq2+YZKuE98nSUiDPzriBgK5n5
07/03/2023 10:46:52 INFO: Installation finished.

Works correctly 🟢

@DFolchA
Copy link
Contributor Author

DFolchA commented Mar 7, 2023

Update

Reproduced error by changing the password in wazuh.yml

hosts:
  - default:
      url: https://localhost
      port: 55000
      username: wazuh-wui
      password: "new_pass"
      run_as: false

image

@DFolchA
Copy link
Contributor Author

DFolchA commented Mar 7, 2023

After discussing with @verdx we noticed that this issue is duplicated from #2111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant