Cant join control-plan

I’m trying to create a high availability (HA) cluster with 6 servers—3 master nodes and 3 worker nodes. I was able to successfully join the worker nodes, but when I tried to join a master node, I received the message ‘Successfully joined the cluster.’ However, the node isn’t actually joining, and I can see that the dqlite service is restarting continuously. I’m using Ubuntu 22.04, and I’ve also tried with Ubuntu 20.04. reinstall a few times, nothing helps

Failed to create server" error=“failed to create dqlite app: bootstrap node can’t join a cluster”
systemd[1]: snap.microk8s.daemon-k8s-dqlite.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: snap.microk8s.daemon-k8s-dqlite.service: Failed with result ‘exit-code’.