I ran into this as well when I upgraded from 2.6 to 3.0 (stable10) and
tried converting from icp to htcp in the process.  Squid would start up,
go for a little while, and then die in less than 2 minutes.  I resolved
this by adding 'no-query' to my cache_peer sibling statements (in
effect, turning off intercache communication).  I would like to know how
best to re-enable sibling communication, and whether or not I'm in the
same boat here (waiting for a bug fix).

relevant portion of config...

icp_port 0
htcp_port 4827
icp_query_timeout 500
cache_peer x.x.x.1 sibling 80 4827 htcp proxy-only no-query
cache_peer x.x.x.2 sibling 80 4827 htcp proxy-only no-query
cache_peer x.x.x.3 sibling 80 4827 htcp proxy-only no-query
acl siblings src x.x.x.1 x.x.x.2 x.x.x.3
http_access allow siblings
htcp_access allow siblings
htcp_access deny all

cache.log from that time - notice the "neighborsUdpPing: There is no ICP
socket!" towards the end...that's where Squid would die, and try to
revive itself, but never really get airborne

squid[19208]: Starting Squid Cache version 3.0.STABLE10 for
x86_64-unknown-linux-gnu...
squid[19208]: Process ID 19208
squid[19208]: With 16384 file descriptors available
squid[19208]: Performing DNS Tests...
squid[19208]: Successful DNS name lookup tests...
squid[19208]: DNS Socket created at 0.0.0.0, port 37033, FD 8
squid[19208]: Adding nameserver x.x.x.x from /etc/resolv.conf
squid[19208]: Adding nameserver x.x.x.x from /etc/resolv.conf
squid[19208]: Adding domain xxxxxx.com from /etc/resolv.conf
squid[19208]: Unlinkd pipe opened on FD 13
squid[19208]: Store logging disabled
squid[19208]: Swap maxSize 0 KB, estimated 0 objects
squid[19208]: Target number of buckets: 0
squid[19208]: Using 8192 Store buckets
squid[19208]: Max Mem  size: 4194304 KB
squid[19208]: Max Swap size: 0 KB
squid[19208]: Using Round Robin store dir selection
squid[19208]: Current Directory is /root
squid[19208]: Loaded Icons.
squid[19208]: Accepting accelerated HTTP connections at 0.0.0.0, port
80, FD 11.
squid[19208]: Accepting HTCP messages on port 4827, FD 12.
squid[19208]: Accepting SNMP messages on port 3401, FD 14.
squid[19208]: Configuring Parent x.x.x.x /80/0
squid[19208]: Configuring Sibling x.x.x.x /80/4827
squid[19208]: Configuring Sibling x.x.x.x /80/4827
squid[19208]: Configuring Sibling x.x.x.x /80/4827
squid[19208]: Ready to serve requests.
squid[19208]: Finished rebuilding storage from disk.
squid[19208]:         0 Entries scanned
squid[19208]:         0 Invalid entries.
squid[19208]:         0 With invalid flags.
squid[19208]:         0 Objects loaded.
squid[19208]:         0 Objects expired.
squid[19208]:         0 Objects cancelled.
squid[19208]:         0 Duplicate URLs purged.
squid[19208]:         0 Swapfile clashes avoided.
squid[19208]:   Took 0.28 seconds (  0.00 objects/sec).
squid[19208]: Beginning Validation Procedure
squid[19208]:   Completed Validation Procedure
squid[19208]:   Validated 25 Entries
squid[19208]:   store_swap_size = 0
squid[19208]: storeDirWriteCleanLogs: Starting...
squid[19208]:   Finished.  Wrote 0 entries.
squid[19208]:   Took 0.00 seconds (  0.00 entries/sec).
squid[19208]: neighborsUdpPing: There is no ICP socket!
squid[9938]: Squid Parent: child process 19208 exited with status 1
squid[9938]: Squid Parent: child process 19211 started
squid[19211]: Starting Squid Cache version 3.0.STABLE10 for
x86_64-unknown-linux-gnu...
(repeats)


-----Original Message-----
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2008 2:04 PM
To: Bostonian
Cc: Chris Robertson; squid-users@squid-cache.org
Subject: Re: [squid-users] issue with htcp support on squid

tis 2008-12-09 klockan 13:19 -0800 skrev Bostonian:
> Thank you for your help, Chris.
> 
> I turned on all the debug_options you suggested and found out the
> problem. By mistake I disabled
> icp_port to use htcp. The log file indicated that no ICP socket. The
> problem is solved now.

Please file a bug. HTCP operation is not supposed to need the ICP
socket.

Regards
Henrik

Reply via email to