Re: Squid 3.2 Cannot bind socket

From: Jean-Philippe Menil <jean-philippe.menil_at_univ-nantes.fr>
Date: Fri, 26 Nov 2010 08:36:45 +0100

Le 26/11/2010 06:51, Jean-Philippe Menil a écrit :
> Hi,
>
> i recently installed squid 3.2 with "workers 2".
> However, i see the following in the cache.log:
>
> 2010/11/23 16:10:49 kid1| Ready to serve requests.
> 2010/11/23 16:10:49 kid1| commBind: Cannot bind socket FD 12 to [::]:
> (2) No such file or directory
> 2010/11/23 16:10:49 kid3| Loaded Icons.
> 2010/11/23 16:10:49 kid3| Squid modules loaded: 0
> 2010/11/23 16:10:49 kid3| Adaptation support is off.
> 2010/11/23 16:10:49 kid3| Ready to serve requests.
> 2010/11/23 16:10:49 kid3| commBind: Cannot bind socket FD 10 to [::]:
> (2) No such file or directory
>
> First, i think it was related to ipv6, but after recompiling squid with
> "--disable-ipv6", i observe the same error.
>
> Am i missing something?
>
> Regards.

Hi,

it seems not related to ipv6 afteward.

In the suqid.conf, if i had the following:

if ${process_name} = 1
         http_port 3129
endif

if ${process_name} = 2
         http_port 3130
endif

Squid odes not start:

Starting Squid HTTP Proxy 3.x: squid3Creating Squid HTTP Proxy 3.x cache
structure ... (warning).
FATAL: String is not a integer number: 'squid'

Squid Cache (Version 3.2.0.3): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.008 user + 0.000 sys
Maximum Resident Size: 19744 KB
Page faults with physical i/o: 0
FATAL: String is not a integer number: 'squid'

Squid Cache (Version 3.2.0.3): Terminated abnormally.
CPU Usage: 0.008 seconds = 0.004 user + 0.004 sys
Maximum Resident Size: 19728 KB
Page faults with physical i/o: 0
  failed!

But if i had the following otpions:

if ${process_number} = 1
         http_port 3129
endif

if ${process_number} = 2
         http_port 3130
endif

Squid is starting with the following logs:

2010/11/26 07:32:06 kid3| Took 0.00 seconds ( 0.00 entries/sec).
FATAL: No port defined
Squid Cache (Version 3.2.0.3): Terminated abnormally.

It's clear that i'm missing something in the conf, related to the
expression.

Can someone explain me?

Regards.

Received on Fri Nov 26 2010 - 19:39:51 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 28 2010 - 12:00:05 MST