Error with RAFT Integrated HA storage: local node not active but active cluster node not found

Hello Experts,

Need some help

I am trying to run vault in HA mode using the RAFT integrated storage just for the HA storage part and my backend is zookeper. I am running vault inside the docker environment and exposing it through HOST ports.

Vault server version is 1.6.2

The problem I am facing is, Node1 and Node2 can succesfully join to the raft cluster and when i do raft list-peers from the active or one of the standby node, it showing everything properly

/ # vault operator raft list-peers
Node             Address                State       Voter
----             -------                -----       -----
10.158.45.202    10.158.45.202:2223     leader      true
10.158.45.81     10.158.45.81:14719     follower    true
10.158.44.114    10.158.44.114:21996    follower    true
/ #

When i do the same thing from the second stand-by node i.e. Node3, I am getting the following error,

/ # vault operator raft list-peers
Error reading the raft cluster configuration: Error making API request.

URL: GET http://127.0.0.1:8200/v1/sys/storage/raft/configuration
Code: 500. Errors:

* local node not active but active cluster node not found
/ #

Vault status also not shows the right Active node IP address,

/ # vault status
Key                    Value
---                    -----
Seal Type              shamir
Initialized            true
Sealed                 false
Total Shares           5
Threshold              3
Version                1.6.2
Storage Type           zookeeper
Cluster Name           vault-cluster-1589361d
Cluster ID             21534147-701e-b8b2-b421-663547a2d0c7
HA Enabled             true
HA Cluster             n/a
HA Mode                standby
Active Node Address    <none>
/ #

I used the following commands to join to the RAFT cluster earlier on Node 3 to join to the cluster,

/ # vault operator raft join
Key       Value
---       -----
Joined    true
/ # vault operator raft list-peers
Error reading the raft cluster configuration: Error making API request.

URL: GET http://127.0.0.1:8200/v1/sys/storage/raft/configuration
Code: 500. Errors:

* local node not active but active cluster node not found
/ #

Any ideas what could be the issue here?

1 Like

Bump. Im having this exact same issue. Did you figure this out by chance?

Can your nodes talk over 8200 and 8201?
What does the log say on startup and when you run this command?
Are you running vault operator raft join or
vault operator raft join http://leader_ip:8200 ?

Also have similar issue, could you find out what to do? In my case vault operator raft list-peers results in local node not active but active cluster node not found