Error 2001 - unexpected end o JSON input

2,366 views
Skip to first unread message

diego

unread,
Jun 23, 2023, 3:50:06 AM6/23/23
to Wazuh mailing list
Good morning, several days ago wazuh has been giving me the following error "unexpected end of json input".The installation of wazuh is on ubuntu 20.04. 
Can anyone help me?

Jose Antonio Izquierdo

unread,
Jun 23, 2023, 4:14:02 AM6/23/23
to Wazuh mailing list
Hi Diego,

Hum, did you do an upgrade?
Which version are you running on each Wazuh component?
Looks like an API error or a Dashboard error. 

Any errors in /var/ossec/logs/api.log ? or ossec.log?

If there is no important information there, maybe this may help:

.- Stop Wazuh dashboard:  systemctl stop wazuh-dashboard
.- Delete file: rm  /usr/share/wazuh-dashboard/data/wazuh/config/wazuh-registry.json
.- Start Wazuh dashboard: systemctl start wazuh-dashboard

Let us know if this helps

Jose.

diego

unread,
Jun 23, 2023, 4:58:22 AM6/23/23
to Wazuh mailing list
Hi Jose,

After applying the three commands you mentioned, wazuh has started working again.

Thanks for your help

Jose Antonio Izquierdo

unread,
Jun 23, 2023, 4:59:11 AM6/23/23
to Wazuh mailing list
cool, thanks
Reply all
Reply to author
Forward
0 new messages