Help please : Issue with Wazuh API connection

48 views
Skip to first unread message

Mohamed NOUISSEL

unread,
Mar 19, 2025, 9:58:01 AM3/19/25
to Wazuh | Mailing List

Hello Wazuh Community,

I have been working with Wazuh without any issues, but I recently encountered a problem with the Wazuh API connection.

My VM was running out of disk space, so I added more storage and then restarted the Wazuh Manager. After the restart, I can no longer connect to the Wazuh API.

I checked the file /usr/share/wazuh-dashboard/data/wazuh/config.yml, and it still has the default configuration.

How can I resolve this issue? Any help would be greatly appreciated.

Thanks in advance!

Calvin Nguyen

unread,
Mar 19, 2025, 10:02:05 AM3/19/25
to Mohamed NOUISSEL, Wazuh | Mailing List
The same question with you



--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/5eee7868-6d84-4675-b6be-07a4e4e765a9n%40googlegroups.com.

Olusegun Adenrele Oyebo

unread,
Mar 19, 2025, 12:25:54 PM3/19/25
to Wazuh | Mailing List
Hello Mohamed,

What version of Wazuh are you experiencing this on?

Also, what OS version do you have Wazuh Manager installed on?

Can you share the exact error you're getting? You can also share screenshots just to get more insight about the API connection issue you're facing. When restarting the manager, the Wazuh API will wait until the Wazuh manager's modules are ready and the Wazuh Dashboard needs the Wazuh API to retrieve the status of the system as well as allowing you to modify the configuration from the web interface. You may temporarily receive the error you're seeing under normal circumstances, after a restart, and retrying may resolve it.

If the problem persists, there may be an underlying issue to address in the Wazuh manager. To troubleshoot it, I recommend using the command line to first execute systemctl restart wazuh-manager, and if the problem continues, look for errors in the logs:
  • cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
  • cat /var/ossec/logs/api.log | grep -i -E "error|warn|crit|fatal"
A common issue may be having run out of disk space. Kindly check this:
  • df -H
You can also share a sample of your /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml file for further Review. Obfuscate any sensitive information, if applicable.

Let me know your findings about this. 

Best regards.
Reply all
Reply to author
Forward
0 new messages