squid is loosing cache data when restarting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid3 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Serving requests cached in memory works fine. However, after restarting squid, all data is lost. Disk cache size is large enough.
store_swap_size look strange either. Number of entries should be around 750, but is displayed as 29.
cache.log:
2012/02/21 18:38:05| Starting Squid Cache version 3.1.18 for x86_64-
2012/02/21 18:38:05| Process ID 21976
2012/02/21 18:38:05| With 1024 file descriptors available
2012/02/21 18:38:05| Initializing IP Cache...
2012/02/21 18:38:05| DNS Socket created at [::], FD 5
2012/02/21 18:38:05| DNS Socket created at 0.0.0.0, FD 6
2012/02/21 18:38:05| Adding domain rz-ip.net from /etc/resolv.conf
2012/02/21 18:38:05| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2012/02/21 18:38:05| Unlinkd pipe opened on FD 11
2012/02/21 18:38:05| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/02/21 18:38:05| Store logging disabled
2012/02/21 18:38:05| Swap maxSize 1048576 + 262144 KB, estimated 100824 objects
2012/02/21 18:38:05| Target number of buckets: 5041
2012/02/21 18:38:05| Using 8192 Store buckets
2012/02/21 18:38:05| Max Mem size: 262144 KB
2012/02/21 18:38:05| Max Swap size: 1048576 KB
2012/02/21 18:38:05| Version 1 of swap file with LFS support detected...
2012/02/21 18:38:05| Rebuilding storage in /var/spool/squid3 (DIRTY)
2012/02/21 18:38:05| Using Least Load store dir selection
2012/02/21 18:38:05| Set Current Directory to /var/spool/squid3
2012/02/21 18:38:05| Loaded Icons.
2012/02/21 18:38:05| Accepting HTTP connections at [::]:3128, FD 14.
2012/02/21 18:38:05| HTCP Disabled.
2012/02/21 18:38:05| Squid plugin modules loaded: 0
2012/02/21 18:38:05| Adaptation support is off.
2012/02/21 18:38:05| Ready to serve requests.
2012/02/21 18:38:05| WARNING: 1 invalid swap log entries found
2012/02/21 18:38:05| Done reading /var/spool/squid3 swaplog (657 entries)
2012/02/21 18:38:05| Finished rebuilding storage from disk.
2012/02/21 18:38:05| 2 Entries scanned
2012/02/21 18:38:05| 6 Invalid entries.
2012/02/21 18:38:05| 0 With invalid flags.
2012/02/21 18:38:05| 2 Objects loaded.
2012/02/21 18:38:05| 0 Objects expired.
2012/02/21 18:38:05| 0 Objects cancelled.
2012/02/21 18:38:05| 0 Duplicate URLs purged.
2012/02/21 18:38:05| 0 Swapfile clashes avoided.
2012/02/21 18:38:05| Took 0.14 seconds ( 14.21 objects/sec).
2012/02/21 18:38:05| Beginning Validation Procedure
2012/02/21 18:38:05| Completed Validation Procedure
2012/02/21 18:38:05| Validated 29 Entries
2012/02/21 18:38:05| store_swap_size = 10182199991074816
2012/02/21 18:38:06| storeLateRelease: released 0 objects
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: squid3 3.1.18-1ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-16-generic x86_64
ApportVersion: 1.92-0ubuntu1
Architecture: amd64
Date: Tue Feb 21 18:40:49 2012
ProcEnviron:
TERM=xterm
SHELL=/bin/bash
PATH=(custom, user)
LANG=de_DE.UTF-8
SourcePackage: squid3
UpgradeStatus: Upgraded to precise on 2012-01-20 (32 days ago)
mtime.conffile.
Hi Cinquero. Is it possible the missing items are just items that will have to be refreshed anyway due to Expires headers?