Error logs for consul systemd

I’m trying to get a cluster up and running keep failing at starting the service, my configuration is passing and I’m getting this when trying to start the service :

ubuntu@ip-10-0-1-228:~/gh/machine-deployment/consul-hashicorp$ sudo consul validate /etc/consul.d/consul.hcl
Configuration is valid!
ubuntu@ip-10-0-1-228:~/gh/machine-deployment/consul-hashicorp$ sudo systemctl start consul
Job for consul.service failed because the control process exited with error code.
See “systemctl status consul.service” and “journalctl -xe” for details.
ubuntu@ip-10-0-1-228:~/gh/machine-deployment/consul-hashicorp$ journalctl -xe
Jul 26 13:31:44 ip-10-0-1-228 systemd[1]: Failed to start “HashiCorp Consul - A service mesh solution”.
– Subject: Unit consul.service has failed
– Defined-By: systemd
– Support:

– Unit consul.service has failed.

– The result is RESULT.
Jul 26 13:31:44 ip-10-0-1-228 systemd[1]: consul.service: Service hold-off time over, scheduling restart.
Jul 26 13:31:44 ip-10-0-1-228 systemd[1]: consul.service: Scheduled restart job, restart counter is at 5.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Support:

– Automatic restarting of the unit consul.service has been scheduled, as the result for
– the configured Restart= setting for the unit.

Are there any other places to check where the failure is ?

I’m using the systemd unit file from

firstly, you could check by running the consul command on the shell, it could reveal some more errors. In your case, I think it would be:

/usr/local/bin/consul agent -config-dir=/etc/consul.d/

Also, “shameless plug” follows: :grinning:
you could use the scripts/configs from here as quick “reference” …

Disclaimer: They are not identical to the one as the HashiCorp official ones from their learn guides. (It’s just that these have been working for me for quite a few years, and I haven’t bothered to tweak them) :grin: