[squid-users] Squid 3.5 ICAP Problems
Alex Rousskov
rousskov at measurement-factory.com
Thu Nov 2 17:21:33 UTC 2017
On 11/02/2017 10:29 AM, Stephen Stark wrote:
> Adaptation::Icap::Xaction::noteCommConnected(local=[::]
> remote=127.0.0.1:1344 flags=1, errno=101, ...
The logs you have provided do not show where/why exactly the TCP
connection to the ICAP service fails, but error number 101 is probably
"network unreachable". This is unusual but not impossible for localhost
traffic. The next step depends on the failure cause. There are at least
two major cases to consider:
A) If Squid sends packets to 127.0.0.1:1344, then you can easily
reproduce the problem using something like "telnet" or "nc" on the Squid
box command line. Just make sure you use the right _source_ IP address
for the connection! It has to be the same source IP address that Squid
is using. It might not be 127.0.0.1. Running that command as Squid user
might also be important if the Squid box have some fancy user-specific
networking restrictions.
B) If Squid does not send packets to 127.0.0.1:1344, then one can figure
out what goes wrong by studying relevant ALL,9 logs. You may also want
to address other errors or warnings Squid logs to cache.log (if any).
You can determine whether Squid sends packets to 127.0.0.1:1344 by
collecting a packet trace (for all Squid box interfaces!) and/or running
strace (for the Squid worker process).
HTH,
Alex.
More information about the squid-users
mailing list