wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Wrong error message on manager's disk space issues

Open dariommr opened this issue 2 years ago • 3 comments

Wazuh Elastic Rev Security
4.2.5 7.10.2 4xxx ODFE
Browser
Any

Description Hello Team! The error messages that the Wazuh App is showing when there is no space left in the Wazuh Manager is wrong, showing the message:

There was an error: 3013 - Corrupted RBAC Database

And the RBAC database is ok, the real issue: no space left on the device.

Steps to reproduce The Wazuh app gives this error when trying to modify a Wazuh API Role through the UI: image

Expected Result

  1. More precise message regarding the real issue.

Actual Result

  1. There was an error: 3013 - Corrupted RBAC Database

Thank you in advance!

dariommr avatar Dec 07 '21 19:12 dariommr

That's the message we get from the API as a result of a request.

This issue should be transferred to the @wazuh/framework team.

AlexRuiz7 avatar May 10 '22 15:05 AlexRuiz7

The Wazuh API is capturing an OperationalError raised by sqlalchemy when trying to access the RBAC database. There is no way to differentiate between a corrupted database or a no space left problem.

All we can do is improve the exception to something more generic, and improve the remediation.

davidjiglesias avatar May 11 '22 10:05 davidjiglesias

If we changed that message when the disk is full, any other exception could be thrown, depending on the operation we're doing on that instant. So it will not ensure a consistent error message.

I would let the error as it is. And I would add a troubleshooting guide about possible causes for errors out of context.

gdiazlo avatar Aug 10 '22 14:08 gdiazlo