Getting Error reading the raft cluster configuration: Get "https://127.0.0.1:8200/v1/sys/storage/raft/configuration": dial tcp 127.0.0.1:8200: connect: connection refused

Hi Team,

I tried to execute the command ‘sudo vault operator raft list-peers’, but I am getting the below error. Could you please look into this error and provide your inputs? @Tej-Singh-Rana @mmkmou . Thank you.

Link for the lab - Labs- HashiCorp Certified: Vault Associate Certification - KodeKloud

bob@node-1 /etc/vault.d​:lock: via :diamond_shape_with_a_dot_inside: default ✦2 ➜ sudo vault operator raft list-peers
Error reading the raft cluster configuration: Get “https://127.0.0.1:8200/v1/sys/storage/raft/configuration”: dial tcp 127.0.0.1:8200: connect: connection refused

I am facing the same issue as well. Please assist.

It is because you are not authenticated. Set VAULT_TOKEN environment variable to the token given in the credential file. You will need to use the token on all the nodes.