Re: [squid-users] Squid-3.1: comm_open: socket failure: (97) Address family not supported by protocol

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 12 Oct 2009 12:28:56 +1300

On Sun, 11 Oct 2009 11:05:52 +0200, Ralf Hildebrandt
<Ralf.Hildebrandt_at_charite.de> wrote:
> With squid-3.1 I'm getting this error:
>
> 2009/10/11 10:56:30| Starting Squid Cache version 3.1.0.14 for
> i486-pc-linux-gnu...
> 2009/10/11 10:56:30| Process ID 19416
> 2009/10/11 10:56:30| With 4096 file descriptors available
> 2009/10/11 10:56:30| Initializing IP Cache...
> 2009/10/11 10:56:30| comm_open: socket failure: (97) Address family not
> supported by protocol
> 2009/10/11 10:56:30| DNS Socket created at 0.0.0.0, FD 6
> 2009/10/11 10:56:30| Adding domain charite.de from /etc/resolv.conf
> 2009/10/11 10:56:30| Adding nameserver 127.0.0.1 from /etc/resolv.conf
> 2009/10/11 10:56:30| Adding nameserver 141.42.1.11 from /etc/resolv.conf
> 2009/10/11 10:56:30| Adding nameserver 141.42.2.22 from /etc/resolv.conf
> 2009/10/11 10:56:31| Unlinkd pipe opened on FD 11
> 2009/10/11 10:56:31| Local cache digest enabled; rebuild/rewrite every
> 3600/3600 sec
> 2009/10/11 10:56:31| Store logging disabled
> 2009/10/11 10:56:31| Swap maxSize 0 + 262144 KB, estimated 20164 objects
> 2009/10/11 10:56:31| Target number of buckets: 1008
> 2009/10/11 10:56:31| Using 8192 Store buckets
> 2009/10/11 10:56:31| Max Mem size: 262144 KB
> 2009/10/11 10:56:31| Max Swap size: 0 KB
> 2009/10/11 10:56:31| Using Least Load store dir selection
> 2009/10/11 10:56:31| Current Directory is /etc/service/squid-nocache
> 2009/10/11 10:56:31| Loaded Icons.
> 2009/10/11 10:56:31| Accepting HTTP connections at 127.0.0.1:8888, FD
12.
> 2009/10/11 10:56:31| HTCP Disabled.
> 2009/10/11 10:56:31| Squid modules loaded: 0
> 2009/10/11 10:56:31| Adaptation support is off.
> 2009/10/11 10:56:31| Ready to serve requests.
> 2009/10/11 10:56:31| comm_open: socket failure: (97) Address family not
> supported by protocol

You have IPv6 disabled in your system somehow.

Squid opens IPv4/IPv6 hybrid sockets to receive and send both v4 and v6
traffic in one socket for simplicity and ease of transition. If that fails
like in your case it falls back to IPv4-only sockets.

I recommend re-enabling IPv6 socket capability in your OS.

If you have OpenBSD or MacOSX they do not support these hybrid socket
features at all. I'm still working on getting support for their
'split-stack'. So they will work very slightly better for now with IPv6
disabled in Squid.

Amos
Received on Sun Oct 11 2009 - 23:28:59 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 14 2009 - 12:00:02 MDT