I am trying to setup a Vault HA raft cluster with three servers. I have initialized and unsealed the first server and it shows up as a leader with “vault operator raft-list-peers”. When I then try to join another server it seems to work, I start to unseal, and then get the error message in the title. Any idea what the error message means?
I am attempting to use TLS and a certificate and can provide the config files if it would help. Thanks
May 25 13:24:57 x105 vault[11797]: 2021-05-25T13:24:57.554-0400 [ERROR] core: failed to retry join raft cluster: retry=2s
May 25 13:24:59 x105 vault[11797]: 2021-05-25T13:24:59.555-0400 [INFO] core: security barrier not initialized
May 25 13:24:59 x105 vault[11797]: 2021-05-25T13:24:59.555-0400 [INFO] core: attempting to join possible raft leader node: leader_addr=https://x104:8200
May 25 13:24:59 x105 vault[11797]: 2021-05-25T13:24:59.563-0400 [WARN] core: join attempt failed: error="failed to send answer to raft leader node: Error making API request.
May 25 13:24:59 x105 vault[11797]: URL: PUT https://x104:8200/v1/sys/storage/raft/bootstrap/answer
May 25 13:24:59 x105 vault[11797]: Code: 500. Errors:
May 25 13:24:59 x105 vault[11797]: * Preventing server addition that would require removal of too many servers and cause cluster instability"
The one thing I’m not sure about is the listener address for the leader config. Also, the unseal is now hanging and exceeded context deadline but the error log is the same. Thanks!
That was the only change needed thank you so much! I wish the documentation had examples of both a leader and follower config file but hopefully someone else will find this page if they run into the same error.
In the Retry Join section there is partial config file where the rest is snipped. Thinking back on it now I could have read the Server Configuration | Vault by HashiCorp page to see what cluster_addr represented but surely having the full config file would have made things clearer earlier. The lack of documentation isn’t as egregious as I thought it was.