Search code examples
ubuntuconsul

How to fix `error starting agent failed to get advertise address multiple private ips found`


I want to build a cluster. I tried following this tutorial but I got this error. I dont know if it is because I am running 2 ubuntu vm(hyper-v) on the same machine .

enter image description here


Solution

  • It seems, that you have more than one network interface with private IP and Consul can't select one of them to use it as advertise address. You have to provide it manually with -bind property. Something like this:

    -bind=172.17.0.1