==> Starting Consul agent...
==> Error starting agent: Failed to start Consul server: Failed to start RPC layer: listen tcp 10.0.5.177:8300: bind: cannot assign requested address
Systemd is failing to start consul up on the reboot, however if I manually type "systemctl start consul" it works fine: I don't get the assign error. Any ideas?
Here's my setup:
[Unit]
Description=Consul Agent
[Service]
Environment="GOMAXPROCS=`nproc`"
User=consul
Group=consul
ExecStart=/bin/sh -c '/opt/consul/bin/consul agent -server -config-dir /etc/consul.d -config-file=/etc/consul.conf >> /var/log/consul 2>&1'
[Install]
WantedBy=multi-user.target
Wants=network-online.target
After=network-online.target