gathering / gondul

Network management/monitoring system specialized for temporary events
http://tech.gathering.org
GNU General Public License v2.0
42 stars 10 forks source link

Varnish crashes when localhost resolves to multiple IP's #193

Closed lasseh closed 5 years ago

lasseh commented 5 years ago

Need a fix so varnish starts when the server has multiple IP's on an interface

varnishd[40527]: Error:
varnishd[40527]: Message from VCC-compiler:
varnishd[40527]: Backend host "localhost": resolves to too many addresses.
varnishd[40527]: Only one IPv4 and one IPv6 are allowed.
varnishd[40527]: Please specify which exact address you want to use,  we found all of these:
varnishd[40527]:         ::1:8080
varnishd[40527]:         127.0.0.1:8080
varnishd[40527]:         81.27.36.80:8080
varnishd[40527]: ('/etc/varnish/default.vcl' Line 6 Pos 13)
varnishd[40527]:     .host = "localhost";
varnishd[40527]: ------------###########-
varnishd[40527]: Running VCC-compiler failed, exited with 2
varnishd[40527]: VCL compilation failed