Re: Squid 3.2 Cannot bind socket

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Thu, 02 Dec 2010 07:53:57 -0700

On 12/02/2010 05:12 AM, Menil Jean-Philippe wrote:

> finally, with the debug option you send me, i'm able to see more clearly.
>
> Squid was'nt starting normally, because he want to create the
> coordinator.ipc and suiq-*.ipc int he /usr/var/run.
> This directory doesn't exist. After create it, and set the right
> permissions; squid start successfully.
>
> I have compiled squid with theses options:
>
> --datadir=/usr/share/squid3 \
> --sysconfdir=/etc/squid3 \
> --mandir=/usr/share/man \
> --with-cppunit-basedir=/usr \
> --enable-inline \
> --enable-async-io=8 \
> --enable-storeio="ufs,aufs,diskd" \
> --enable-removal-policies="lru,heap" \
> --enable-delay-pools \
> --enable-cache-digests \
> --enable-underscores \
> --enable-icap-client \
> --enable-follow-x-forwarded-for \
> --enable-useragent-log \
> --enable-auth \
> --enable-auth-basic="LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,getpwnam,multi-domain-NTLM"
> \
> --enable-auth-ntlm="SMB" \
> --enable-auth-digest="ldap,password" \
> --enable-auth-negotiate="squid_kerb_auth" \
> --enable-external-acl-helpers="ip_user,ldap_group,session,unix_group,wbinfo_group"
> \
> --enable-arp-acl \
> --enable-esi \
> --enable-snmp \
> --disable-translation \
> --disable-ident-lookups \
> --disable-ipv6 \
> --with-logdir=/var/log/squid3 \
> --with-pidfile=/var/run/squid3.pid \
> --with-filedescriptors=65536 \
> --with-large-files \
> --without-netfilter-conntrack \
> --with-default-user=proxy
>
> I think, it's related to the prefix or the cppinit-basedir?

I do not think so. There was a typo in Squid Makefile that resulted in
var/run directory not being created during "make install". I think it is
fixed in trunk r10984. The fix will propagate to v3.2 releases eventually.

We should also fix the diagnostics; current Squid reaction to the
missing var/run is clearly inadequate.

Glad you got it working.

Alex.
Received on Thu Dec 02 2010 - 14:54:18 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 03 2010 - 12:00:03 MST