Re: [squid-users] Squid not working for me

From: Dave Coventry <dgcoventry@dont-contact.us>
Date: Wed, 9 Jan 2008 13:01:41 +0200

On Jan 8, 2008 11:59 AM, Indunil Jayasooriya wrote:
> my dhcp server assigns both ip addresses and dns servers to clinets.

I have set my Ubuntu box 'Base' up as a DNS Server and tried to use
squid with partial results. Firefox returns the following:

ERROR
The requested URL could not be retrieved
While trying to retrieve the URL: http://www.cricinfo.com/
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 webmaster.
Generated Wed, 09 Jan 2008 10:47:36 GMT by Base (squid/2.6.STABLE14)

/var/log/squid/access.log contains the following:

root@Base:/home/dave# cat /var/log/squid/access.log
192.168.60.199 - - [09/Jan/2008:12:44:04 +0200] "GET
http://en-gb.start2.mozilla.com/firefox? HTTP/1.1" 503 1619
TCP_MISS:NONE
192.168.60.199 - - [09/Jan/2008:12:46:44 +0200] "GET
http://en-gb.start2.mozilla.com/firefox? HTTP/1.1" 503 1619
TCP_MISS:NONE
192.168.60.199 - - [09/Jan/2008:12:47:29 +0200] "GET
http://google.com/ HTTP/1.1" 503 1575 TCP_MISS:NONE
192.168.60.199 - - [09/Jan/2008:12:47:29 +0200] "GET
http://google.com/favicon.ico HTTP/1.1" 503 1597 TCP_MISS:NONE
192.168.60.199 - - [09/Jan/2008:12:47:29 +0200] "GET
http://google.com/favicon.ico HTTP/1.1" 503 1597 TCP_MISS:NONE
192.168.60.199 - - [09/Jan/2008:12:47:36 +0200] "GET
http://www.cricinfo.com/ HTTP/1.1" 503 1587 TCP_MISS:NONE

 /var/log/squid/cache.log has the following.

root@Base:/home/dave# cat /var/log/squid/cache.log
2008/01/09 07:35:12| storeDirWriteCleanLogs: Starting...
2008/01/09 07:35:12| Finished. Wrote 56 entries.
2008/01/09 07:35:12| Took 0.0 seconds (325581.4 entries/sec).
2008/01/09 07:35:12| logfileRotate: /var/log/squid/store.log
2008/01/09 07:35:12| logfileRotate: /var/log/squid/access.log
2008/01/09 12:44:04| Failed to select source for
'http://en-gb.start2.mozilla.com/firefox?client=firefox-a&rls=org.mozilla:en-GB:official'
2008/01/09 12:44:04| always_direct = -1
2008/01/09 12:44:04| never_direct = 1
2008/01/09 12:44:04| timedout = 0
2008/01/09 12:46:44| Failed to select source for
'http://en-gb.start2.mozilla.com/firefox?client=firefox-a&rls=org.mozilla:en-GB:official'
2008/01/09 12:46:44| always_direct = -1
2008/01/09 12:46:44| never_direct = 1
2008/01/09 12:46:44| timedout = 0
root@Base:/home/dave# cat /var/log/squid/cache.log
2008/01/09 07:35:12| storeDirWriteCleanLogs: Starting...
2008/01/09 07:35:12| Finished. Wrote 56 entries.
2008/01/09 07:35:12| Took 0.0 seconds (325581.4 entries/sec).
2008/01/09 07:35:12| logfileRotate: /var/log/squid/store.log
2008/01/09 07:35:12| logfileRotate: /var/log/squid/access.log
2008/01/09 12:44:04| Failed to select source for
'http://en-gb.start2.mozilla.com/firefox?client=firefox-a&rls=org.mozilla:en-GB:official'
2008/01/09 12:44:04| always_direct = -1
2008/01/09 12:44:04| never_direct = 1
2008/01/09 12:44:04| timedout = 0
2008/01/09 12:46:44| Failed to select source for
'http://en-gb.start2.mozilla.com/firefox?client=firefox-a&rls=org.mozilla:en-GB:official'
2008/01/09 12:46:44| always_direct = -1
2008/01/09 12:46:44| never_direct = 1
2008/01/09 12:46:44| timedout = 0
2008/01/09 12:47:29| Failed to select source for 'http://google.com/'
2008/01/09 12:47:29| always_direct = -1
2008/01/09 12:47:29| never_direct = 1
2008/01/09 12:47:29| timedout = 0
2008/01/09 12:47:29| Failed to select source for 'http://google.com/favicon.ico'
2008/01/09 12:47:29| always_direct = -1
2008/01/09 12:47:29| never_direct = 1
2008/01/09 12:47:29| timedout = 0
2008/01/09 12:47:29| Failed to select source for 'http://google.com/favicon.ico'
2008/01/09 12:47:29| always_direct = -1
2008/01/09 12:47:29| never_direct = 1
2008/01/09 12:47:29| timedout = 0
2008/01/09 12:47:36| Failed to select source for 'http://www.cricinfo.com/'
2008/01/09 12:47:36| always_direct = -1
2008/01/09 12:47:36| never_direct = 1
2008/01/09 12:47:36| timedout = 0

However, I can no longer ssh into Base as the name won't reconcile, I
now must access 192.168.60.254 (eth1) or 192.168.10.23 (eth0)

I feel I am getting close, but need to find out why 'Base' is no
longer working (you will notice that the prompt is 'root@Base'.

Can you offer any suggestions?
Received on Wed Jan 09 2008 - 04:01:50 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST