I am trying to setup a vault cluster with 3 nodes in proxmox but I am having issue getting node 2 and 3 unsealling. When I attempt to unseal I see them show up on node1 when I run
2024-07-30T01:01:09.711Z [ERROR] storage.raft: failed to appendEntries to: peer="{Nonvoter node3 192.168.1.193:8201}" error="dial tcp 192.168.1.193:8201: connect: connection refused"
2024-07-30T01:01:11.225Z [ERROR] storage.raft: failed to heartbeat to: peer=192.168.1.193:8201 backoff time=2.5s error="dial tcp 192.168.1.193:8201: connect: connection refused"
2024-07-30T01:01:11.390Z [ERROR] storage.raft: failed to heartbeat to: peer=192.168.1.192:8201 backoff time=2.5s error="dial tcp 192.168.1.192:8201: connect: connection refused"
on node2 and 3
2024-07-30T00:58:20.179Z [INFO] core.cluster-listener.tcp: starting listener: listener_address=192.168.1.192:8201
2024-07-30T00:58:20.179Z [ERROR] core.cluster-listener.tcp: error starting listener: error="listen tcp 192.168.1.192:8201: bind: cannot assign requested address"
2024-07-30T00:58:20.181Z [INFO] storage.raft: creating Raft: config="&raft.Config{ProtocolVersion:3, HeartbeatTimeout:15000000000, ElectionTimeout:15000000000, CommitTimeout:50000000, MaxAppendEntries:64, BatchApplyCh:true, ShutdownOnRemove:true, TrailingLogs:0x2800, SnapshotInterval:120000000000, SnapshotThreshold:0x2000, LeaderLeaseTimeout:2500000000, LocalID:\"node2\", NotifyCh:(chan<- bool)(0xc0028f24d0), LogOutput:io.Writer(nil), LogLevel:\"DEBUG\", Logger:(*hclog.interceptLogger)(0xc002f4d860), NoSnapshotRestoreOnStart:true, skipStartup:false}"
2024-07-30T00:58:20.181Z [INFO] storage.raft: initial configuration: index=1 servers="[{Suffrage:Voter ID:node1 Address:192.168.1.191:8201} {Suffrage:Nonvoter ID:node2 Address:192.168.1.192:8201}]"
2024-07-30T00:58:20.181Z [INFO] storage.raft: entering follower state: follower="Node at 192.168.1.192:8201 [Follower]" leader-address= leader-id=
2024-07-30T00:58:20.181Z [INFO] core: security barrier not initialized
2024-07-30T00:58:24.879Z [INFO] core: security barrier not initialized
2024-07-30T00:58:24.881Z [INFO] core: security barrier not initialized
2024-07-30T00:58:35.878Z [INFO] core: security barrier not initialized
2024-07-30T00:58:35.878Z [INFO] core: security barrier not initialized
2024-07-30T00:58:40.037Z [WARN] storage.raft: heartbeat timeout reached, not part of a stable configuration or a non-voter, not triggering a leader election
upon doing some digging it doesnt look like my container is listening on port 8201 on node1 but it is listening on 8200. Outside the container its listening to 8201 just fine
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b680d05249f9 hashicorp/vault:1.16 "vault server -confi…" 22 minutes ago Up 22 minutes 0.0.0.0:8200-8201->8200-8201/tcp, :::8200-8201->8200-8201/tcp vault
What am I doing wrong? I already exposed the 8201 port in the docker compose file.
I am trying to setup a vault cluster with 3 nodes in proxmox but I am having issue getting node 2 and 3 unsealling. When I attempt to unseal I see them show up on node1 when I run
here is my docker-compose file for all 3 node the only thing thats different is the ipaddress.
after running raft join and unseal on node2 and node3 inside the container
This is what I see on node1
This is my config.hcl, its similar across all 3 node the only thing thats different is the ip address for cluster address and api address
on node1 docker logs
on node2 and 3
upon doing some digging it doesnt look like my container is listening on port 8201 on node1 but it is listening on 8200. Outside the container its listening to 8201 just fine
but inside the container, its only listening to 8200
output of docker ps
What am I doing wrong? I already exposed the 8201 port in the docker compose file.
Any help is appreciated!