----- Original Message -----
From: "Henrik Nordstrom" <hno@squid-cache.org>
To: "Liquid Crystal" <liquid.crystal@sadeem.net>; "Marc Elsen"
<marc.elsen@imec.be>
Cc: <squid-users@squid-cache.org>
Sent: Tuesday, July 15, 2003 8:35 AM
Subject: Re: [squid-users] What could be the reason? "client: ERROR: Cannot
connect to localhost:8080: Connection refused"
> On Tuesday 15 July 2003 07.15, Liquid Crystal wrote:
>
> > > > > 2003/07/11 04:52:35| Accepting HTTP connections at x.x.x.x,
> > > > > port 8080, FD 8.
> > >
> > > This is a valuable hint. Your Squid is configured to listen at a
> > > specific IP address only. Contacting Squid via localhost won't
> > > work in this setup as Squid is not listening on localhost.
> >
> > Then how can I fix this? what should it be?
>
>
> If that x.x.x.x is anything else than 0.0.0.0 (which I assume it is as
> you replaced it by x.x.x.x) then there can only be two reasons:
>
> a) You are using Squid-2.4 or earlier and have tcp_incoming_address
> specified in squid.conf.
>
> b) You are using Squid-2.5 or later and have specified an address to
> http_port.
>
Yes I am running 2.5Stable3.
> If you are unsure you can verify the address bound to by running
> "netstat -an | grep LISTEN | grep :8080"
>
Mar Elsen suggested to change the port, so I changed it to http_port 80
Now in the cache.log it shows:
2003/07/15 02:21:47| Starting Squid Cache version 2.5.STABLE3 for
i686-pc-linux-gnu...
2003/07/15 02:21:47| Process ID 20549
2003/07/15 02:21:47| With 1024 file descriptors available
2003/07/15 02:21:47| Performing DNS Tests...
2003/07/15 02:21:47| Successful DNS name lookup tests...
2003/07/15 02:21:47| DNS Socket created at 0.0.0.0, port 32787, FD 4
2003/07/15 02:21:47| Adding nameserver x.x.x.x from /etc/resolv.conf
2003/07/15 02:21:47| Adding nameserver x.x.x.x from /etc/resolv.conf
2003/07/15 02:21:47| Unlinkd pipe opened on FD 9
2003/07/15 02:21:47| Swap maxSize 1048576 KB, estimated 80659 objects
2003/07/15 02:21:47| Target number of buckets: 4032
2003/07/15 02:21:47| Using 8192 Store buckets
2003/07/15 02:21:47| Max Mem size: 8192 KB
2003/07/15 02:21:47| Max Swap size: 1048576 KB
2003/07/15 02:21:47| Rebuilding storage in /usr/local/squid/cache (CLEAN)
2003/07/15 02:21:47| Using Least Load store dir selection
2003/07/15 02:21:47| Set Current Directory to /usr/local/squid/var/cache
2003/07/15 02:21:47| Loaded Icons.
2003/07/15 02:21:47| Accepting HTTP connections at 0.0.0.0, port 80, FD 11.
2003/07/15 02:21:47| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2003/07/15 02:21:47| WCCP Disabled.
2003/07/15 02:21:47| Ready to serve requests.
2003/07/15 02:21:47| Done reading /usr/local/squid/cache swaplog (16
entries)
2003/07/15 02:21:47| Finished rebuilding storage from disk.
2003/07/15 02:21:47| 16 Entries scanned
2003/07/15 02:21:47| 0 Invalid entries.
2003/07/15 02:21:47| 0 With invalid flags.
2003/07/15 02:21:47| 16 Objects loaded.
2003/07/15 02:21:47| 0 Objects expired.
2003/07/15 02:21:47| 0 Objects cancelled.
2003/07/15 02:21:47| 0 Duplicate URLs purged.
2003/07/15 02:21:47| 0 Swapfile clashes avoided.
2003/07/15 02:21:47| Took 0.0 seconds ( 16.0 objects/sec).
2003/07/15 02:21:47| Beginning Validation Procedure
2003/07/15 02:21:48| Completed Validation Procedure
2003/07/15 02:21:48| Validated 16 Entries
2003/07/15 02:21:48| store_swap_size = 120k
2003/07/15 02:21:48| storeLateRelease: released 0 objects
nslookup gives:
# netstat -an | grep LISTEN | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
Testing again after changing the port show:
# ./squidclient -p 80 http://www.netscape.com
Alarm clock
What is that Alarm Clock thing? does it mean the time out? ohh and by the
way, it is not logged in the access.log.
Received on Tue Jul 15 2003 - 00:02:41 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:59 MST