[squid-users] Failed to select source for - Unable to forward this request at this time

From: karj <gkaragiannidis_at_dolnet.gr>
Date: Thu, 15 Dec 2011 12:46:20 +0200

Hi list,
I am using Squid as HTTP accelerator, (Squid Cache: Version 2.7.STABLE9)
and I've got the following problem-Error:

ERROR
The requested URL could not be retrieved

While trying to retrieve the URL:
http://swww.mgmt.example.com/themes/1/default/Media/Home/sylloges.arrow.righ
t.active.gif

The following error was encountered:

    * Unable to forward this request at this time.

This request could not be forwarded to the origin server or to any parent
caches. The most likely cause for this error is that:

    * The cache administrator does not allow this cache to make direct
connections to origin servers, and
    * All configured parent caches are currently unreachable.

Your cache administrator is
Generated Thu, 15 Dec 2011 10:13:43 GMT by (squid)

At the cahe.log I've got the following message

Failed to select source for
'http://swww.mgmt.example.com/themes/1/default/Media/Home/sylloges.arrow.rig
ht.active.gif'
2011/12/15 12:14:48| always_direct = 0
2011/12/15 12:14:48| never_direct = 0
2011/12/15 12:14:48| timedout = 0

At the access.log I've got
504 1648 TCP_MISS:NONE - - [15/Dec/2011:12:37:31 +0200] "GET
http://swww.mgmt.example.com/themes/1/default/Media/Home/sylloges.arrow.righ
t.active.gif HTTP/1.1" "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB;
rv:1.9.2.24) Gecko/20111103 Firefox/3.6.24 GTB7.1"

But I am sure that the URL is reachable in backend web server.

The configuration options for the above URL are:

refresh_pattern
example\.com\/(.*)\.(jpg|gif|png|jpeg|css|js|axd|bmp|ico|swf) 1440 1000%
4320 reload-into-ims override-expire ignore-no-cache ignore-private
override-lastmod ignore-reload
refresh_pattern example\.com\/image\.limg 1440 1000% 4320 reload-into-ims
override-expire ignore-no-cache ignore-private override-lastmod
ignore-reload
# First page 5 min
refresh_pattern -i .example\.com\/$ 5 100% 6 reload-into-ims override-expire
ignore-no-cache ignore-private override-lastmod ignore-reload
# Articles page 6 min
refresh_pattern -i .example\.com\/(.*)\/\?aid= 6 100% 6 reload-into-ims
override-expire ignore-no-cache ignore-private override-lastmod
ignore-reload
# ArticleLIST Pagination page 60 min (articlelist/?pg=)
refresh_pattern -i .example\.com\/(.*)\/articlelist\/\?pg= 60 100% 70
reload-into-ims override-expire ignore-no-cache ignore-private
override-lastmod ignore-reload
refresh_pattern -i example\.com 1440 0% 4320 reload-into-ims
override-expire ignore-no-cache ignore-private override-lastmod
ignore-reload

#--- CACHE_PEER farm example start ----
cache_peer xxx.xxx.xxx.xxx parent 80 0 no-query no-digest no-netdb-exchange
originserver name=new_servers login=PASS
acl www.mgmt.example.com_site dstdomain .exammple.com
http_access allow www.mgmt.example.com_site
cache_peer_access new_servers allow www.mgmt.example.com_site
cache_peer_access new_servers deny all
#--- CACHE_PEER farm example end ----

icp_port 3130
icp_hit_stale off
log_icp_queries off
icp_query_timeout 500 #MILI SECS
visible_hostname KASANDRA.example.com
cache_peer xxx.xxx.xxx.xxx sibling 80 3130 no-netdb-exchange no-delay
no-digest proxy-only
cache_peer xxx.xxx.xxx.xxx sibling 80 3130 no-netdb-exchange no-delay
no-digest proxy-only

I've the same configuration options on both siblings, all my servers have
the same Problem.

I've googled my problem and found that this happens when you run out of file
descriptors which is not my case
       squidclient -p80 -h localhost mgr:info | grep 'file descri'

       Maximum number of file descriptors: 65534
        Available number of file descriptors: 62511
        Reserved number of file descriptors: 100

Could you please advise me, since I cannot find what is going wrong!

Thanks in advance
Yiannis
Received on Thu Dec 15 2011 - 10:46:38 MST

This archive was generated by hypermail 2.2.0 : Thu Dec 15 2011 - 12:00:03 MST