Hi all,
I deployed wazuh cluster and added some agents. I want to setup High Availability plan, so I used keepalived to HA wazuh dashboard and it is work fine. Now I want to HA my master and worker node. I checked it by power off the my master node, But it is not work.
2020/04/06 15:44:58 wazuh-clusterd: ERROR: [Local Server] [Main] Could not connect to master. Trying again in 10 seconds.
2020/04/06 15:45:00 wazuh-clusterd: INFO: [Local 531263] [Main] Connection received in local server.
2020/04/06 15:45:00 wazuh-clusterd: ERROR: [Local 531263] [Main] Error processing request 'b'dapi'': Error 3023 - Worker node is not connected to master
2020/04/06 15:45:00 wazuh-clusterd: INFO: [Local 531263] [Main] Disconnected.
2020/04/06 15:45:00 wazuh-clusterd: INFO: [Local 702227] [Main] Connection received in local server.
2020/04/06 15:45:00 wazuh-clusterd: ERROR: [Local 702227] [Main] Error processing request 'b'dapi'': Error 3023 - Worker node is not connected to master
2020/04/06 15:45:00 wazuh-clusterd: INFO: [Local 702227] [Main] Disconnected.
2020/04/06 15:45:08 wazuh-clusterd: ERROR: [Local Server] [Main] Could not connect to master. Trying again in 10 seconds.
2020/04/06 15:45:18 wazuh-clusterd: ERROR: [Local Server] [Main] Could not connect to master. Trying again in 10 seconds.
Above mentioned logs are prompt in worker node,
I added all the agents to master.
Then added all of them to worker also.
Use this example method describes in wazuh documentation ,
<client>
<server>
<address>172.0.0.4</address>
<port>1514</port>
<protocol>udp</protocol>
</server>
<server>
<address>172.0.0.5</address>
<port>1514</port>
<protocol>udp</protocol>
</server>
<config-profile>ubuntu, ubuntu18, ubuntu18.04</config-profile>
<notify_time>10</notify_time>
<time-reconnect>60</time-reconnect>
<auto_restart>yes</auto_restart>
<crypto_method>aes</crypto_method>
</client>
.
It shows Error 3023 - Worker node is not connected to master in the wazuh dashboard also.(I use virtual ip to access dashboard).
Thank You'll.