Hi,
We had an issue with our production VM so we installed a new one and restored a backup (same hostname, same ip address).
Everything is working but today when i was checking the log i saw that in the syslog :
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync remote state: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:06 DV2Fv-Wazo consul[14249]: 2022/01/26 13:04:06 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: consul.service: Main process exited, code=exited, status=1/FAILURE
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: consul.service: Failed with result 'exit-code'.
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: Failed to start Consul agent.
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: consul.service: Service RestartSec=100ms expired, scheduling restart.
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: consul.service: Scheduled restart job, restart counter is at 9.
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: Stopped Consul agent.
Jan 26 13:04:07 DV2Fv-Wazo systemd[1]: Starting Consul agent...
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: BootstrapExpect is set to 1; this is the same as Bootstrap mode.
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: bootstrap = true: do not enable unless necessary
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: ==> Starting Consul agent...
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: ==> Consul agent running!
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Version: '1.0.7-dev'
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Node ID: '00ee1e78-3a23-91c3-af18-8e80f5dfe08e'
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Node name: 'DV2Fv-Wazo'
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Datacenter: 'wazo-platform' (Segment: '<all>')
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Server: true (Bootstrap: true)
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: 8501, DNS: -1)
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false
Jan 26 13:04:07 DV2Fv-Wazo consul[16524]: ==> Log data will now stream in as it occurs:
Jan 26 13:04:14 DV2Fv-Wazo consul[16524]: 2022/01/26 13:04:14 [WARN] raft: Unable to get address for server id 318d4d09-4019-17d1-2c03-d538cc667048, using fallback address 127.0.0.1:8300: Could not find address for server id 318d4d09-4019-17d1-2c03-d538cc667048
Jan 26 13:04:14 DV2Fv-Wazo consul[16524]: 2022/01/26 13:04:14 [DEBUG] raft-net: 127.0.0.1:8300 accepted connection from: 127.0.0.1:47447
Jan 26 13:04:14 DV2Fv-Wazo consul[16524]: 2022/01/26 13:04:14 [WARN] raft: Unable to get address for server id 318d4d09-4019-17d1-2c03-d538cc667048, using fallback address 127.0.0.1:8300: Could not find address for server id 318d4d09-4019-17d1-2c03-d538cc667048
Jan 26 13:07:39 DV2Fv-Wazo consul[17910]: 2022/01/26 13:07:39 [ERR] consul: failed to wait for barrier: node is not the leader
Jan 26 13:07:42 DV2Fv-Wazo consul[17910]: 2022/01/26 13:07:42 [ERR] agent: failed to sync remote state: No cluster leader
Jan 26 13:07:42 DV2Fv-Wazo consul[17910]: 2022/01/26 13:07:42 [ERR] agent: failed to sync changes: No cluster leader
Jan 26 13:07:42 DV2Fv-Wazo consul[17910]: 2022/01/26 13:07:42 [ERR] raft: Failed to take snapshot: nothing new to snapshot
Is there something wrong with our configuration ?