I read this thread just in time before posting my issue.
Jun 22 09:06:32 somehostname env: Starting Wazuh v4.3.4...
Jun 22 09:06:44 somehostname env: wazuh-apid did not start correctly.
Jun 22 09:06:44 somehostname systemd: wazuh-manager.service: control process exited, code=exited status=1
Jun 22 09:06:44 somehostname systemd: Failed to start Wazuh manager.
Jun 22 09:06:44 somehostname systemd: Unit wazuh-manager.service entered failed state.
Jun 22 09:06:44 somehostname systemd: wazuh-manager.service failed.
I have tried reading logs from /var/ossec/logs and ran the "
/var/ossec/bin/wazuh-control enable debug" command too however couldn't figure out the reason. Any help is much appreciated.