systemctl restart wazuh-apisystemctl restart wazuh-managersystemctl status wazuh-api
systemctl status wazuh-managerroot@wazuh-manager:/# service wazuh-api statusWAZUH-API is running.root@wazuh-manager:/# service wazuh-manager statuswazuh-clusterd is running...wazuh-modulesd not running...ossec-monitord not running...ossec-logcollector not running...ossec-remoted not running...ossec-syscheckd not running...ossec-analysisd not running...ossec-maild: Process 53378 not used by Wazuh, removing...ossec-maild not running...ossec-execd not running...wazuh-db not running...ossec-authd not running...ossec-agentlessd is running...ossec-integratord not running...ossec-dbd not running...ossec-csyslogd not running...root@wazuh-manager:/#cat /var/ossec/logs/ossec.log2020/02/27 10:53:33 ossec-remoted: WARNING: (1408): Invalid ID 1272 for the source ip: '10.2.3.138' (name 'unknown').2020/02/27 10:53:33 ossec-remoted: WARNING: (1408): Invalid ID 494 for the source ip: '10.2.3.138' (name 'unknown').2020/02/27 10:53:33 wazuh-modulesd[45015] wdb.c:360 at wdb_step(): DEBUG: Maximum attempts exceeded for sqlite3_step()2020/02/27 10:53:33 wazuh-modulesd[53424] wdb.c:360 at wdb_step(): DEBUG: Maximum attempts exceeded for sqlite3_step()2020/02/27 10:53:33 wazuh-modulesd[45015] wdb.c:360 at wdb_step(): DEBUG: Maximum attempts exceeded for sqlite3_step()2020/02/27 16:23:33 wazuh-modulesd[37953] wdb.c:360 at wdb_step(): DEBUG: Maximum attempts exceeded for sqlite3_step()2020/02/27 10:53:33 wazuh-modulesd[53424] wdb.c:360 at wdb_step(): DEBUG: Maximum attempts exceeded for sqlite3_step()2020/02/27 10:53:33 ossec-remoted: WARNING: (1408): Invalid ID 1277 for the source ip: '10.2.3.138' (name 'server1').2020/02/27 10:53:33 ossec-remoted: WARNING: (1408): Invalid ID 1343 for the source ip: '10.2.3.138' (name 'server1').2020/02/27 10:53:33 ossec-remoted: WARNING: (1408): Invalid ID 1294 for the source ip: '10.2.3.138' (name 'unknown').root@wazuh-manager:/var/ossec/logs#cat /var/ossec/api/package.json | grep versionroot@wazuh-manager:/# cat /var/ossec/api/package.json | grep version "version": "3.11.3",root@wazuh-manager:/#systemctl stop wazuh-manager
Try the following steps on the machine where Wazuh manager is installed:
rm -rf /var/ossec/var/db/global.db*
/var/ossec/bin/ossec-control restart
This will erase your databases and restart your manager. Don't worry, the databases will be regenerated again.
Let us know if this helps.
Regards,
Victor Santaella.
2020/02/27 16:23:33 wazuh-modulesd [37953] wdb.c: 360 at wdb_step (): DEBUG: Maximum attempts exceeded for sqlite3_step ()systemctl restart wazuh-manager
systemctl restart wazuh-apitail /var/ossec/logs/ossec.log -n 100