Koozali.org: home of the SME Server

squid Terminate abnormally : /var/log/squid/access.log file

benja

squid Terminate abnormally : /var/log/squid/access.log file
« on: November 21, 2002, 01:17:40 AM »
Hi all,

SQUID refused to start :-( Here is an extract of /var/log/squid/cache.log (sorry it's a bit long) :

#################################################################
2002/11/21 08:04:16| Starting Squid Cache version 2.4.STABLE3 for i386-redhat-linux-gnu...
2002/11/21 08:04:16| Process ID 2017
2002/11/21 08:04:16| With 1024 file descriptors available
2002/11/21 08:04:16| DNS Socket created on FD 4
2002/11/21 08:04:16| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2002/11/21 08:04:16| Unlinkd pipe opened on FD 9
2002/11/21 08:04:16| Swap maxSize 2048000 KB, estimated 682666 objects
2002/11/21 08:04:16| Target number of buckets: 34133
2002/11/21 08:04:16| Using 65536 Store buckets
2002/11/21 08:04:16| Max Mem  size: 131072 KB
2002/11/21 08:04:16| Max Swap size: 2048000 KB
2002/11/21 08:04:16| Rebuilding storage in /var/spool/squid (CLEAN)
2002/11/21 08:04:16| Using Least Load store dir selection
2002/11/21 08:04:16| Set Current Directory to /var/spool/squid
2002/11/21 08:04:16| Loaded Icons.
2002/11/21 08:04:16| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2002/11/21 08:04:16| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2002/11/21 08:04:16| WCCP Disabled.
2002/11/21 08:04:16| Ready to serve requests.
2002/11/21 08:04:16| Done reading /var/spool/squid swaplog (1499 entries)
2002/11/21 08:04:16| Finished rebuilding storage from disk.
2002/11/21 08:04:16|      1499 Entries scanned
2002/11/21 08:04:16|         0 Invalid entries.
2002/11/21 08:04:16|         0 With invalid flags.
2002/11/21 08:04:16|      1499 Objects loaded.
2002/11/21 08:04:16|         0 Objects expired.
2002/11/21 08:04:16|         0 Objects cancelled.
2002/11/21 08:04:16|         0 Duplicate URLs purged.
2002/11/21 08:04:16|         0 Swapfile clashes avoided.
2002/11/21 08:04:16|   Took 0.3 seconds (5194.2 objects/sec).
2002/11/21 08:04:16| Beginning Validation Procedure
2002/11/21 08:04:16|   Completed Validation Procedure
2002/11/21 08:04:16|   Validated 1499 Entries
2002/11/21 08:04:16|   store_swap_size = 23388k
2002/11/21 08:04:17| storeDirWriteCleanLogs: Starting...
2002/11/21 08:04:17| WARNING: Closing open FD   11
2002/11/21 08:04:17|   Finished.  Wrote 1499 entries.
2002/11/21 08:04:17|   Took 0.0 seconds (1179386.3 entries/sec).
FATAL: logfileWrite: /var/log/squid/access.log: (27) File too large

Squid Cache (Version 2.4.STABLE3): Terminated abnormally.
CPU Usage: 0.050 seconds = 0.030 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 377
Memory usage for squid via mallinfo():
        total space in arena:    2332 KB
        Ordinary blocks:         2305 KB      1 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           436 KB      2 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:      26 KB
        Total in use:            2741 KB 118%
        Total free:                26 KB 1%
#################################################################

I flushed the access.log and everything is now ok :-)

I'm scared the problem occur again ... I verify the archiving process and everything seems ok (the access.log file is compressed and renamed every week). The file was 2.4Go large, is it too big ? How can i told squid to use a larger file ? My HDD is 40Go large and only 13% was used.

If anyone can give me some ideas ...

Thanks,

benja

Filippo Carletti

Re: squid Terminate abnormally : /var/log/squid/access.log f
« Reply #1 on: November 21, 2002, 05:59:17 PM »
Any chance you're using my SARG contrib ?
It has a bug, it doesn't rotate access.log.
Pierluigi Miranda has found and corrected the bug. I'll release a new SARG contrib soon.