Wazuh API Error (ran out of space)
Zitat von mpachmann am 29. Mai 2024, 9:22 Uhrhttps://www.reddit.com/r/Wazuh/comments/18hnylz/api_error_2001_unexpected_end_of_json_input/?rdt=37731
My test Wazuh server apparently ran out of disk space, which has been fixed, however when I try to access the web interface, I get:
Error connecting to API: Error: 2001 - Unexpected end of JSON input
Coming back to the question in hand (API Error: 2001) i would suggest for you to try the following:
- Stop Wazuh dashboard service:
systemctl stop wazuh-dashboard
.- Delete the file:
rm /usr/share/wazuh-dashboard/data/wazuh/config/wazuh-registry.json
- Start Wazuh dashboard service:
systemctl start wazuh-dashboard
- Delete Browser's cache, local storage, etc
- Try to access the Wazuh Dashboard again
API Error: 2001 - Unexpected end of JSON input
byu/v3c7r0n inWazuh
My test Wazuh server apparently ran out of disk space, which has been fixed, however when I try to access the web interface, I get:
Error connecting to API: Error: 2001 - Unexpected end of JSON input
Coming back to the question in hand (API Error: 2001) i would suggest for you to try the following:
- Stop Wazuh dashboard service:
systemctl stop wazuh-dashboard
. - Delete the file:
rm /usr/share/wazuh-dashboard/data/wazuh/config/wazuh-registry.json
- Start Wazuh dashboard service:
systemctl start wazuh-dashboard
- Delete Browser's cache, local storage, etc
- Try to access the Wazuh Dashboard again