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

Fix wazuh-dashboard API error and typo #1806

Merged
merged 3 commits into from
Aug 26, 2022
Merged

Conversation

miguelfdez99
Copy link
Contributor

Related issue
#1804
#1805

Description

Fix for those two issues, also I have seen a new error and fixed it.
The first issue is fixed by adding double quotes to the password. If the password started with * without the double quotes yaml treat it as an alias and produce the error. For the second issue, I have just added a single dot where it was missing.
The third error that I found was this:

26/08/2022 11:35:13 DEBUG: The given user wazuh does not exist
26/08/2022 11:35:13 DEBUG: The given user wazuh-wui does not exist

Logs example

[root@ip-172-31-8-198 ec2-user]# tail /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml

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

Installing again with -o

[root@ip-172-31-11-12 ec2-user]# bash wazuh-install.sh -wd dashboard -o
26/08/2022 12:47:15 INFO: Starting Wazuh installation assistant. Wazuh version: 4.3.7
26/08/2022 12:47:15 INFO: Verbose logging redirected to /var/log/wazuh-install.log
26/08/2022 12:47:17 INFO: --- Removing existing Wazuh installation ---
26/08/2022 12:47:17 INFO: Removing Wazuh dashboard.
26/08/2022 12:47:28 INFO: Wazuh dashboard removed.
26/08/2022 12:47:28 INFO: Installation cleaned.
26/08/2022 12:47:37 INFO: Wazuh repository added.
dashboard
26/08/2022 12:47:37 INFO: --- Wazuh dashboard ----
26/08/2022 12:47:37 INFO: Starting Wazuh dashboard installation.
26/08/2022 12:48:30 INFO: Wazuh dashboard installation finished.
26/08/2022 12:48:30 INFO: Wazuh dashboard post-install configuration finished.
26/08/2022 12:48:30 INFO: Starting service wazuh-dashboard.
26/08/2022 12:48:30 INFO: wazuh-dashboard service started.
26/08/2022 12:48:55 INFO: Initializing Wazuh dashboard web application.
26/08/2022 12:48:55 INFO: Wazuh dashboard web application initialized.
26/08/2022 12:48:55 INFO: --- Summary ---
26/08/2022 12:48:55 INFO: You can access the web interface https://172.31.11.12
    User: admin
    Password: ZjMhnUXIMkGIW9*4t1A.TETTYw3qjqfO
26/08/2022 12:48:55 INFO: Installation finished.
[root@ip-172-31-11-12 ec2-user]# tail /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
#       password: "kCTB449e*hyixgRepuCv9Nj?3vPE?baj"
#       run_as: true

hosts:
  - default:
      url: https://172.31.8.198
      port: 55000
      username: wazuh-wui
      password: "kCTB449e*hyixgRepuCv9Nj?3vPE?baj"
      run_as: false

image

Copy link
Member

@rauldpm rauldpm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alberpilot alberpilot merged commit 3787bee into 4.3 Aug 26, 2022
@alberpilot alberpilot deleted the 1804-distributed-api-error branch August 26, 2022 13:48
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

Successfully merging this pull request may close these issues.

4 participants