Issue with $HOST_IP
blagawuga opened this issue · comments
blagawuga commented
I've been trying to get bigben running but there was a issue with how HOST_IP is initialized.
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'}
which gives me the following output -
172.17.0.1 10.250.1.129
My ifconfig
output is -
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:c4:19:ef:ec txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.250.1.129 netmask 255.255.255.0 broadcast 10.250.1.255
inet6 fe80::1306:4384:456a:2a3 prefixlen 64 scopeid 0x20<link>
ether a0:8c:fd:28:8a:bd txqueuelen 1000 (Ethernet)
RX packets 22745 bytes 5727392 (5.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4943 bytes 615163 (615.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 14597 bytes 1526704 (1.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14597 bytes 1526704 (1.5 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So basically the HOST_IP gets all the IP addresses except the lo. In my case, changing it to the 127.0.0.1
resulted in success but I wanted to know if there's any other method?