I've recently encountered an issue with HasiCorp's Consul being stuck in a boot loop.
Although the following lines may not be directly correlated with the issue, I chose to include them just in case anyone - like me - searches for those errors and actually has the same - but different problem.
systemd: consul.service: Main process exited, code=exited, status=1/FAILURE systemd: consul.service: Failed with result 'timeout'. systemd: Failed to start "HashiCorp Consul - A service mesh solution".
consul: 2023-10-05T17:50:23.579Z [ERROR] agent: error handling service update: error="error watching service config: No cluster leader" consul: 2023-10-05T17:50:24.979Z [ERROR] agent.proxycfg: Failed to handle update from watch: kind=connect-proxy proxy=_nomad-task-...> consul: 2023-10-05T17:50:25.531Z [WARN] agent.leaf-certs: handling error in Manager.Notify: error="CA is uninitialized and unable to sign certificates yet: provider is nil" index=1
Add the current server IP address to the
retry_join array in your
retry_join = ["10.0.0.1"]
Here you go.