[squid-users] Dead parent never reviving

From: Eric Lawson <E.Lawson@dont-contact.us>
Date: Wed, 04 Sep 2002 16:32:29 +1000

Hello again everyone, one more question for the knowledgable amongst you all.

Here's the situation. I get a phone call from a remote office asking if the internet is down. I quickly pull up a browser window, and everything is fine. Asking what the error is, I find out that they're getting an error from the squid box in their office that it can't contact it's parent cache. Now I know the parent cache is fine, as that's what I have used to check the internet access. Also other offices are working without any problems. I get them to reboot the cache in the remote office and it doesn't help, they are getting the same error. I then reboot the parent cache and things start working. Odd thing is though, I have 4 remote sites, and only the one was complaining, the other three were working fine before I rebooted the parent cache. This happened a few weeks ago, and now I have the same symptoms, with a different remote site this time. Same again, reboot the parent cache and things start working again.

I thought the detecting of a revived dead parent was supposed to be automatic? The parent cache in all these cases was still accessible by other child caches. I have an inkling that there was some network congestion on the link to the remote site. Could this be a factor? and if so, what can I do to resolve this so I don't have to reboot my parent cache all the time.

All caches are running 2.3 Stable 4

This is an extract from the cache log on the remote cache

2002/09/04 14:04:06| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:19| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:27| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:37| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:50| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:51| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:04:58| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:05:05| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:05:20| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:05:22| TCP connection to 10.65.9.132/3128 failed
2002/09/04 14:05:32| Failed to select source for 'http://www.jbwere.com.au/Research/MarketUpdate/default.cfm'
2002/09/04 14:05:32| always_direct = 0
2002/09/04 14:05:32| never_direct = 1
2002/09/04 14:05:32| timedout = 1
2002/09/04 14:05:38| Detected DEAD Parent: 10.65.9.132/3128/3130
2002/09/04 14:05:38| Failed to select source for 'http://www.usopen.org/'
2002/09/04 14:05:38| always_direct = 0
2002/09/04 14:05:38| never_direct = 1
2002/09/04 14:05:38| timedout = 0

The failed to select source messages go on till

2002/09/04 15:16:36| TCP connection to 10.65.9.132/3128 succeeded
2002/09/04 15:16:49| Detected REVIVED Parent: 10.65.9.132/3128/3130

This is when I rebooted the parent cache

These are the two relevant squid.conf files

Parent Squid.conf

http_port 3128
icp_port 3130
cache_peer 10.65.9.1 parent 80 7 no-query default
cache_mem 66 MB
maximum_object_size 10240 KB
cache_dir ufs /home/squid2/cache 30456.529 16 256
cache_access_log /home/squid2/logs/access.log
cache_log /home/squid2/logs/cache.log
cache_store_log none
cache_swap_log /etc/squid/swap.log
mime_table /home/squid2/etc/mime.conf
pid_filename /etc/squid/squid.pid
unlinkd_program /home/squid2/bin/unlinkd
refresh_pattern . 0 10% 2880
refresh_pattern . 0 10% 2880
refresh_pattern . 0 10% 2880
quick_abort_min 10 KB
quick_abort_max 50 KB
quick_abort_pct 90
negative_ttl 5 minutes
range_offset_limit 0 KB
acl all src 0.0.0.0/0.0.0.0
http_access allow all
icp_access allow all
cache_effective_user nobody
cache_effective_group nobody
logfile_rotate 1
store_avg_object_size 11 KB
never_direct allow all
icon_directory /home/squid2/etc/icons
error_directory /home/squid2/etc/errors
uri_whitespace allow
proxy_pac_url none
proxy_pac_refresh 0 hours
lookahead_timeout 30 seconds
lookahead_window 5
lookahead_tags APPLET,[CODEBASE]ARCHIVE APPLET,[CODEBASE]CODE APPLET,[CODEBASE]OBJECT APPLET,[CODEBASE]SRC BGSOUND,SRC BODY,BACKGROUND EMBED,[CODEBASE]SRC EMBED,[CODEBASE]CODE FRAME,SRC IFRAME,SRC IMG,SRC IMG,DYNSRC OBJECT,[CODEBASE]ARCHIVE OBJECT,[CODEBASE]CLASSID OBJECT,CODE OBJECT,[CODEBASE]DATA SCRIPT,SRC
lookahead_depth 2
server_http_version 1.1
server_pipeline_depth 3

Child squid.conf

http_port 3128
icp_port 3130
cache_peer 10.65.9.132 parent 3128 3130
cache_mem 32 MB
maximum_object_size 10240 KB
cache_dir ufs /home/squid2/cache 14562.548 16 256
cache_access_log /home/squid2/logs/access.log
cache_log /home/squid2/logs/cache.log
cache_store_log none
cache_swap_log /etc/squid/swap.log
mime_table /home/squid2/etc/mime.conf
pid_filename /etc/squid/squid.pid
unlinkd_program /home/squid2/bin/unlinkd
refresh_pattern . 0 10% 2880
refresh_pattern . 0 10% 2880
refresh_pattern . 0 10% 2880
quick_abort_min 10 KB
quick_abort_max 50 KB
quick_abort_pct 90
negative_ttl 5 minutes
range_offset_limit 0 KB
acl all src 0.0.0.0/0.0.0.0
http_access allow all
icp_access allow all
cache_effective_user nobody
cache_effective_group nobody
logfile_rotate 1
store_avg_object_size 11 KB
never_direct allow all
icon_directory /home/squid2/etc/icons
error_directory /home/squid2/etc/errors
uri_whitespace allow
proxy_pac_url none
proxy_pac_refresh 0 hours
lookahead_timeout 30 seconds
lookahead_window 20
lookahead_tags APPLET,[CODEBASE]ARCHIVE APPLET,[CODEBASE]CODE APPLET,[CODEBASE]OBJECT APPLET,[CODEBASE]SRC BGSOUND,SRC BODY,BACKGROUND EMBED,[CODEBASE]SRC EMBED,[CODEBASE]CODE FRAME,SRC IFRAME,SRC IMG,SRC IMG,DYNSRC OBJECT,[CODEBASE]ARCHIVE OBJECT,[CODEBASE]CLASSID OBJECT,CODE OBJECT,[CODEBASE]DATA SCRIPT,SRC
lookahead_depth 2
server_http_version 1.1
server_pipeline_depth 3

######################################################################
                         Warning

This email message and any attached files may contain information
that is confidential and subject of legal privilege intended only
for use by the individual or entity to whom they are addressed. If
you are not the intended recipient or the person responsible for
delivering the message to the intended recipient be advised that
you have received this message in error and that any use, copying,
circulation, forwarding, printing or publication of this message or
attached files is strictly forbidden, as is the disclosure of the
information contained therein. If you have received this message in
error, please notify the sender immediately and delete it from your
Inbox.

www.nca.gov.au
######################################################################
Received on Wed Sep 04 2002 - 00:30:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:10:03 MST