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

2009-10-14 Thread Amos Jeffries

Silamael wrote:

Amos Jeffries wrote:

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


What are the plans here? I just tried to run Squid 3.1.0.14 on OpenBSD
4.6 with IPv6 enabled. I get:

2009/10/14 09:34:18| comm_open: setsockopt(IPV6_V6ONLY) on FD 15: (22)
Invalid Argument

So, is IPv6 currently not usable under OpenBSD at all? Or do i have to
set some special compile options?


Yes. OpenBSD needs to --disable-ipv6 :(

Support is being worked on and tested in 3.HEAD. The results are 
progressing slowly, but not usable enough to be brought into 3.1 yet.


We have got past that V6ONLY issue, and some DNS ones. Now the main TCP 
links are simply hanging :(


I have high hopes that that will be the final blocker bug for IPv6 
support in OpenBSD.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
  Current Beta Squid 3.1.0.14


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

2009-10-14 Thread Silamael
Amos Jeffries wrote:
> 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

What are the plans here? I just tried to run Squid 3.1.0.14 on OpenBSD
4.6 with IPv6 enabled. I get:
> 2009/10/14 09:34:18| comm_open: setsockopt(IPV6_V6ONLY) on FD 15: (22)
> Invalid Argument
So, is IPv6 currently not usable under OpenBSD at all? Or do i have to
set some special compile options?

-- Matthias


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

2009-10-11 Thread Amos Jeffries
On Sun, 11 Oct 2009 11:05:52 +0200, Ralf Hildebrandt
 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:, 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



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

2009-10-11 Thread Ralf Hildebrandt
* Ralf Hildebrandt :
> * Ralf Hildebrandt :
> > With squid-3.1 I'm getting this error:
> 
> My other squid instance reports:
> 
> 2009/10/11 11:30:57| comm_udp_sendto: FD 6, (family=10) 127.0.0.1:53: (97) 
> Address family not supported by protocol
> 2009/10/11 11:30:57| idnsSendQuery: FD 6: sendto: (97) Address family not 
> supported by protocol
> 2009/10/11 11:30:57| comm_udp_sendto: FD 6, (family=10) 141.42.1.11:53: (97) 
> Address family not supported by protocol
> 2009/10/11 11:30:57| idnsSendQuery: FD 6: sendto: (97) Address family not 
> supported by protocol
> 
> Which seems related somehow.

My machine had no ipv6 support, the Debian package was built WITH ipv6
support -> fail

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



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

2009-10-11 Thread Ralf Hildebrandt
* Ralf Hildebrandt :
> With squid-3.1 I'm getting this error:

My other squid instance reports:

2009/10/11 11:30:57| comm_udp_sendto: FD 6, (family=10) 127.0.0.1:53: (97) 
Address family not supported by protocol
2009/10/11 11:30:57| idnsSendQuery: FD 6: sendto: (97) Address family not 
supported by protocol
2009/10/11 11:30:57| comm_udp_sendto: FD 6, (family=10) 141.42.1.11:53: (97) 
Address family not supported by protocol
2009/10/11 11:30:57| idnsSendQuery: FD 6: sendto: (97) Address family not 
supported by protocol

Which seems related somehow.

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



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

2009-10-11 Thread Ralf Hildebrandt
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:, 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
...

Config:

http_port localhost:

ftp_list_width 80
request_header_max_size 15 KB
request_body_max_size 750 MB
half_closed_clients off
forwarded_for on

#acl all src 0.0.0.0/0
http_access allow all
no_cache deny all

snmp_port 0
icp_port 0

cache_mgr mun...@charite.de
visible_hostname proxy-cvk-1-nocache.charite.de

#cache_dir null /tmp

icon_directory /usr/share/squid3/icons
error_directory /usr/share/squid3/errors/de

#logformat squidport  %ts.%03tu %6tr %>a %Ss/%03Hs %p
# cache_access_log /var/log/squid/access-nocache.log squidport

cache_access_log /var/log/squid/access-nocache.log
cache_log /var/log/squid/cache-nocache.log
cache_store_log none

pid_filename /var/run/squid-nocache.pid