Re: [squid-users] refusing connections

From: Kinkie <gkinkie_at_gmail.com>
Date: Sat, 25 Dec 2010 23:31:27 +0100

There's nothing strange I can see here.
I guess the next step should really be cachemgr.

On Sat, Dec 25, 2010 at 11:22 PM, J Webster <webster_jack_at_hotmail.com> wrote:
> I just rebuilt the cache and no luck - would rebuilding the cache have
> deleted the swap?
> Again on restart it works for 10seconds and then starts to refuse
> connections.
>
> Could there be a file permissions error anywhere?
>
> [root squid]# ls -l /var/log/squid
> total 1367348
> -rw-r----- 1 squid squid 314577912 Dec 25 22:20 access.log
> -rw-r----- 1 squid squid  46312136 Dec 19 00:01 access.log.1.gz
> -rw-r----- 1 squid squid  51110440 Dec 12 00:01 access.log.2.gz
> -rw-r----- 1 squid squid  53290163 Dec  5 00:02 access.log.3.gz
> -rw-r----- 1 squid squid  53867649 Nov 28 00:02 access.log.4.gz
> -rw-r----- 1 squid squid  49959936 Nov 21 00:02 access.log.5.gz
> -rw-r----- 1 squid squid     20426 Dec 25 22:20 cache.log
> -rw-r----- 1 squid squid     17893 Dec 19 00:01 cache.log.1.gz
> -rw-r----- 1 squid squid     34684 Dec 12 00:01 cache.log.2.gz
> -rw-r----- 1 squid squid     35869 Dec  5 00:02 cache.log.3.gz
> -rw-r----- 1 squid squid     39648 Nov 28 00:02 cache.log.4.gz
> -rw-r----- 1 squid squid     45064 Nov 21 00:02 cache.log.5.gz
> -rw-r----- 1 root  root     474943 Dec 25 21:45 cache.log.copy
> -rw-r--r-- 1 root  root       6023 Dec 25 21:35 squid.out
> -rw-r----- 1 squid squid 346063721 Dec 25 22:19 store.log
> -rw-r----- 1 squid squid  82754446 Dec 19 00:02 store.log.1.gz
> -rw-r----- 1 squid squid  96989188 Dec 12 00:02 store.log.2.gz
> -rw-r----- 1 squid squid 102610681 Dec  5 00:03 store.log.3.gz
> -rw-r----- 1 squid squid 104956585 Nov 28 00:03 store.log.4.gz
> -rw-r----- 1 squid squid  95507257 Nov 21 00:03 store.log.5.gz
>
>
> --------------------------------------------------
> From: "Kinkie" <gkinkie_at_gmail.com>
> Sent: Saturday, December 25, 2010 11:11 PM
> To: "J Webster" <webster_jack_at_hotmail.com>
> Cc: <squid-users_at_squid-cache.org>
> Subject: Re: [squid-users] refusing connections
>
>> store.log is usually not needed; I'd suggest to just disable it.
>> swap.state is the cache_dir index; if you delete it it will be rebuilt
>> at startup.
>>
>>
>>
>> On Sat, Dec 25, 2010 at 11:09 PM, J Webster <webster_jack_at_hotmail.com>
>> wrote:
>>>
>>> Maybe I should revuild the cache.
>>> Will that also delete swap.state and store.log automatically?
>>>
>>> --------------------------------------------------
>>> From: "J Webster" <webster_jack_at_hotmail.com>
>>> Sent: Saturday, December 25, 2010 10:58 PM
>>> To: "Kinkie" <gkinkie_at_gmail.com>
>>> Cc: <squid-users_at_squid-cache.org>
>>> Subject: Re: [squid-users] refusing connections
>>>
>>>> How can I view the cache manager?
>>>> I managed to load 2 pages, then tried a third and connection refused.
>>>> 5mins later I loaded another page and then the next one connection
>>>> refused.
>>>> These are all different sites and all accessible when accessed directly
>>>> without the proxy.
>>>>
>>>> Could be a file permissions somewhere or maybe some sort of blocking
>>>> attack on the proxy?
>>>>
>>>> --------------------------------------------------
>>>> From: "Kinkie" <gkinkie_at_gmail.com>
>>>> Sent: Saturday, December 25, 2010 10:55 PM
>>>> To: "J Webster" <webster_jack_at_hotmail.com>
>>>> Cc: <squid-users_at_squid-cache.org>
>>>> Subject: Re: [squid-users] refusing connections
>>>>
>>>>> Anything in the cache manager? Filedescriptor allocation etc.. Can you
>>>>> access the sites without using the proxy?
>>>>>
>>>>> On Sat, Dec 25, 2010 at 10:49 PM, J Webster <webster_jack_at_hotmail.com>
>>>>> wrote:
>>>>>>
>>>>>> This is the last bit from the cache log after restarting - seems ok
>>>>>> but
>>>>>> still refusing connections.
>>>>>> On a restart it seems to connect and load a page but then stops
>>>>>> halfway
>>>>>> just
>>>>>> like it times out.
>>>>>>
>>>>>> 2010/12/25 21:47:16| DNS Socket created at 0.0.0.0, port 56340, FD 6
>>>>>> 2010/12/25 21:47:16| Adding nameserver 208.67.222.222 from squid.conf
>>>>>> 2010/12/25 21:47:16| Adding nameserver 208.67.220.220 from squid.conf
>>>>>> 2010/12/25 21:47:16| helperOpenServers: Starting 5 'ncsa_auth'
>>>>>> processes
>>>>>> 2010/12/25 21:47:16| User-Agent logging is disabled.
>>>>>> 2010/12/25 21:47:16| Referer logging is disabled.
>>>>>> 2010/12/25 21:47:16| Unlinkd pipe opened on FD 16
>>>>>> 2010/12/25 21:47:16| Swap maxSize 40960000 + 102400 KB, estimated 0
>>>>>> objects
>>>>>> 2010/12/25 21:47:16| Target number of buckets: 157932
>>>>>> 2010/12/25 21:47:16| Using 262144 Store buckets
>>>>>> 2010/12/25 21:47:16| Max Mem  size: 102400 KB
>>>>>> 2010/12/25 21:47:16| Max Swap size: 40960000 KB
>>>>>> 2010/12/25 21:47:16| Local cache digest enabled; rebuild/rewrite every
>>>>>> 3600/3600 sec
>>>>>> 2010/12/25 21:47:16| Rebuilding storage in /var/spool/squid (CLEAN)
>>>>>> 2010/12/25 21:47:16| Using Least Load store dir selection
>>>>>> 2010/12/25 21:47:16| Set Current Directory to /var/spool/squid
>>>>>> 2010/12/25 21:47:16| Loaded Icons.
>>>>>> 2010/12/25 21:47:17| Accepting proxy HTTP connections at 0.0.0.0, port
>>>>>> 8080,
>>>>>> FD 20.
>>>>>> 2010/12/25 21:47:17| Accepting proxy HTTP connections at
>>>>>> 88.208.237.198,
>>>>>> port 80, FD 21.
>>>>>> 2010/12/25 21:47:17| Accepting ICP messages at 0.0.0.0, port 3130, FD
>>>>>> 22.
>>>>>> 2010/12/25 21:47:17| WCCP Disabled.
>>>>>> 2010/12/25 21:47:17| Ready to serve requests.
>>>>>> 2010/12/25 21:47:17| Store rebuilding is  0.8% complete
>>>>>> 2010/12/25 21:47:19| Done reading /var/spool/squid swaplog (521968
>>>>>> entries)
>>>>>> 2010/12/25 21:47:19| Finished rebuilding storage from disk.
>>>>>> 2010/12/25 21:47:19|    521968 Entries scanned
>>>>>> 2010/12/25 21:47:19|         0 Invalid entries.
>>>>>> 2010/12/25 21:47:19|         0 With invalid flags.
>>>>>> 2010/12/25 21:47:19|    521931 Objects loaded.
>>>>>> 2010/12/25 21:47:19|         0 Objects expired.
>>>>>> 2010/12/25 21:47:19|         0 Objects cancelled.
>>>>>> 2010/12/25 21:47:19|         6 Duplicate URLs purged.
>>>>>> 2010/12/25 21:47:19|        31 Swapfile clashes avoided.
>>>>>> 2010/12/25 21:47:19|   Took 2.9 seconds (178595.5 objects/sec).
>>>>>> 2010/12/25 21:47:19| Beginning Validation Procedure
>>>>>> 2010/12/25 21:47:19|    262144 Entries Validated so far.
>>>>>> 2010/12/25 21:47:19|   Completed Validation Procedure
>>>>>> 2010/12/25 21:47:19|   Validated 521931 Entries
>>>>>> 2010/12/25 21:47:19|   store_swap_size = 9112264k
>>>>>> 2010/12/25 21:47:20| storeLateRelease: released 6 objects
>>>>>>
>>>>>>
>>>>>> --------------------------------------------------
>>>>>> From: "Kinkie" <gkinkie_at_gmail.com>
>>>>>> Sent: Saturday, December 25, 2010 10:41 PM
>>>>>> To: "J Webster" <webster_jack_at_hotmail.com>
>>>>>> Cc: <squid-users_at_squid-cache.org>
>>>>>> Subject: Re: [squid-users] refusing connections
>>>>>>
>>>>>>> On Sat, Dec 25, 2010 at 10:38 PM, J Webster
>>>>>>> <webster_jack_at_hotmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> The problem appears to be this:
>>>>>>>> /var/spool/squid/swap.state: (13) Permission denied
>>>>>>>>
>>>>>>>> Why would that happen overnight?
>>>>>>>
>>>>>>> Looks like some filesystem corruption happened for some reason. Is
>>>>>>> there any other messages like this?
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>  /kinkie
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>   /kinkie
>>>>>
>>>
>>
>>
>>
>> --
>>    /kinkie
>>
>

-- 
    /kinkie
Received on Sat Dec 25 2010 - 22:31:33 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 27 2010 - 12:00:03 MST