[Varnish] #396: IPv6 problem with management interface on localhost on Linux

Varnish varnish-bugs at projects.linpro.no
Fri Nov 28 19:21:07 CET 2008

#396: IPv6 problem with management interface on localhost on Linux
 Reporter:  olau   |        Type:  defect
   Status:  new    |    Priority:  normal
Milestone:         |   Component:  build 
  Version:  trunk  |    Severity:  normal
 Keywords:         |  
 I'm not super familiar with the socket API, so I don't know whether you
 can fix it, but I just upgraded a Debian testing box to Varnish 2.0.2 from
 1.1.2 and had Varnish crash on me with the following error when run with
 "varnishd -d -d -a :80 -T localhost:6082 -f /etc/varnish/iola.vcl -s

 socket(): Address family not supported by protocol
 Assert error in mgt_cli_telnet(), mgt_cli.c line 478:
   Condition(sock >= 0) not true.
   errno = 97 (Address family not supported by protocol)

 If I replaced "-T localhost:6082" with "-T" then it worked.
 Maybe it needs a check and fallback on IPv4?

 My /etc/hosts file contains an entry for localhost for both IPv4 and IPv6
 (which might be a bug in Debian given that the kernel refuses the socket):

 {{{       iola.dk localhost localhost.localdomain
 ::1     localhost ip6-localhost ip6-loopback
 I don't think Varnish 1.1.2 had this problem.

Ticket URL: <http://varnish.projects.linpro.no/ticket/396>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list