Knowledge Base

Bitte , um Beiträge und Themen zu erstellen.

Wazuh API Error (ran out of space)

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:

  1. Stop Wazuh dashboard service:  systemctl stop wazuh-dashboard.
  2. Delete the file: rm  /usr/share/wazuh-dashboard/data/wazuh/config/wazuh-registry.json
  3. Start Wazuh dashboard service: systemctl start wazuh-dashboard
  4. Delete Browser's cache, local storage, etc
  5. Try to access the Wazuh Dashboard again