mr-karan/homelab

need Consul systemd file

pratikbin opened this issue · 1 comments

Hello, @mr-karan

Kindly can you share the consul's systemd file just like you shared nomad's unit file? I'm struggling with Multiple private IP... thingy. FYI I clearing consul data directory everytime

consul.hcl

bind = "wlp0s20f3"
datacenter = "blr1"
data_dir = "/opt/consul/"
encrypt = "thisissecret"
server = true
bootstrap_expect = 1
bind_addr = "0.0.0.0"
ui = true
connect {
  enabled = true
}
Apr 05 09:38:18 ctos systemd[1]: consul.service: Scheduled restart job, restart counter is at 2.
Apr 05 09:38:18 ctos systemd[1]: Stopped "HashiCorp Consul - A service mesh solution".
Apr 05 09:38:18 ctos systemd[1]: Starting "HashiCorp Consul - A service mesh solution"...
Apr 05 09:38:18 ctos consul[50234]: ==> Multiple private IPv4 addresses found. Please configure one with 'bind' and/or 'advertise'.
Apr 05 09:38:18 ctos systemd[1]: consul.service: Main process exited, code=exited, status=1/FAILURE
Apr 05 09:38:18 ctos systemd[1]: consul.service: Failed with result 'exit-code'.
Apr 05 09:38:18 ctos systemd[1]: Failed to start "HashiCorp Consul - A service mesh solution".

Done! a09fcc1