Hi All,
I have done a fresh install of wazuh in Ubuntu 22.04.1 LTS and Manager API is down due to the below error. Request all to please help how to resolve the issue.
#curl -u wazuh-wui:wazuh-wui -k -X GET "
https://localhost:55000/security/user/authenticate?raw=true"
{"title": "Bad Request", "detail": "Some Wazuh daemons are not ready yet in node \"node01\" (wazuh-modulesd->failed, wazuh-analysisd->failed, wazuh-execd->failed, wazuh-db->failed, wazuh-remoted->failed)", "dapi_errors": {"node01": {"error": "Some Wazuh daemons are not ready yet in node \"node01\" (wazuh-modulesd->failed, wazuh-analysisd->failed, wazuh-execd->failed, wazuh-db->failed, wazuh-remoted->failed)"}}, "error": 1017}
Complete ossec.log :-
2022/09/28 11:08:36 wazuh-modulesd:syscollector: INFO: Stop received for Syscollector.
2022/09/28 11:08:36 wazuh-modulesd:syscollector: INFO: Module finished.
2022/09/28 11:08:36 wazuh-logcollector: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:36 wazuh-syscheckd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:37 wazuh-execd: INFO: (1314): Shutdown received. Deleting responses.
2022/09/28 11:08:37 wazuh-execd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:37 wazuh-authd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:38 wazuh-authd: INFO: Exiting...
2022/09/28 11:08:40 wazuh-csyslogd: INFO: Remote syslog server not configured. Clean exit.
2022/09/28 11:08:40 wazuh-dbd: INFO: Database not configured. Clean exit.
2022/09/28 11:08:40 wazuh-integratord: INFO: Remote integrations not configured. Clean exit.
2022/09/28 11:08:40 wazuh-agentlessd: INFO: Not configured. Exiting.
2022/09/28 11:08:40 wazuh-authd: INFO: Started (pid: 118511).
2022/09/28 11:08:40 wazuh-authd: INFO: Accepting connections on port 1515. No password required.
2022/09/28 11:08:40 wazuh-authd: INFO: Setting network timeout to 1.000000 sec.
2022/09/28 11:08:42 wazuh-execd: INFO: Started (pid: 118556).
2022/09/28 11:08:44 wazuh-syscheckd: INFO: Started (pid: 118631).
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/boot', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/etc', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mtab'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/hosts.deny'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mail/statistics'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random-seed'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random.seed'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/adjtime'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/httpd/logs'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/utmpx'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/wtmpx'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/cups/certs'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/dumpdates'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/svc/volatile'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6207): Ignore 'file' sregex '.log$|.swp$'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6004): No diff for file: '/etc/ssl/private.key'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6000): Starting daemon...
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6010): File integrity monitoring scan frequency: 43200 seconds
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6008): File integrity monitoring scan started.
2022/09/28 11:08:44 rootcheck: INFO: Starting rootcheck scan.
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring output of command(360): df -P
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring full output of command(360): netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\ \+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\ \([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g | sed 's/ == \(.*\) ==/:\1/' | sed 1,2d
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring full output of command(360): last -n 20
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/audit/audit.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/ossec/logs/active-responses.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/dpkg.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: Started (pid: 118682).
2022/09/28 11:08:48 wazuh-syscheckd: INFO: (6009): File integrity monitoring scan ended.
2022/09/28 11:08:48 wazuh-modulesd: INFO: Started (pid: 118792).
2022/09/28 11:08:48 sca: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:ciscat: INFO: Module disabled. Exiting...
2022/09/28 11:08:48 sca: INFO: Loaded policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:48 wazuh-modulesd:osquery: INFO: Module disabled. Exiting...
2022/09/28 11:08:48 wazuh-modulesd:agent-upgrade: INFO: (8153): Module Agent Upgrade started.
2022/09/28 11:08:48 wazuh-modulesd:database: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:task-manager: INFO: (8200): Module Task Manager started.
2022/09/28 11:08:48 sca: INFO: Starting Security Configuration Assessment scan.
2022/09/28 11:08:48 wazuh-modulesd:download: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:control: INFO: Starting control thread.
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2022/09/28 11:08:48 sca: INFO: Starting evaluation of policy: '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2022/09/28 11:08:53 sca: INFO: Evaluation finished for policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:53 sca: INFO: Security Configuration Assessment scan finished. Duration: 5 seconds.
2022/09/28 11:09:08 rootcheck: INFO: Ending rootcheck scan.
root@ip-192-168-2-229:/var/ossec/bin# clear
root@ip-192-168-2-229:/var/ossec/bin# cat /var/ossec/logs/ossec.log
2022/09/28 11:08:36 wazuh-modulesd:syscollector: INFO: Stop received for Syscollector.
2022/09/28 11:08:36 wazuh-modulesd:syscollector: INFO: Module finished.
2022/09/28 11:08:36 wazuh-logcollector: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:36 wazuh-syscheckd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:37 wazuh-execd: INFO: (1314): Shutdown received. Deleting responses.
2022/09/28 11:08:37 wazuh-execd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:37 wazuh-authd: INFO: (1225): SIGNAL [(15)-(Terminated)] Received. Exit Cleaning...
2022/09/28 11:08:38 wazuh-authd: INFO: Exiting...
2022/09/28 11:08:40 wazuh-csyslogd: INFO: Remote syslog server not configured. Clean exit.
2022/09/28 11:08:40 wazuh-dbd: INFO: Database not configured. Clean exit.
2022/09/28 11:08:40 wazuh-integratord: INFO: Remote integrations not configured. Clean exit.
2022/09/28 11:08:40 wazuh-agentlessd: INFO: Not configured. Exiting.
2022/09/28 11:08:40 wazuh-authd: INFO: Started (pid: 118511).
2022/09/28 11:08:40 wazuh-authd: INFO: Accepting connections on port 1515. No password required.
2022/09/28 11:08:40 wazuh-authd: INFO: Setting network timeout to 1.000000 sec.
2022/09/28 11:08:42 wazuh-execd: INFO: Started (pid: 118556).
2022/09/28 11:08:44 wazuh-syscheckd: INFO: Started (pid: 118631).
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/boot', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/etc', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/bin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6003): Monitoring path: '/usr/sbin', with options 'size | permissions | owner | group | mtime | inode | hash_md5 | hash_sha1 | hash_sha256 | scheduled'.
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mtab'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/hosts.deny'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/mail/statistics'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random-seed'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/random.seed'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/adjtime'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/httpd/logs'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/utmpx'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/wtmpx'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/cups/certs'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/dumpdates'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6206): Ignore 'file' entry '/etc/svc/volatile'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6207): Ignore 'file' sregex '.log$|.swp$'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6004): No diff for file: '/etc/ssl/private.key'
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6000): Starting daemon...
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6010): File integrity monitoring scan frequency: 43200 seconds
2022/09/28 11:08:44 wazuh-syscheckd: INFO: (6008): File integrity monitoring scan started.
2022/09/28 11:08:44 rootcheck: INFO: Starting rootcheck scan.
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring output of command(360): df -P
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring full output of command(360): netstat -tulpn | sed 's/\([[:alnum:]]\+\)\ \+[[:digit:]]\+\ \+[[:digit:]]\+\ \+\(.*\):\([[:digit:]]*\)\ \+\([0-9\.\:\*]\+\).\+\ \([[:digit:]]*\/[[:alnum:]\-]*\).*/\1 \2 == \3 == \4 \5/' | sort -k 4 -g | sed 's/ == \(.*\) ==/:\1/' | sed 1,2d
2022/09/28 11:08:46 wazuh-logcollector: INFO: Monitoring full output of command(360): last -n 20
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/audit/audit.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/ossec/logs/active-responses.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: (1950): Analyzing file: '/var/log/dpkg.log'.
2022/09/28 11:08:46 wazuh-logcollector: INFO: Started (pid: 118682).
2022/09/28 11:08:48 wazuh-syscheckd: INFO: (6009): File integrity monitoring scan ended.
2022/09/28 11:08:48 wazuh-modulesd: INFO: Started (pid: 118792).
2022/09/28 11:08:48 sca: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:ciscat: INFO: Module disabled. Exiting...
2022/09/28 11:08:48 sca: INFO: Loaded policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:48 wazuh-modulesd:osquery: INFO: Module disabled. Exiting...
2022/09/28 11:08:48 wazuh-modulesd:agent-upgrade: INFO: (8153): Module Agent Upgrade started.
2022/09/28 11:08:48 wazuh-modulesd:database: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:task-manager: INFO: (8200): Module Task Manager started.
2022/09/28 11:08:48 sca: INFO: Starting Security Configuration Assessment scan.
2022/09/28 11:08:48 wazuh-modulesd:download: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:control: INFO: Starting control thread.
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Module started.
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Starting evaluation.
2022/09/28 11:08:48 sca: INFO: Starting evaluation of policy: '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:48 wazuh-modulesd:syscollector: INFO: Evaluation finished.
2022/09/28 11:08:53 sca: INFO: Evaluation finished for policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2022/09/28 11:08:53 sca: INFO: Security Configuration Assessment scan finished. Duration: 5 seconds.
2022/09/28 11:09:08 rootcheck: INFO: Ending rootcheck scan.